/* MMAI Coach - Unified Grok-Style Theme */

:root {
  /* MMAI Brand Colors - EXACT CODES */
  --primary-color: #fb510b;           /* Orange-red */
  --primary-hover: #e5460a;
  --primary-rgb: 251, 81, 11;
  --secondary-color: #5085ba;         /* Blue */
  --secondary-hover: #456fa1;
  --shared-element: #FBFBE4;          /* Cream */
  
  /* Unified Background System */
  --bg-deep: #0F172A;                 /* Deep navy - main bg */
  --bg-surface: #1E293B;              /* Card backgrounds */
  --bg-hover: #334155;
  --text-primary: #F1F5F9;            /* Off-white text */
  --text-secondary: #94A3B8;
  --border-color: #334155;
  
  /* Message Colors */
  --user-bg: #fb510b;                 /* User message bg */
  --bot-bg: #1E293B;                  /* Bot message bg */
  
  /* Status Colors */
  --error-color: #ef4444;
  --success-color: #22c55e;
  --warning-color: #f59e0b;
}

/* UNIFIED GROK-STYLE CONTAINER */
.chat-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
}

/* GROK-STYLE MAIN CONTENT AREA */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-deep);
}

.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1rem;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
}

/* SHARED CHAT MESSAGES CONTAINER */
.chat-messages {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  flex: 1;
}

/* GROK-STYLE MESSAGES */
.message {
  display: flex;
  margin-bottom: 1.5rem;
  animation: slideInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.message.user {
  justify-content: flex-end;
}

.message.ai {
  justify-content: flex-start;
}

/* MESSAGE BUBBLES - GROK STYLE */
.message-content {
  max-width: 65%;
  padding: 1rem 1.25rem;
  border-radius: 1.5rem;
  line-height: 1.6;
  word-wrap: break-word;
  font-size: 0.95rem;
}

.message.user .message-content {
  background: var(--user-bg);
  color: #fefae4;
  border-bottom-right-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(251, 81, 11, 0.25);
}

.message.ai .message-content {
  background: var(--bot-bg);
  color: #fefae4;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-align: center;
}

/* ENHANCED MESSAGE CONTENT STYLING */

/* Product Links Styling */
.message-content .product-link {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(251, 81, 11, 0.1), rgba(229, 70, 10, 0.1));
  border: 1px solid rgba(251, 81, 11, 0.3);
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-content .product-link:hover {
  background: linear-gradient(135deg, rgba(251, 81, 11, 0.2), rgba(229, 70, 10, 0.2));
  border-color: #fb510b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(251, 81, 11, 0.3);
}

/* Price Styling */
.message-content .price {
  color: #22c55e;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Section Headers in Messages */
.message-content h3 {
  color: #fb510b;
  font-size: 1.1em;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
  border-bottom: 2px solid rgba(251, 81, 11, 0.3);
  padding-bottom: 4px;
}

/* List Styling in Messages */
.message-content ul, .message-content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.message-content li {
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

/* Emphasis Text */
.message-content em {
  color: #5085ba;
  font-style: italic;
}

/* Code-like text (for techniques, specifications) */
.message-content code {
  background: rgba(80, 133, 186, 0.1);
  color: #5085ba;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}


/* MMA GUY STYLE E-COMMERCE HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0F172A;
  height: 150px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 100%;
  padding: 0 40px;
  gap: 2rem;
}

/* LOGO SECTION */
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-logo {
  width: 420px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

/* NAVIGATION MENU - SLIGHTLY LEFT FROM RIGHT */
.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0 60px 0 0;
}

.nav-link {
  color: #FBFBE4;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  padding: 15px 0;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fb510b;
  text-shadow: none;
  box-shadow: none;
}

.nav-link.active {
  color: #fb510b;
  font-weight: 600;
  text-shadow: none;
  box-shadow: none;
  background: transparent !important;
}


/* DROPDOWN ARROWS */
.nav-link.dropdown::after {
  content: ' ▼';
  font-size: 12px;
  margin-left: 8px;
  opacity: 0.7;
}

/* RIGHT SIDE UTILITIES - MINIMAL */
.nav-utilities {
  display: none;
}

/* HAMBURGER MENU (hidden by default) */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: #FBFBE4;
  transition: all 0.3s ease;
}

.hamburger-menu:hover .hamburger-line {
  background: #fb510b;
}

/* MOBILE MENU OVERLAY (hidden by default) */
.mobile-menu {
  display: none;
  position: fixed;
  top: 150px;
  left: 0;
  right: 0;
  background: #0F172A;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 99;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 20px;
}

.mobile-nav-links .nav-link {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  color: #FBFBE4;
}

.mobile-nav-links .nav-link:last-child {
  border-bottom: none;
}

/* GROK-STYLE FLOATING INPUT */
.chat-input-container {
  position: sticky;
  bottom: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.8));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(51, 65, 85, 0.3);
}

.chat-input-wrapper {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.chat-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--secondary-color);
  box-shadow: 0 8px 32px rgba(80, 133, 186, 0.2);
}

.left-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.icon-button:active {
  transform: scale(0.95);
}

