/* Mint Leaf Tea - Admin Dashboard Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Serif+Display&display=swap');

:root {
  --admin-bg: #f4f0e9;
  --admin-sidebar-bg: #231709;
  --admin-card-bg: #ffffff;
  --admin-primary: #3d2314;
  --admin-accent-gold: #c87a2a;
  --admin-accent-green: #15803d;
  --admin-border: #e2d7c9;
  --admin-text-main: #231709;
  --admin-text-muted: #6e5e54;
  --admin-text-light: #9c8a7e;
  --admin-danger: #dc2626;
  --admin-radius: 12px;
  --admin-shadow: 0 4px 16px rgba(35, 23, 9, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  min-height: 100vh;
}

/* AUTH LOGIN OVERLAY */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #3d2314 0%, #1f1408 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.admin-login-overlay.hidden {
  display: none !important;
}

.login-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--admin-border);
  text-align: center;
}

.login-logo {
  height: 60px;
  margin-bottom: 18px;
  object-fit: contain;
}

.login-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.8rem;
  color: var(--admin-primary);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  margin-bottom: 28px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}



/* ADMIN LAYOUT */
.admin-app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.admin-sidebar {
  width: 270px;
  background: var(--admin-sidebar-bg);
  color: #dfd4ca;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  height: 44px;
  object-fit: contain;
}

.sidebar-menu {
  flex-grow: 1;
  overflow-y: auto;
  padding: 18px 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-menu::-webkit-scrollbar {
  width: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
}

.nav-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #c9b9ac;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.nav-item-btn.active {
  background: linear-gradient(135deg, var(--admin-accent-gold) 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(200, 122, 42, 0.3);
}

.nav-item-btn i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c9b9ac;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.sidebar-footer-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* MAIN CONTENT AREA */
.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* TOP HEADER */
.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.topbar-left h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--admin-primary);
}

.topbar-left p {
  font-size: 0.84rem;
  color: var(--admin-text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* TABS CONTAINER */
.tab-content {
  display: none;
  padding: 32px 36px;
}

.tab-content.active {
  display: block;
}

/* SECTION CARDS */
.admin-card {
  background: var(--admin-card-bg);
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  padding: 28px;
  margin-bottom: 28px;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
}

.card-header-flex h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--admin-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-desc {
  font-size: 0.86rem;
  color: var(--admin-text-muted);
  margin-top: 4px;
}

/* FORMS */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--admin-primary);
}

.form-group .hint {
  font-size: 0.76rem;
  color: var(--admin-text-light);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--admin-border);
  background: #faf8f5;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--admin-text-main);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: #ffffff;
  border-color: var(--admin-accent-gold);
  box-shadow: 0 0 0 3px rgba(200, 122, 42, 0.12);
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

/* IMAGE UPLOAD / PREVIEW BOX */
.image-picker-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #faf8f5;
  border: 1.5px dashed var(--admin-border);
  border-radius: 10px;
  padding: 14px;
}

.image-preview-thumb {
  width: 75px;
  height: 75px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  flex-shrink: 0;
}

.image-inputs {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--admin-sidebar-bg);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--admin-primary);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--admin-accent-gold) 0%, #b45309 100%);
  color: #ffffff;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #db852c 0%, #c2590a 100%);
  transform: translateY(-1px);
}

.btn-green {
  background: var(--admin-accent-green);
  color: #ffffff;
}
.btn-green:hover {
  background: #166534;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--admin-border);
  color: var(--admin-text-main);
}
.btn-outline:hover {
  border-color: var(--admin-primary);
  background: #faf6f0;
}

.btn-danger {
  background: #fee2e2;
  color: var(--admin-danger);
  border: 1px solid #fca5a5;
}
.btn-danger:hover {
  background: var(--admin-danger);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* DATA TABLES & CARDS GRID */
.admin-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.item-edit-card {
  background: #faf8f5;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-thumb-box {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #e9e2d8;
}

.item-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.item-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--admin-accent-green);
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.item-card-desc {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
  flex-grow: 1;
}

.item-card-actions {
  display: flex;
  gap: 8px;
  border-top: 1px dashed var(--admin-border);
  padding-top: 10px;
}

