:root {
  --dash-bg: #070a13;
  --dash-sidebar: #0b101d;
  --dash-panel: rgba(15, 23, 42, 0.8);
  --dash-border: rgba(255, 255, 255, 0.08);
  --dash-border-active: rgba(0, 242, 254, 0.35);
  
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.25);
  --secondary: #9333ea;
  --green: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-arabic: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: var(--font-arabic);
  background-color: var(--dash-bg);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow */
.dash-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

.dash-glow-1 {
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.dash-glow-2 {
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.text-gradient {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cyan { color: var(--primary); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-purple { color: #a855f7; }
.text-rose { color: var(--rose); }
.text-center { text-align: center; }

.glass-panel {
  background: var(--dash-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 198, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--dash-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-glow {
  box-shadow: 0 0 15px var(--primary-glow);
}

/* ======================================================== */
/* 1. LAMP LOGIN INTERACTIVE SCREEN STYLES                  */
/* ======================================================== */
.login-wrapper.lamp-theme {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 40%, #0e172a 0%, #060913 100%);
  overflow-y: auto;
  transition: background 0.6s ease;
}

.lamp-theme.stage-lit {
  background: radial-gradient(circle at 45% 45%, rgba(0, 242, 254, 0.12) 0%, rgba(15, 23, 42, 0.95) 55%, #060913 100%) !important;
}

.lamp-login-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  width: 100%;
  max-width: 960px;
  position: relative;
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- LAMP UNIT --- */
.lamp-unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.lamp-svg {
  width: 220px;
  height: 270px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1), height 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

/* Light Beam & Ground Spot */
.lamp-beam {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lamp-ground-spot {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* Diffuser Rim */
.lamp-rim {
  transition: fill 0.35s ease, filter 0.35s ease;
}

/* Shade */
.lamp-shade {
  transition: fill 0.35s ease, filter 0.35s ease;
}

/* Face elements */
.face-sleeping, .face-awake {
  transition: opacity 0.25s ease;
}

/* Pull Cord & Handle */
#cord-path {
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  cursor: grab;
  transition: stroke 0.2s ease;
}

.cord-handle-group {
  cursor: grab;
  outline: none;
}

.cord-handle-group:active,
.cord-handle-group.dragging {
  cursor: grabbing;
}

#cord-handle {
  transition: filter 0.2s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.cord-handle-group:hover #cord-handle {
  filter: drop-shadow(0 0 10px #00f2fe) brightness(1.15);
}

/* --- STATE: LAMP OFF --- */
.lamp-off .lamp-shade {
  fill: url(#shadeOffGrad);
}

.lamp-off .lamp-rim {
  fill: #95a5a6;
  opacity: 0.4;
}

.lamp-off .lamp-beam,
.lamp-off .lamp-ground-spot {
  opacity: 0;
}

.lamp-off .face-sleeping {
  display: block;
}

.lamp-off .face-awake {
  display: none;
}

.lamp-off .login-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(40px) scale(0.92);
  max-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-width: 0;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.4s ease, padding 0.4s ease, border-width 0.4s ease, visibility 0.4s;
}

/* --- STATE: LAMP ON --- */
.lamp-on .lamp-shade {
  fill: url(#shadeOnGrad);
  filter: drop-shadow(0 0 40px rgba(0, 242, 254, 0.65));
}

.lamp-on .lamp-rim {
  fill: #ffffff;
  filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.95));
}

.lamp-on .lamp-beam {
  opacity: 1;
}

.lamp-on .lamp-ground-spot {
  opacity: 1;
}

.lamp-on .face-sleeping {
  display: none;
}

.lamp-on .face-awake {
  display: block;
}

.lamp-on .login-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  max-width: 450px;
  width: 100%;
  padding: 44px 38px 34px;
  border-radius: 24px;
  background: rgba(14, 20, 36, 0.88);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 242, 254, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.4s ease, padding 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.lamp-on .login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2fe, #0072ff, transparent);
  opacity: 0.9;
}

.lamp-on .login-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.55));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  display: block;
}

.login-card:hover .login-icon {
  transform: scale(1.08);
}

.login-card:hover .login-brand-logo-img {
  filter: drop-shadow(0 0 24px rgba(0, 242, 254, 0.85));
}

.login-welcome-text {
  font-family: var(--font-mono, 'Fira Code', monospace);
  font-size: 1.05rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.login-title.login-brand-title {
  font-family: var(--font-mono, 'Fira Code', 'Cairo', monospace);
  font-size: 1.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  direction: ltr; /* Keeps brackets oriented correctly */
  margin-bottom: 24px;
}

.login-brand-title .code-bracket {
  color: #00f2fe;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.45);
}

.login-brand-title .code-slash {
  color: #a855f7;
  font-weight: 900;
  margin: 0 2px;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
}

.login-brand-title .brand-name {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.login-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.login-form .form-group {
  margin-bottom: 24px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form .form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #cbd5e1;
  justify-content: flex-start;
}

.lamp-on .login-form .form-group label i {
  color: #00f2fe;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap .form-control {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 50px;
  background: rgba(8, 14, 28, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-arabic);
  font-size: 0.96rem;
  transition: all 0.25s ease;
}

.password-input-wrap .form-control::placeholder {
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.9rem;
}

.lamp-on .password-input-wrap .form-control:focus {
  border-color: #00f2fe;
  background: rgba(10, 18, 36, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2), 0 0 20px rgba(0, 242, 254, 0.2);
}

.btn-toggle-pwd {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-toggle-pwd:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.35);
  color: #00f2fe;
}

#loginSubmitBtn {
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(0, 114, 255, 0.4), 0 0 15px rgba(0, 242, 254, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#loginSubmitBtn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #18f4ff 0%, #0084ff 100%);
  box-shadow: 0 8px 25px rgba(0, 114, 255, 0.55), 0 0 25px rgba(0, 242, 254, 0.35);
}

#loginSubmitBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 114, 255, 0.35);
}

.login-footer {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.return-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
}

.return-link:hover {
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.08);
  transform: translateX(-4px);
}

/* --- MOBILE RESPONSIVENESS & SHRINKING EFFECT --- */
@media (max-width: 768px) {
  .login-wrapper.lamp-theme {
    padding: 12px 14px;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
  }

  .lamp-login-stage {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: auto;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* When OFF on Mobile: Lamp is centered prominently in middle of screen */
  .lamp-off {
    gap: 0;
  }

  .lamp-off .lamp-unit {
    margin: auto;
  }

  .lamp-off .lamp-svg {
    width: 205px;
    height: 250px;
  }

  .lamp-off .login-card {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    max-width: 0;
    padding: 0;
    margin: 0;
    border-width: 0;
    overflow: hidden;
    transform: translateY(25px) scale(0.92);
  }

  /* When ON on Mobile: Lamp shrinks smoothly so both fit on screen simultaneously */
  .lamp-on {
    gap: 10px;
  }

  .lamp-on .lamp-unit {
    margin-top: 2px;
  }

  .lamp-on .lamp-svg {
    width: 115px;
    height: 142px;
  }

  .lamp-on .login-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-width: 100%;
    width: 100%;
    max-height: 600px;
    padding: 18px 18px 14px;
    border-radius: 18px;
    transform: translateY(0) scale(1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.15);
  }

  .lamp-on .login-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    margin: 0 auto 8px;
    border-radius: 10px;
  }

  .lamp-on .login-welcome-text {
    font-size: 0.88rem;
    letter-spacing: 1.8px;
    margin-bottom: 3px;
  }

  .lamp-on .login-title.login-brand-title {
    font-size: 1.25rem;
    margin-bottom: 14px;
    gap: 4px;
  }

  .lamp-on .login-form .form-group {
    margin-bottom: 12px;
    gap: 5px;
  }

  .lamp-on .login-form .form-group label {
    font-size: 0.8rem;
    gap: 6px;
  }

  .lamp-on .password-input-wrap .form-control {
    height: 44px;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 0 14px 0 42px;
  }

  .lamp-on .btn-toggle-pwd {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
    left: 8px;
  }

  .lamp-on #loginSubmitBtn {
    height: 44px;
    font-size: 0.92rem;
    border-radius: 10px;
    gap: 8px;
  }

  .lamp-on .login-footer {
    margin-top: 12px;
    padding-top: 10px;
  }

  .lamp-on .return-link {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
}

/* Extra small height devices (landscape or compact screens) */
@media (max-height: 620px) and (max-width: 768px) {
  .lamp-on .lamp-svg {
    width: 90px;
    height: 112px;
  }
  .lamp-on .login-icon {
    display: none;
  }
  .lamp-on .login-card {
    padding: 14px 16px 10px;
  }
}

/* ======================================================== */
/* 2. DASHBOARD MAIN LAYOUT                                 */
/* ======================================================== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* Sidebar */
.dash-sidebar {
  width: 315px;
  background: var(--dash-sidebar);
  border-left: 1px solid var(--dash-border);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 24px 14px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--dash-border);
  overflow: visible;
}

.sidebar-brand-avatar {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: transparent;
  border: none;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.5));
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.sidebar-brand:hover .sidebar-brand-avatar {
  transform: scale(1.12);
  filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.85));
}

