/* ==========================================================================
   ADMIN DASHBOARD STYLESHEET - LUXURY BLACK & GOLD CMS (BILINGUAL RTL/LTR)
   ========================================================================== */

.admin-body {
  background-color: #070707;
  color: #F0F0F0;
  font-family: var(--font-family);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

html[dir="rtl"] .admin-body {
  font-family: var(--font-family-arabic);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 270px;
  background: #111111;
  border-inline-end: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition);
}

.admin-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.admin-brand svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-primary);
  flex-shrink: 0;
}

.admin-nav {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: #A3A3A3;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition: var(--transition);
}

.nav-tab-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

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

.nav-tab-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-border);
  color: var(--gold-light);
}

.admin-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.admin-header {
  height: 70px;
  background: #0E0E0E;
  border-bottom: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.header-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
}

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

.admin-content-pane {
  padding: 30px;
  display: none;
}

.admin-content-pane.active {
  display: block;
}

/* Cards & Widgets */
.admin-card {
  background: #141414;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.admin-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #CCCCCC;
}

.form-input, .form-textarea, .form-select {
  padding: 10px 14px;
  background: #0B0B0B;
  border: 1px solid #333333;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

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

/* Analytics Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: #111111;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.stat-box::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
}

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

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-top: 6px;
}

/* Simple CSS Bar Chart */
.chart-container {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding: 20px 0 10px;
  border-bottom: 1px solid #333333;
}

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

.chart-bar {
  width: 100%;
  max-width: 32px;
  background: var(--gold-gradient);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
}

.chart-bar-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Authentication Screen */
.auth-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0B0B0B;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 20px;
}

.auth-card {
  background: #141414;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  text-align: center;
}

.auth-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
}

.auth-logo svg {
  width: 32px;
  height: 32px;
  fill: var(--gold-primary);
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
