:root {
  --primary-color: #4e73df;
  --secondary-color: #858796;
  --success-color: #1cc88a;
  --info-color: #36b9cc;
  --warning-color: #f6c23e;
  --danger-color: #e74a3b;
  --dark-bg: #1a1c23; /* Dark Navy */
  --sidebar-bg: #111319;
  --card-bg: #ffffff;
  --text-color: #5a5c69;
}

body {
  font-family: "Nunito", sans-serif;
  background-color: #f8f9fc;
  color: var(--text-color);
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  background-color: var(--sidebar-bg);
  min-height: 100vh;
  color: white;
  width: 250px;
  transition: all 0.3s ease;
  z-index: 1000;
}

.sidebar.toggled {
  width: 0 !important;
  overflow: hidden;
  padding: 0 !important;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--primary-color);
}

.sidebar-brand {
  padding: 1.5rem 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.05rem;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

/* Mobile Sidebar & Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .sidebar-overlay.show {
    display: block;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 0;
    overflow: hidden;
    padding: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
  }

  .sidebar.toggled {
    width: 250px !important;
    padding: 1rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
}

/* Login Page - Glamorous Dark Modern */
.bg-login {
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #141414 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
}

.login-left-panel {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(30, 30, 30, 0.8) 100%);
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.login-left-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.login-content {
  padding: 3rem 4rem;
}

.form-control-dark {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.form-control-dark:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

.form-control-dark::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-login {
  background: linear-gradient(45deg, #4e73df 0%, #224abe 100%);
  border: none;
  padding: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  border-radius: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
  background: linear-gradient(45deg, #224abe 0%, #4e73df 100%);
}

/* Dashboard Cards */
.card-counter {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  transition: transform 0.2s;
}

.card-counter:hover {
  transform: translateY(-5px);
}

.icon-circle {
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Table */
.table-custom thead th {
  background-color: #f8f9fc;
  color: var(--secondary-color);
  border-bottom: 2px solid #e3e6f0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.btn-icon {
  width: 35px;
  height: 35px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;
}

/* Utilities */
.text-xs {
  font-size: 0.7rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  animation: fadeIn 0.8s ease-out;
}
