/* Dark Theme based on oc_dashboard_v13.html */
:root {
  --blue: #02A7FF;
  --yellow: #FACF1E;
  --green: #05b179;
  --red: #F84616;
  --dark-bg: #111;
  --dark-card: #1a1a1a;
}

/* Base */
html, body {
  background-color: var(--dark-bg);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
}

/* Links and muted text */
a { color: #8ecbff; }
a:hover { color: #bde2ff; }
.text-muted, .form-text { color: #9aa4b2 !important; }

/* Cards / panels */
.card { background-color: var(--dark-card); color: #fff; border: 1px solid #2a2a2a; }
.card .card-header { background: transparent; color: #fff; border-bottom: 1px solid #2a2a2a; }
.card .card-footer { background: transparent; border-top: 1px solid #2a2a2a; }

/* Forms */
.form-label { color: #e6e6e6; }
.form-control, .form-select, .form-control:focus, .form-select:focus {
  background-color: #1f1f1f;
  color: #fff;
  border-color: #3a3a3a;
}
.form-control::placeholder { color: #8a8a8a; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: none; }
.form-control[readonly], .form-control:disabled { background-color: #212121; color: #cfcfcf; }
.form-check-label { color: #e6e6e6; }
.form-check-input { background-color: #1f1f1f; border-color: #3a3a3a; }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }

/* Tables */
.table { color: #e6e6e6; border-color: #2a2a2a; }
.table > :not(caption) > * > * { background-color: transparent; }
.table thead th { color: #b9c2cf; border-bottom-color: #333; }
.table tbody td { color: #e6e6e6; border-color: #2a2a2a; }
.table tfoot td { border-color: #2a2a2a; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(255,255,255,0.02); }
.table-hover tbody tr:hover > * { background-color: rgba(255,255,255,0.05); color: #fff; }
.table .btn { color: #fff; }

/* Inputs within dark table toolbars */
.table-toolbar input.form-control, .table-toolbar .form-select { background-color: #1f1f1f; color: #fff; border-color: #3a3a3a; }

/* HR and borders */
hr { border-top: 1px solid #2a2a2a; opacity: 1; }

/* Sidebar */
.sidebar {
  background-color: #000;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 250px;
  padding: 30px 20px 80px;
  z-index: 1100;
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.sidebar a,
.sidebar .nav-link-like {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 14px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.sidebar a i,
.sidebar .nav-link-like i {
  margin-right: 12px;
  width: 22px;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar a.active,
.sidebar .active > a {
  color: var(--blue);
  font-weight: 700;
}

.sidebar a:hover {
  color: var(--blue);
  transform: translateX(4px);
}

.submenu {
  display: none;
  padding-left: 35px;
  flex-direction: column;
}

.submenu.show { display: flex; }

.email-text {
  font-size: 0.85rem;
  color: var(--blue);
  padding-left: 12px;
  font-weight: 500;
  user-select: text;
}

/* Toggle */
.menu-toggle {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  background-color: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1.1rem;
  z-index: 1300;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-toggle:hover { background-color: #0096e6; }

/* Header */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 270px;
  right: 0;
  background-color: #111;
  padding: 18px 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  min-height: 64px;
}

.dashboard-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.notification-count {
  background: radial-gradient(circle at 30% 30%, #ff6b4a, var(--red));
  color: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  min-width: 26px;
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.15;
  border: 1px solid #0f0f0f;
  box-shadow: 0 0 0 1px #1c1c1c;
}

.notification-count:not(.has-count) {
  opacity: 0.75;
}

.sidebar .notification-item {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #1f1f1f;
  background: linear-gradient(135deg, #0b0b0b 0%, #131313 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.sidebar .notification-item:hover {
  color: var(--blue);
  border-color: #2a2a2a;
  box-shadow: 0 0 0 1px rgba(2,167,255,0.25), 0 10px 18px rgba(0,0,0,0.45);
}

/* Main */
.main-content {
  margin-left: 270px;
  padding: 96px 24px 80px 24px; /* below fixed header */
  min-height: 100vh;
}

/* Cards */
.card-box {
  border-radius: 12px;
  color: #000;
  padding: 24px 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-box h5 i { margin-right: 8px; }

.card-box h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.yellow { background-color: var(--yellow); }
.green  { background-color: var(--green); }
.red    { background-color: var(--red); }

.summary-card {
  background-color: var(--dark-card);
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  min-height: 180px;
  border: none;
}

.summary-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  margin-bottom: 10px;
  text-align: center;
}

.summary-card i { color: var(--blue); font-size: 1.15rem; }
.summary-card p { color: #fff !important; margin: 4px 0; text-align: left; font-size: 0.95rem; }

/* Footer */
footer.app-footer {
  position: fixed;
  bottom: 0;
  left: 250px;
  right: 0;
  background-color: #111;
  color: #aaa;
  text-align: center;
  font-size: 0.85rem;
  padding: 6px 0;
  z-index: 100;
  border-top: none;
}

/* Responsive */
@media (max-width: 992px) {
  .menu-toggle { display: block; }
  .sidebar { transform: translateX(-260px); }
  .sidebar.active { transform: translateX(0); }
  .dashboard-header { left: 0; right: 0; padding: 16px 12px; }
  .main-content { margin-left: 0; padding: 96px 16px 96px 16px; }
  footer.app-footer { left: 0; font-size: 0.8rem; }
}

.cursor-not-allowed {
    cursor: not-allowed !important;
    opacity: 0.3 !important;
}
