/* Button style classes */
.object.button.btn-default {
  background-color: #4a6eff;
  color: #ffffff;
  border-radius: 6px;
  padding: 10px 20px;
  box-shadow: 0 3px 10px rgba(74, 110, 255, 0.2);
}

.object.button.btn-old-style {
  background-color: #888888;
  color: #ffffff;
  border-radius: 0;
  font-family: 'Times New Roman', serif;
  padding: 5px 15px;
  border: 2px outset #aaa;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.object.button.btn-modern {
  background-color: #3498db;
  color: #ffffff;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  padding: 10px 25px;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.object.button.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

.object.button.btn-retro {
  background-color: #ff6b6b;
  color: #ffffff;
  border-radius: 0;
  font-family: 'Press Start 2P', cursive;
  padding: 12px 20px;
  border: 3px solid #333;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

.object.button.btn-retro:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.object.button.btn-minimal {
  background-color: transparent;
  color: #333333;
  border-radius: 0;
  border: 1px solid #333333;
  padding: 8px 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.object.button.btn-minimal:hover {
  background-color: #333333;
  color: #ffffff;
}

.object.button.btn-glossy {
  background-color: #2ecc71;
  color: #ffffff;
  border-radius: 30px;
  padding: 10px 25px;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 100%);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
  border: none;
}

/* Button toolbar style adjustments */
.button-toolbar {
  display: flex;
  background: white;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-bottom: 5px;
  gap: 8px;
  max-width: 400px;
}

.style-select {
  position: absolute;
  top: 100%;
  left: 0;
  padding: 3px;
  border-radius: 4px;
  border: 1px solid #ddd;
  z-index: 1;
  display: none;
  background: white;
  font-size: 12px;
  width: 120px;
}

.toolbar-btn:hover .style-select {
  display: block;
}

/* Button style modal */
.button-style-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.button-style-modal-content {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  width: 80%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.button-style-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.button-style-header h3 {
  font-size: 1.5rem;
  margin: 0;
  color: #333;
}

.button-style-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.button-style-close:hover {
  color: #e74c3c;
}

.button-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.button-style-option {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  border: 2px solid transparent;
}

.button-style-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  border-color: #4a6eff;
}

.button-style-option h4 {
  margin: 10px 0 5px;
  color: #333;
}

.button-style-option p {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
}

.btn-preview {
  display: inline-block;
  padding: 8px 16px;
  margin: 10px auto;
  font-size: 14px;
}

/* Existing button style classes for previews */
.btn-preview.btn-default {
  background-color: #4a6eff;
  color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 3px 5px rgba(74, 110, 255, 0.2);
}

.btn-preview.btn-old-style {
  background-color: #888888;
  color: #ffffff;
  border-radius: 0;
  font-family: 'Times New Roman', serif;
  border: 2px outset #aaa;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-preview.btn-modern {
  background-color: #3498db;
  color: #ffffff;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-preview.btn-retro {
  background-color: #ff6b6b;
  color: #ffffff;
  border-radius: 0;
  font-family: 'Press Start 2P', cursive;
  border: 3px solid #333;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8);
  font-size: 10px;
  text-transform: uppercase;
}

.btn-preview.btn-minimal {
  background-color: transparent;
  color: #333333;
  border-radius: 0;
  border: 1px solid #333333;
}

.btn-preview.btn-glossy {
  background-color: #2ecc71;
  color: #ffffff;
  border-radius: 30px;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 100%);
  box-shadow: 0 3px 8px rgba(46, 204, 113, 0.4);
}

/* Additional button styles */
.object.button.btn-neon {
  background-color: #000000;
  color: #00ffff;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  padding: 10px 25px;
  box-shadow: 0 0 10px #00ffff, 0 0 20px rgba(0, 255, 255, 0.4);
  text-shadow: 0 0 5px #00ffff;
  border: 1px solid #00ffff;
}

.object.button.btn-gradient {
  background: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
  color: white;
  border-radius: 12px;
  font-family: 'Lato', sans-serif;
  padding: 12px 25px;
  border: none;
  box-shadow: 0 4px 15px rgba(157, 80, 187, 0.4);
}

.object.button.btn-outlined {
  background-color: transparent;
  color: #e74c3c;
  border: 2px solid #e74c3c;
  border-radius: 25px;
  font-family: 'Roboto', sans-serif;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.object.button.btn-outlined:hover {
  background-color: #e74c3c;
  color: white;
}

.object.button.btn-3d {
  background-color: #2ecc71;
  color: white;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  padding: 12px 25px;
  border: none;
  box-shadow: 0 6px 0 #27ae60, 0 8px 10px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.object.button.btn-3d:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 #27ae60, 0 3px 5px rgba(0,0,0,0.1);
}

.object.button.btn-gamepad {
  background-color: #7f8c8d;
  color: white;
  border-radius: 5px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8em;
  padding: 15px 20px;
  border: 3px solid #2c3e50;
  box-shadow: inset 0 -5px 0 #2c3e50, 0 5px 10px rgba(0,0,0,0.2);
}

/* Preview styles for new buttons */
.btn-preview.btn-neon {
  background-color: #000000;
  color: #00ffff;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  border: 1px solid #00ffff;
  text-shadow: 0 0 5px #00ffff;
  box-shadow: 0 0 5px #00ffff;
}

.btn-preview.btn-gradient {
  background: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
  color: white;
  border-radius: 12px;
  font-family: 'Lato', sans-serif;
}

.btn-preview.btn-outlined {
  background-color: transparent;
  color: #e74c3c;
  border: 2px solid #e74c3c;
  border-radius: 25px;
  font-family: 'Roboto', sans-serif;
}

.btn-preview.btn-3d {
  background-color: #2ecc71;
  color: white;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  box-shadow: 0 4px 0 #27ae60;
  transform: translateY(-2px);
}

.btn-preview.btn-gamepad {
  background-color: #7f8c8d;
  color: white;
  border-radius: 5px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7em;
  border: 2px solid #2c3e50;
  box-shadow: inset 0 -3px 0 #2c3e50;
}

.btn-preview.btn-embossed {
  background-color: #ecf0f1;
  color: #2c3e50;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 10px 20px;
}

.btn-preview.btn-shadowed {
  background-color: #ffffff;
  color: #34495e;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
}

.btn-preview.btn-flat {
  background-color: #3498db;
  color: #ffffff;
  border-radius: 0;
  font-family: 'Montserrat', sans-serif;
  padding: 10px 20px;
}

.btn-preview.btn-borderless {
  background-color: transparent;
  color: #2980b9;
  border: none;
  font-family: 'Arial', sans-serif;
  padding: 10px 20px;
}

.btn-preview.btn-gradient-border {
  background-color: #fff;
  color: #333;
  border-radius: 10px;
  font-family: 'Oswald', sans-serif;
  padding: 10px 20px;
  border: 2px solid;
  border-image: linear-gradient(to right, #4a6eff, #8e44ad) 1;
}

/* Additional button styles */
.object.button.btn-shadowed {
  background-color: #ffffff;
  color: #34495e;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
}

.object.button.btn-flat {
  background-color: #3498db;
  color: #ffffff;
  border-radius: 0;
  font-family: 'Montserrat', sans-serif;
  padding: 10px 20px;
}

.object.button.btn-borderless {
  background-color: transparent;
  color: #2980b9;
  border: none;
  font-family: 'Arial', sans-serif;
  padding: 10px 20px;
}

.object.button.btn-embossed {
  background-color: #ecf0f1;
  color: #2c3e50;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 10px 20px;
}

.object.button.btn-gradient-border {
  background-color: #fff;
  color: #333;
  border-radius: 10px;
  font-family: 'Oswald', sans-serif;
  padding: 10px 20px;
  border: 2px solid;
  border-image: linear-gradient(to right, #4a6eff, #8e44ad) 1;
}

/* Preview styles for new buttons */
.btn-preview.btn-embossed {
  background-color: #ecf0f1;
  color: #2c3e50;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 10px 20px;
}

.btn-preview.btn-shadowed {
  background-color: #ffffff;
  color: #34495e;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
}

.btn-preview.btn-flat {
  background-color: #3498db;
  color: #ffffff;
  border-radius: 0;
  font-family: 'Montserrat', sans-serif;
  padding: 10px 20px;
}

.btn-preview.btn-borderless {
  background-color: transparent;
  color: #2980b9;
  border: none;
  font-family: 'Arial', sans-serif;
  padding: 10px 20px;
}

.btn-preview.btn-gradient-border {
  background-color: #fff;
  color: #333;
  border-radius: 10px;
  font-family: 'Oswald', sans-serif;
  padding: 10px 20px;
  border: 2px solid;
  border-image: linear-gradient(to right, #4a6eff, #8e44ad) 1;
}