.sidebar-brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.brand-name-line {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
  direction: ltr;
  white-space: nowrap;
  letter-spacing: -0.3px;
  overflow: visible;
}

.brand-name-line .brand-code { color: #00f2fe; }
.brand-name-line .brand-slash { color: #a855f7; }
.brand-name-line .brand-title { color: #fff; white-space: nowrap; }

.sidebar-brand-info .brand-sub {
  font-size: 0.72rem;
  color: var(--text-dim, #94a3b8);
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  transition: all 0.2s ease;
  width: 100%;
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-item.active {
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}

.badge-count {
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.badge-accent {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.sidebar-footer {
  border-top: 1px solid var(--dash-border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dash-border);
  color: var(--text-muted);
  font-family: var(--font-arabic);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-action-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  color: #fff;
  border-color: var(--primary-glow);
}

.btn-logout:hover {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
  border-color: var(--rose);
}

/* Main Content */
.dash-main {
  flex: 1;
  margin-right: 315px;
  padding: 28px 36px 60px;
  min-height: 100vh;
}

/* Topbar */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  margin-bottom: 30px;
  border-radius: var(--radius-md);
}

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

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.page-main-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.page-sub-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.db-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.22);
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.db-status-pill:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.4);
}

.db-status-pill i {
  color: #00f2fe;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .db-status-pill {
    display: none;
  }
}

.admin-profile-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dash-border);
}

