/* =================================================================
   META ROSE ADMIN PANEL - Luxury Emerald & Gold Styling
   ================================================================= */

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

:root {
  --bg-deep: #030d09;
  --bg-darker: #010705;
  --bg-card: rgba(8, 27, 19, 0.95);
  --bg-card-hover: rgba(12, 38, 27, 0.98);
  
  --gold-primary: #d4af37;
  --gold-accent: #f5cf68;
  --gold-border: rgba(212, 175, 55, 0.45);
  
  --font-persian: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Cinzel', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-persian);
  background-color: #030d09 !important;
  color: #f8fafc !important;
  direction: rtl;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, #0d2e20 0%, #030d09 60%, #010604 100%) !important;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #020a06;
}
::-webkit-scrollbar-thumb {
  background: #143528;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

.font-brand {
  font-family: var(--font-brand);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff2c4 0%, #e5c158 50%, #b89128 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.25rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.admin-card:hover {
  border-color: rgba(245, 207, 104, 0.7);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.95);
}

/* Navigation Sidebar Tab Buttons */
.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s ease;
  width: 100%;
  text-align: right;
  border: 1px solid transparent;
}

.nav-tab-btn:hover {
  color: #ffffff;
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateX(-3px);
}

.nav-tab-btn.active {
  color: #04120a !important;
  background: linear-gradient(135deg, #f5d166 0%, #d4af37 50%, #b89128 100%) !important;
  border-color: #fef08a !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.45);
  font-weight: 800;
  transform: translateX(-4px);
}

.nav-tab-btn.active i {
  color: #04120a !important;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-processing {
  background: rgba(14, 165, 233, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.status-shipped {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.status-delivered {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.status-cancelled {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

/* Table Styling */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: right;
  font-size: 0.815rem;
}

.admin-table th {
  padding: 0.85rem 1rem;
  color: #f1f5f9;
  font-weight: 800;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(4, 18, 12, 0.85);
}

.admin-table td {
  padding: 0.85rem 1rem;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(212, 175, 55, 0.08);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 5, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: linear-gradient(180deg, #092418 0%, #04120b 100%);
  border: 1px solid var(--gold-border);
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Gold Action Button */
.btn-gold {
  background: linear-gradient(135deg, #e5c158 0%, #d4af37 50%, #b89128 100%);
  color: #04120a;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.6rem 1.25rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

/* Dark Green Button */
.btn-dark-green {
  background: #082215;
  border: 1px solid var(--gold-border);
  color: #f1f5f9;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.6rem 1.25rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-dark-green:hover {
  background: #0e3522;
  border-color: var(--gold-accent);
  color: #ffffff;
}

/* Inputs */
.admin-input {
  width: 100%;
  background: rgba(3, 14, 9, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  font-size: 0.815rem;
  transition: all 0.2s ease;
}

.admin-input:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}