/* STATS ROW */
.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-box {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--admin-shadow);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.tea {
  background: #fff4e5;
  color: var(--admin-accent-gold);
}
.stat-icon.store {
  background: #ecfdf5;
  color: var(--admin-accent-green);
}
.stat-icon.photo {
  background: #eff6ff;
  color: #2563eb;
}
.stat-icon.key {
  background: #fdf2f8;
  color: #db2777;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--admin-primary);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  font-weight: 600;
}

/* MODAL FOR ADD / EDIT */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 23, 9, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.admin-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.admin-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  position: relative;
}

.admin-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #faf8f5;
}

.admin-modal-body {
  padding: 24px;
}

/* TOAST */
.admin-toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-toast {
  background: var(--admin-sidebar-bg);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 4px solid var(--admin-accent-gold);
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   ADMIN PORTAL MOBILE APP INTERFACE STYLES (APP-MARI REFINEMENT)
   ============================================================ */

/* Hide mobile header and backdrop on desktop */
.admin-mobile-header,
.admin-drawer-backdrop,
.admin-sidebar-close-btn {
  display: none;
}

@media (max-width: 900px) {
  /* 1. APP-LIKE MOBILE TOP BAR */
  .admin-mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #231709;
    color: #ffffff;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  }

  .admin-drawer-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
  }
  .admin-drawer-toggle:active {
    background: rgba(255, 255, 255, 0.12);
  }

  .admin-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .admin-mobile-logo {
    height: 28px;
    object-fit: contain;
  }
  .admin-mobile-brand-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 0.02em;
  }

  /* 2. SLIDE-IN OFF-CANVAS DRAWER */
  .admin-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .admin-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 290px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    z-index: 10002 !important;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-close-btn {
    display: flex;
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  /* 3. MAIN DASHBOARD CONTENT AREA */
  .admin-app {
    flex-direction: column;
  }

  .admin-main {
    padding-top: 70px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 40px !important;
    width: 100% !important;
  }

  .admin-topbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .admin-topbar .topbar-right {
    width: 100%;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .admin-topbar .topbar-right .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  /* 4. OVERVIEW STATS GRID (2-COL ON MOBILE) */
  .overview-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .stat-box {
    padding: 16px !important;
    gap: 10px !important;
  }
  .stat-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.2rem !important;
    border-radius: 10px !important;
  }
  .stat-num {
    font-size: 1.4rem !important;
  }
  .stat-label {
    font-size: 0.74rem !important;
  }

  /* 5. FORM GRIDS */
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 0.95rem !important;
    padding: 12px 14px !important;
  }

  /* 6. MODALS ON MOBILE (APP BOTTOM-SHEET STYLE) */
  .admin-modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .admin-modal-card {
    border-radius: 20px 20px 0 0 !important;
    max-height: 90vh !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .admin-modal-overlay.open .admin-modal-card {
    transform: translateY(0);
  }

  .admin-modal-header {
    padding: 16px 20px !important;
  }
  .admin-modal-body {
    padding: 18px 20px 30px 20px !important;
  }

  /* 7. CUSTOMER ENQUIRIES TABLE TO MOBILE CARDS TRANSFORMATION */
  .enquiries-table,
  .enquiries-table tbody,
  .enquiries-table tr,
  .enquiries-table td {
    display: block !important;
    width: 100% !important;
  }

  .enquiries-table thead {
    display: none !important;
  }

  .enquiries-table tr {
    background: #ffffff !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: var(--admin-radius) !important;
    margin-bottom: 14px !important;
    padding: 14px 16px !important;
    box-shadow: var(--admin-shadow) !important;
  }

  .enquiries-table td {
    padding: 6px 0 !important;
    border: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .enquiries-table td:last-child {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px dashed var(--admin-border) !important;
  }

  .enquiry-content-box {
    max-width: 100% !important;
    margin-top: 4px;
  }

  /* 8. CARDS GRID */
  .admin-grid-cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* 9. TOAST ON MOBILE */
  .admin-toast-box {
    left: 14px !important;
    right: 14px !important;
    bottom: 20px !important;
  }
  .admin-toast {
    font-size: 0.84rem !important;
    padding: 12px 16px !important;
  }
}

/* ENQUIRIES & MESSAGES STYLES */
.enquiries-table-wrap {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  overflow-x: auto;
  box-shadow: var(--admin-shadow);
  margin-top: 16px;
}
.enquiries-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.enquiries-table th {
  background: #faf8f5;
  color: var(--admin-text-main);
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}
.enquiries-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: top;
  color: var(--admin-text-main);
}
.enquiries-table tr:last-child td {
  border-bottom: none;
}
.enquiries-table tr:hover {
  background: #fdfbf7;
}
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-pill.new { background: #fee2e2; color: #dc2626; }
.status-pill.read { background: #eff6ff; color: #2563eb; }
.status-pill.in_review { background: #fef3c7; color: #d97706; }
.status-pill.contacted { background: #ecfdf5; color: #15803d; }
.status-pill.closed { background: #f3f4f6; color: #6b7280; }

.enquiry-sender {
  font-weight: 700;
  color: var(--admin-primary);
  display: block;
}
.enquiry-meta {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  display: block;
  margin-top: 2px;
}
.enquiry-content-box {
  background: #faf8f5;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: var(--admin-text-main);
  max-width: 480px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* THEME & COLOUR CUSTOMIZATION CMS STYLES */
.theme-customizer-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Preset Cards Grid */
.theme-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.theme-preset-card {
  background: #ffffff;
  border: 2px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.theme-preset-card:hover {
  transform: translateY(-2px);
  border-color: var(--admin-gold);
  box-shadow: var(--admin-shadow-md);
}
.theme-preset-card.active {
  border-color: var(--admin-primary);
  background: #fffdf9;
  box-shadow: 0 0 0 1px var(--admin-primary), var(--admin-shadow-md);
}
.preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preset-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--admin-primary);
}
.preset-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--admin-bg-light);
  color: var(--admin-text-muted);
}
.theme-preset-card.active .preset-badge {
  background: var(--admin-primary);
  color: #ffffff;
}
.preset-swatches {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.preset-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.preset-desc {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  line-height: 1.4;
}

/* Auto-Contrast Alert Box */
.auto-contrast-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--admin-radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.auto-contrast-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auto-contrast-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.auto-contrast-title {
  font-weight: 700;
  color: #166534;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.auto-contrast-desc {
  font-size: 0.82rem;
  color: #15803d;
  line-height: 1.4;
}
.contrast-switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.switch-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #166534;
}

/* Mini Mockup Live Preview Card */
.theme-preview-card-wrap {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 20px;
  box-shadow: var(--admin-shadow);
}
.theme-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.theme-preview-header h4 {
  font-size: 1.05rem;
  color: var(--admin-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-preview-stage {
  border-radius: 16px;
  border: 2px solid var(--admin-border);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.28s ease;
}

/* Mini Mockup Elements */
.mini-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
}
.mini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}
.mini-nav-links {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 600;
}
.mini-hero {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.25s ease;
}
.mini-hero-left {
  max-width: 60%;
}
.mini-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.mini-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}
.mini-desc {
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 12px;
}
.mini-buttons {
  display: flex;
  gap: 8px;
}
.mini-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: default;
}
.mini-btn-primary {
  transition: all 0.25s ease;
}
.mini-btn-outline {
  border: 1px solid;
}
.mini-card-sample {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 20px 20px 20px;
  transition: all 0.25s ease;
}
.mini-card-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--admin-text-muted);
}
.mini-footer {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  transition: all 0.25s ease;
}

