@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #DF0513;
  --primary-hover: #B70410;
  --primary-light: #FFF1F2;
  --primary-border: #FECACA;
  
  --dark: #0F172A;
  --dark-surface: #1E293B;
  --sidebar-bg: #0B0F19;
  --sidebar-hover: #161F30;
  --sidebar-active: #1E293B;
  
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --info: #3B82F6;
  --info-bg: #EFF6FF;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   APP LAYOUT (Sidebar + Main)
   ========================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(223, 5, 19, 0.35);
  overflow: hidden;
  padding: 3px;
  flex-shrink: 0;
}

.brand-emblem svg {
  width: 22px;
  height: 22px;
  color: #FFFFFF;
}

.brand-emblem img,
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.brand-text h1 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  line-height: 1.2;
}

.brand-text p {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.sidebar-close-btn {
  display: none;
  color: #94A3B8;
  padding: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
  padding: 12px 10px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  color: #94A3B8;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  transition: color 0.2s;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: #FFFFFF;
}

.sidebar-link:hover svg {
  color: var(--primary);
}

.sidebar-link.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(223, 5, 19, 0.3);
}

.sidebar-link.active svg {
  color: #FFFFFF;
}

.sidebar-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

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

.sidebar-dev-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.2s ease;
  padding: 4px 0 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.sidebar-dev-credit:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.sidebar-dev-credit .dev-by-text {
  font-size: 10px;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.4px;
  text-transform: lowercase;
  line-height: 1.2;
}

.sidebar-dev-credit .dev-name-text {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.sidebar-dev-credit:hover .dev-name-text {
  color: #DF0513;
}

.sidebar-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.user-role {
  font-size: 10.5px;
  color: #94A3B8;
}

.logout-btn {
  color: #94A3B8;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

/* Main Content Area */
.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header */
.admin-header {
  height: 72px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle-btn {
  display: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  width: 320px;
  transition: border-color 0.2s;
}

.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(223, 5, 19, 0.1);
  background: #FFFFFF;
}

.header-search svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.header-search input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  color: var(--text-main);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-view-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.header-view-store:hover {
  background: #FFFFFF;
  border-color: var(--text-main);
}

.header-date-badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-page);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   NOTIFICATION BELL & DROPDOWN
   ========================================================================== */
.notification-bell-wrap {
  position: relative;
}

.notification-bell-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  padding: 0;
}

.notification-bell-btn:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  color: var(--primary);
}

.notification-bell-btn svg {
  width: 19px;
  height: 19px;
  transition: transform 0.2s ease;
}

.notification-bell-btn.ringing svg {
  animation: bellShake 0.6s infinite ease-in-out;
  color: #DF0513;
}

@keyframes bellShake {
  0% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  75% { transform: rotate(4deg); }
  85% { transform: rotate(-4deg); }
  100% { transform: rotate(0); }
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #DF0513;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(223, 5, 19, 0.4);
  border: 2px solid #FFFFFF;
  animation: badgePulse 1.2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(223, 5, 19, 0.6); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(223, 5, 19, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(223, 5, 19, 0); }
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  display: none;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}

.notification-dropdown.open {
  display: block;
}

.notification-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
}

.notification-dropdown-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
}

.notification-dropdown-title svg {
  color: #DF0513;
}

.btn-sound-test {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-sound-test:hover {
  background: #FFF1F2;
  border-color: #FECACA;
  color: #DF0513;
}

.notification-dropdown-body {
  max-height: 320px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.notification-item:hover {
  background: #F8FAFC;
}

.notification-item.unread {
  background: #FFF9F9;
  border-left: 3px solid #DF0513;
}

.notification-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #FFF1F2;
  color: #DF0513;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-item-content {
  flex: 1;
  min-width: 0;
}

.notification-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-item-desc {
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}

.notification-item-time {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 4px;
}

.notification-empty {
  padding: 32px 16px;
  text-align: center;
  color: #94A3B8;
  font-size: 13px;
}

.notification-dropdown-footer {
  padding: 10px 16px;
  border-top: 1px solid #F1F5F9;
  text-align: center;
  background: #F8FAFC;
}

.notification-view-all {
  font-size: 12.5px;
  font-weight: 700;
  color: #DF0513;
  text-decoration: none;
}

.notification-view-all:hover {
  text-decoration: underline;
}

/* Page Container */
.page-container {
  padding: 28px;
  flex: 1;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(223, 5, 19, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(223, 5, 19, 0.35);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-page);
  border-color: #CBD5E1;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 7px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: #FFFFFF;
}

.btn-icon:hover {
  color: var(--text-main);
  border-color: #94A3B8;
}

/* ==========================================================================
   STATS CARDS (Example panel style)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-sub {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrap.primary {
  background: var(--primary-light);
  color: var(--primary);
}

.stat-icon-wrap.success {
  background: var(--success-bg);
  color: var(--success);
}

.stat-icon-wrap.info {
  background: var(--info-bg);
  color: var(--info);
}

.stat-icon-wrap.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.stat-icon-wrap svg {
  width: 22px;
  height: 22px;
}

/* Revenue Breakdown Cards */
.revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.revenue-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.revenue-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.revenue-card.daily::before { background: var(--info); }
.revenue-card.weekly::before { background: var(--warning); }
.revenue-card.monthly::before { background: var(--primary); }

.revenue-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.revenue-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   CARDS & TABLES
   ========================================================================== */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-body {
  padding: 24px;
}

/* Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #F8FAFC;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: #F8FAFC;
}

/* Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.hazirlaniyor,
.status-pill.pending {
  background: var(--warning-bg);
  color: #B45309;
}

.status-pill.kargoda,
.status-pill.shipped {
  background: var(--info-bg);
  color: #1D4ED8;
}

.status-pill.tamamlandi,
.status-pill.teslim-edildi,
.status-pill.completed {
  background: var(--success-bg);
  color: #047857;
}

.status-pill.iptal,
.status-pill.cancelled {
  background: var(--danger-bg);
  color: #B91C1C;
}

.status-pill.active {
  background: var(--success-bg);
  color: #047857;
}

.status-pill.inactive {
  background: #F1F5F9;
  color: #64748B;
}

/* Chart bar mockup for last 7 days */
.chart-container {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 200px;
  padding-top: 20px;
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-fill {
  width: 100%;
  max-width: 44px;
  background: var(--primary);
  border-radius: 6px 6px 0 0;
  min-height: 8px;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.chart-bar-fill:hover {
  background: var(--primary-hover);
}

.chart-bar-fill::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.chart-bar-fill:hover::after {
  opacity: 1;
}

.chart-day-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-inputs-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  width: 260px;
}

.filter-search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 13.5px;
  width: 100%;
  color: var(--text-main);
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  border: 1px solid #CBD5E1;
  padding: 8px 36px 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
}

.filter-select:hover {
  border-color: #94A3B8;
  background-color: #F8FAFC;
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(223, 5, 19, 0.12);
}

/* Custom Select Dropdown Component */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  min-width: 190px;
}