.refresh-icon,
.image-icon {
  width: 20px;
  height: 20px;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fefae4;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 8px;
  resize: none;
  font-family: inherit;
  min-height: 24px;
  max-height: 200px;
  overflow-y: auto;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.chat-input::-webkit-scrollbar {
  width: 4px;
}

.chat-input::-webkit-scrollbar-track {
  background: transparent;
}

.chat-input::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.send-button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fefae4;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-right: 8px;
  position: relative;
  overflow: hidden;
}

.send-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(254, 250, 228, 0.3);
}

.send-button:active {
  transform: scale(0.95);
}

.send-button:disabled {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  opacity: 0.5;
}

.send-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.send-icon {
  width: 20px;
  height: 20px;
  color: #0F172A;
}

.file-input {
  display: none;
}

/* Pulse animation for send button */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 250, 228, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(254, 250, 228, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(254, 250, 228, 0);
  }
}

.send-button.pulse {
  animation: pulse 1.5s infinite;
}

/* Legacy button classes for backward compatibility */
.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh,
.btn-attachment {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
}

.btn-refresh:hover,
.btn-attachment:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.btn-send {
  background: #fefae4;
  color: #0F172A;
}

.btn-send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(254, 250, 228, 0.3);
}

.btn-send:disabled {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  opacity: 0.5;
}

/* TYPING INDICATOR */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.typing-indicator .message-content {
  background: var(--bot-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  border-bottom-left-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: typingPulse 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* GROK-STYLE WELCOME SCREEN - SHOWS WHEN CHAT IS EMPTY */
.welcome-screen {
  padding: 2rem;
  text-align: center;
  max-width: 680px;
  margin: 2rem auto 0 auto;
}

.welcome-logo {
  width: auto;
  height: 120px;
  margin-bottom: 3rem;
  opacity: 0.9;
}

/* WELCOME CARDS - DIFFERENT FOR EACH TAB */
.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.welcome-feature {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.welcome-feature:hover {
  border-color: var(--secondary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* QUICK ACTION CHIPS - BELOW CHAT */
.quick-actions {
  padding: 0 2rem 2rem 2rem;
  max-width: 680px;
  margin: 0 auto;
}

.quick-actions-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.action-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.action-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.action-pill:hover {
  border-color: var(--primary-color);
  background: rgba(251, 81, 11, 0.1);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.action-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  justify-items: center;
}

.action-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 150px;
}

.action-tile:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tile-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.tile-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

/* ANIMATIONS */
@keyframes slideInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes typingPulse {
  0%, 60%, 100% { 
    transform: scale(1); 
    opacity: 0.4; 
  }
  30% { 
    transform: scale(1.2); 
    opacity: 1; 
  }
}

/* MOBILE RESPONSIVE - MMA GUY STYLE */
@media (max-width: 768px) {
  .header {
    height: 120px; /* Much bigger on mobile too */
  }
  
  .nav {
    grid-template-columns: 1fr auto;
    padding: 25px 20px;
    gap: 1rem;
    height: 70px;
  }
  
  .brand-logo {
    width: 180px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
  }
  
  /* Hide desktop navigation */
  .nav-links {
    display: none;
  }
  
  /* Show hamburger menu */
  .hamburger-menu {
    display: flex;
  }
  
  /* Hide utilities completely on mobile */
  .nav-utilities {
    display: none;
  }
  
  /* Update mobile menu position */
  .mobile-menu {
    top: 120px;
  }
}
  
  .chat-area {
    padding: 1rem 0.75rem;
  }
  
  .message-content {
    max-width: 80%;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
  
  .chat-input-container {
    padding: 1rem;
  }
  
  .chat-input-wrapper {
    padding: 0.6rem 0.75rem;
  }
  
  .welcome-screen {
    padding: 1.5rem 1rem;
    margin: 1rem auto 0 auto;
  }
  
  .welcome-logo {
    height: 80px;
    margin-bottom: 2rem;
  }
  
  .welcome-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .quick-actions {
    padding: 0 1rem 1.5rem 1rem;
  }
  
  .action-pills {
    justify-content: center;
  }
  
  .action-tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .action-tile {
    padding: 0.75rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0 15px;
  }
  
  .brand-logo {
    width: 90px;
  }
  
  .nav-utilities {
    gap: 10px;
  }
  
  .cart-info span {
    display: none; /* Hide cart text on very small screens */
  }
}

/* ERROR STATES & CONNECTION STATUS */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error-color);
  color: var(--error-color);
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.connection-status {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.connection-status.connected {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.connection-status.disconnected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

/* UNIFIED SECTIONS - NO MORE SWITCHING */
.section {
  display: none;
}

.section.active {
  display: block;
}

.section.hidden {
  display: none;
}

/* BRAND FOOTER - MINIMAL */
.brand-footer {
  display: none; /* Hide footer in unified design */
}





/* UNIFIED GROK DESIGN - NO MORE THEME SWITCHING */
body {
  background: var(--bg-deep) !important;
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
}

.chat-container {
  background: var(--bg-deep) !important;
}

.main-content {
  background: var(--bg-deep) !important;
}

/* HIDE ALL SECTIONS EXCEPT ACTIVE */
.section.chat-section,
.section.cafe-section {
  background: var(--bg-deep) !important;
}.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.file-input {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-deep);
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-input:hover {
    border-color: var(--primary-color);
}

.image-preview {
    margin-top: 0.75rem;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.file-input {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-deep);
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-input:hover {
    border-color: var(--primary-color);
}

.image-preview {
    margin-top: 0.75rem;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