.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

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

.admin-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.admin-status {
  font-size: 0.72rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* Tabs System */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeInPane 0.25s ease;
}

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

/* ======================================================== */
/* 3. TAB 1: OVERVIEW & KPIS                                */
/* ======================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-md);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dash-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.kpi-data {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.9rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1.1;
}

.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.card-panel {
  padding: 24px;
  border-radius: var(--radius-md);
}

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

.panel-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-shortcut-banner {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(11, 16, 29, 0.95));
  border-color: var(--dash-border-active);
  display: flex;
  align-items: center;
}

.banner-content {
  text-align: center;
  padding: 20px;
}

.banner-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.banner-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.banner-content p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ======================================================== */
/* 4. TAB 2: PROJECTS MANAGEMENT                            */
/* ======================================================== */
.tab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  max-width: 360px;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
}

.search-box input {
  padding-right: 40px;
}

.dash-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.dash-proj-card {
  background: var(--dash-panel);
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.dash-proj-card:hover {
  border-color: var(--dash-border-active);
  transform: translateY(-2px);
}

.dash-proj-thumb {
  position: relative;
  width: 100%;
  height: 160px;
  background: #000;
}

.dash-proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-proj-feat-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.dash-proj-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dash-proj-cat {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.dash-proj-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.dash-proj-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.dash-proj-footer {
  border-top: 1px solid var(--dash-border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-proj-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dash-border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.btn-icon-danger:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--rose);
  color: var(--rose);
}

/* ======================================================== */
/* 5. TAB 3: BOOKINGS MANAGEMENT & TABLES                   */
/* ======================================================== */
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.status-filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dash-border);
  color: var(--text-muted);
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-filter-btn:hover, .status-filter-btn.active {
  background: var(--primary);
  color: #070a13;
  font-weight: 700;
  border-color: var(--primary);
}

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

.dash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.9rem;
}

.dash-table th {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--dash-border);
  white-space: nowrap;
}

.dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--dash-border);
  color: var(--text-main);
  vertical-align: middle;
}