.custom-select-wrapper.custom-select-form-control,
.form-group .custom-select-wrapper {
  display: block;
  width: 100%;
  min-width: 0;
}

.custom-select-wrapper.custom-select-form-control .custom-select-trigger,
.form-group .custom-select-wrapper .custom-select-trigger {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #FFFFFF;
}

.custom-select-wrapper.custom-select-form-control .custom-select-dropdown,
.form-group .custom-select-wrapper .custom-select-dropdown {
  width: 100%;
  max-width: 100%;
  z-index: 2000;
}

.custom-select-trigger {
  width: 100%;
  min-height: 38px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.15s ease;
  box-sizing: border-box;
  text-align: left;
}

.custom-select-trigger:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(223, 5, 19, 0.12);
}

.custom-select-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
}

.custom-select-chevron {
  width: 16px;
  height: 16px;
  color: #64748B;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  flex-shrink: 0;
}

.custom-select-wrapper.open .custom-select-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.14), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  z-index: 1050;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: customSelectFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes customSelectFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select-wrapper.open .custom-select-dropdown {
  display: flex;
}

.custom-select-options-list {
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 0;
}

.custom-select-options-list::-webkit-scrollbar {
  width: 5px;
}

.custom-select-options-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.custom-select-options-list::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.custom-select-option {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.custom-select-option:hover {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.custom-select-option.selected {
  background: #FEF2F2;
  color: var(--primary);
  font-weight: 700;
}

.custom-select-opt-label {
  white-space: nowrap;
}

.custom-select-check {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #F8FAFC;
}

/* Form Groups */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-main);
  background: #FFFFFF;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(223, 5, 19, 0.12);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

/* ==========================================================================
   LOGIN PAGE (Example Panel Auth style)
   ========================================================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 24px;
  position: relative;
}

.login-screen::before {
  display: none;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 10;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-box {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(223, 5, 19, 0.35);
}

.login-logo-box svg {
  width: 32px;
  height: 32px;
  color: #FFFFFF;
}

.login-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.login-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.login-alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  display: none;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #FECACA;
}

.login-alert.show {
  display: block;
}

.password-input-wrap {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  cursor: pointer;
}

.password-toggle-btn:hover {
  color: var(--text-main);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .revenue-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
  }
  .sidebar-backdrop.open {
    display: block;
  }
  .sidebar-close-btn {
    display: block;
  }
  .admin-main {
    margin-left: 0;
  }
  .menu-toggle-btn {
    display: flex;
  }
  .header-search {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .page-container {
    padding: 16px;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-search-box {
    width: 100%;
  }
}

/* ==========================================================================
   IMAGE UPLOAD COMPONENT
   ========================================================================== */
.image-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.image-dropzone:hover,
.image-dropzone.dragover {
  border-color: var(--primary);
  background: #FFF1F2;
}

.image-dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: color 0.2s;
}

.image-dropzone:hover .image-dropzone-icon {
  color: var(--primary);
}

.image-dropzone-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.image-dropzone-subtext {
  font-size: 11.5px;
  color: var(--text-muted);
}

.image-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #FFFFFF;
}

.image-preview-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #F1F5F9;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.image-preview-info {
  flex: 1;
  min-width: 0;
}

.image-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-preview-status {
  font-size: 11.5px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.image-preview-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

