/* ==========================================================================
   VoiceLess Cloud - SaaS Admin Dashboard Stylesheet
   Primary Theme: Pure Obsidian Black (#000000)
   Accents: Electric Neon Blue (#00E5FF, #70EFFF), Royal Deep Blue (#087BFF),
            Cyber Purple (#923CFF), Cyber Green (#00E676)
   Typography: Cairo (Arabic RTL) & Orbitron (Cyber Numerals)
   Brand Standard: POWER BY Z7 TEC
   ========================================================================== */

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

:root {
  --bg-primary: #000000;
  --bg-surface: #05080e;
  --bg-card: rgba(8, 14, 24, 0.90);
  --bg-card-hover: rgba(14, 24, 40, 0.98);
  
  --accent-gold: #00E5FF;
  --accent-gold-light: #70EFFF;
  --accent-copper: #087BFF;
  --accent-copper-light: #4DA1FF;

  --accent-cyan: #00E5FF;
  --accent-blue: #087BFF;
  --accent-purple: #923CFF;
  --accent-green: #00E676;
  --accent-red: #FF3366;

  --border-subtle: rgba(0, 229, 255, 0.18);
  --border-gold: rgba(0, 229, 255, 0.50);
  --border-copper: rgba(8, 123, 255, 0.50);

  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(224, 122, 56, 0.05) 0%, transparent 40%);
}

/* Numerals Metallic Styling */
.stat-val,
.numeric {
  font-family: 'Orbitron', 'Cairo', sans-serif;
  letter-spacing: 0.5px;
}

/* Admin Shell */
.admin-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  gap: 28px;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.8);
}

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

.admin-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDE08B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-role {
  font-size: 0.72rem;
  color: var(--accent-copper-light);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.8px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(212, 175, 55, 0.08);
  color: #FFFFFF;
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(224, 122, 56, 0.1));
  color: var(--accent-gold-light);
  border-color: var(--border-gold);
  font-weight: 800;
}

/* Main Content Area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
}

.page-title {
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDE08B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.domain-pill {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.76rem;
  color: var(--accent-gold-light);
  padding: 5px 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
}

.admin-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-copper), transparent);
}

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

/* Beautiful Metallic Neon Blue Numbers */
.stat-val {
  font-size: 2.1rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FFFFFF 0%, #70EFFF 50%, #00E5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 229, 255, 0.4));
}

.stat-val.cyan {
  background: linear-gradient(135deg, #FFFFFF 0%, #70EFFF 60%, #00E5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-val.green {
  background: linear-gradient(135deg, #E8FFFB 0%, #00E676 70%, #00BFA5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 230, 118, 0.35));
}
.stat-val.purple {
  background: linear-gradient(135deg, #FFFFFF 0%, #B77AFF 50%, #923CFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tab Content Panels */
.tab-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.tab-panel.active {
  display: flex;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
  color: #000000;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.35);
}

.action-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(8, 123, 255, 0.5);
}

/* Tables */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

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

.admin-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  border-bottom: 1px solid var(--border-subtle);
  text-align: right;
}

.admin-table td {
  padding: 14px 18px;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-table tr:hover {
  background: rgba(0, 229, 255, 0.03);
}

/* Badges */
.status-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill.active, .status-pill.delivered {
  background: rgba(0, 230, 118, 0.15);
  color: #00E676;
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.status-pill.pending {
  background: rgba(8, 123, 255, 0.15);
  color: #70EFFF;
  border: 1px solid rgba(8, 123, 255, 0.35);
}

.status-pill.preparing {
  background: rgba(0, 229, 255, 0.15);
  color: #00E5FF;
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.status-pill.cancelled {
  background: rgba(255, 51, 102, 0.15);
  color: #FF3366;
  border: 1px solid rgba(255, 51, 102, 0.35);
}

/* Buttons in table */
.sm-btn {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent-gold-light);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  margin-left: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.sm-btn:hover {
  background: var(--accent-gold);
  color: #000000;
}

.sm-btn.danger {
  border-color: rgba(255, 51, 102, 0.4);
  color: #FF3366;
  background: rgba(255, 51, 102, 0.08);
}

.sm-btn.danger:hover {
  background: var(--accent-red);
  color: #FFFFFF;
}

/* Form Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

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

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.35);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-gold-light);
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--accent-gold);
}

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

.form-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.92rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

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

.submit-btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
  color: #000000;
  border: none;
  font-family: inherit;
  font-weight: 900;
  font-size: 1.02rem;
  cursor: pointer;
  margin-top: 10px;
}