.dash-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Booking Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill.status-new {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.status-in_review {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-pill.status-contacted {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-pill.status-in_progress {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.status-completed {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.logo-preview-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #000;
  border: 1px solid var(--dash-border);
  cursor: pointer;
}

.btn-whatsapp-cell {
  color: #25d366;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  direction: ltr;
}

.btn-whatsapp-cell:hover {
  text-decoration: underline;
}

/* ======================================================== */
/* 6. TAB 4: SETTINGS FORMS                                 */
/* ======================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.form-row-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(10, 16, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
}

textarea.form-control {
  resize: vertical;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #fff;
}

.image-upload-choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-or {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.current-img-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.current-img-preview img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--dash-border);
}

/* ======================================================== */
/* 7. MODALS                                                */
/* ======================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dash-modal {
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-color: var(--dash-border-active);
}

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

.dash-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.modal-close-icon:hover {
  color: var(--rose);
}

.dash-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dash-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

/* Booking Detail View Modal Content */
.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.detail-value {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
}

.detail-logo-box {
  margin-top: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  text-align: center;
}

.detail-logo-box img {
  max-height: 120px;
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid var(--dash-border);
}

.detail-desc-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--dash-border);
  line-height: 1.7;
  color: #e2e8f0;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #fff;
  border: 1px solid var(--dash-border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-size: 0.88rem;
  font-weight: 600;
}

.toast-success { border-color: rgba(16, 185, 129, 0.5); background: #064e3b; }
.toast-error { border-color: rgba(239, 68, 68, 0.5); background: #7f1d1d; }

/* Responsive */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .form-row-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  .dash-sidebar {
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .dash-sidebar.open {
    transform: translateX(0);
  }
  .dash-main {
    margin-right: 0;
    padding: 16px;
  }
  .sidebar-toggle {
    display: block;
  }
  .kpi-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ======================================================== */
/* MULTI-IMAGE PROJECT BATCH UPLOAD & GALLERY STYLES        */
/* ======================================================== */
.form-label-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  color: #e2e8f0;
}

.badge-cyan-subtle {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Interactive Dropzone */
.multi-upload-dropzone {
  border: 2px dashed rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-md);
  background: rgba(11, 17, 32, 0.55);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.multi-upload-dropzone:hover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.04);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
  transform: translateY(-1px);
}

.multi-upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
  transform: scale(1.01);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dropzone-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 4px;
  transition: transform 0.2s;
}

.multi-upload-dropzone:hover .dropzone-icon-circle {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 0 15px var(--primary-glow);
}

.dropzone-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.dropzone-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 420px;
  line-height: 1.4;
}

.dropzone-btn-wrap {
  margin-top: 6px;
}

/* Gallery Preview Container */
.proj-gallery-preview-container {
  margin-top: 14px;
  padding: 14px;
  background: rgba(5, 8, 16, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gallery-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
}

.gallery-cover-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
}

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

.btn-add-more-gallery {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-add-more-gallery:hover {
  background: rgba(0, 242, 254, 0.22);
  transform: translateY(-1px);
}

.btn-clear-gallery {
  background: none;
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-clear-gallery:hover {
  background: rgba(244, 63, 94, 0.2);
}

/* Grid of thumbnails */
.proj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.gallery-thumb-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, border-color 0.2s;
}

.gallery-thumb-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.gallery-thumb-item.is-cover {
  border: 2px solid var(--primary);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.35);
}

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

.gallery-thumb-cover-tag {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 242, 254, 0.95);
  color: #070a13;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

.gallery-thumb-index {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  z-index: 2;
}

/* Actions overlay on each thumbnail */
.gallery-thumb-actions {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 19, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}

.gallery-thumb-item:hover .gallery-thumb-actions {
  opacity: 1;
}

.thumb-action-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.thumb-action-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-thumb-action {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 4px;
  font-size: 0.7rem;
  padding: 3px 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-thumb-action:hover {
  background: rgba(0, 242, 254, 0.3);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-thumb-action.btn-make-cover {
  background: rgba(0, 242, 254, 0.2);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--primary);
  font-weight: 700;
  width: 100%;
  font-size: 0.68rem;
  padding: 4px;
}

.btn-thumb-action.btn-make-cover:hover {
  background: var(--primary);
  color: #070a13;
}

.btn-thumb-action.btn-delete-thumb {
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 0.9);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-thumb-action.btn-delete-thumb:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* External URLs Accordion */
.external-urls-wrapper {
  margin-top: 10px;
}

.btn-toggle-urls {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  transition: color 0.2s;
}

.btn-toggle-urls:hover {
  color: var(--primary);
}

.external-urls-panel {
  margin-top: 6px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-sm);
}

.urls-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
}