/* Color Pickers Grid */
.theme-colors-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.color-group-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 20px;
  box-shadow: var(--admin-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.color-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 10px;
}
.color-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--admin-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.contrast-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}
.contrast-badge.pass {
  background: #dcfce7;
  color: #15803d;
}
.contrast-badge.warning {
  background: #fef3c7;
  color: #b45309;
}
.contrast-badge.fail {
  background: #fee2e2;
  color: #b91c1c;
}

.color-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.picker-label-wrap {
  display: flex;
  flex-direction: column;
}
.picker-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--admin-text-main);
}
.picker-desc {
  font-size: 0.72rem;
  color: var(--admin-text-muted);
}
.picker-inputs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-swatch-input {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--admin-border);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: none;
  -webkit-appearance: none;
}
.color-swatch-input::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-swatch-input::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}
.color-hex-input {
  width: 90px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 10px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text-main);
  background: #ffffff;
  text-align: center;
}
.color-hex-input:focus {
  border-color: var(--admin-primary);
  outline: none;
}

@media (max-width: 768px) {
  .theme-presets-grid {
    grid-template-columns: 1fr;
  }
  .theme-colors-sections {
    grid-template-columns: 1fr;
  }
  .auto-contrast-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .mini-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .mini-hero-left {
    max-width: 100%;
  }
}
