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

* {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background: #f0f2f5;
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 0.6rem 0;
  border-bottom: 3px solid #3b82f6;
}

.navbar .navbar-brand {
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 1.15rem;
}

.navbar .nav-link {
  font-size: 13.5px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 0 2px;
  transition: all 0.2s ease;
  color: rgba(255,255,255,0.75) !important;
}

.navbar .nav-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
  transform: translateY(-1px);
}

.navbar .nav-link i {
  margin-right: 6px;
}

.navbar .dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 8px;
  margin-top: 8px;
}

.navbar .dropdown-item {
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  transition: all 0.15s ease;
}

.navbar .dropdown-item:hover {
  background: #f1f5f9;
  transform: translateX(3px);
}

.navbar .dropdown-item i {
  width: 20px;
  color: #3b82f6;
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
}

.card-header {
  background: #f8fafc;
  border-bottom: 1px solid #eef2f6;
  border-radius: 14px 14px 0 0 !important;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

/* ===== STAT CARDS (DASHBOARD) ===== */
.card.bg-primary, .card.bg-success, .card.bg-warning, .card.bg-info {
  border: none !important;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-warning:hover,
.card.bg-info:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card.bg-primary { background: linear-gradient(135deg, #3b82f6, #2563eb) !important; }
.card.bg-success { background: linear-gradient(135deg, #10b981, #059669) !important; }
.card.bg-warning { background: linear-gradient(135deg, #f59e0b, #d97706) !important; }
.card.bg-info { background: linear-gradient(135deg, #06b6d4, #0891b2) !important; }

/* ===== BUTTONS ===== */
.btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  padding: 0.45rem 1rem;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-primary { background: #3b82f6; border-color: #3b82f6; }
.btn-primary:hover { background: #2563eb; border-color: #2563eb; }

.btn-success { background: #10b981; border-color: #10b981; }
.btn-success:hover { background: #059669; border-color: #059669; }

.btn-warning { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; border-color: #d97706; color: #fff; }

.btn-danger { background: #ef4444; border-color: #ef4444; }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }

.btn-info { background: #06b6d4; border-color: #06b6d4; color: #fff; }
.btn-info:hover { background: #0891b2; border-color: #0891b2; color: #fff; }

.btn-sm {
  border-radius: 6px;
  font-size: 12px;
  padding: 0.25rem 0.6rem;
}

.btn-lg {
  border-radius: 10px;
  font-size: 15px;
  padding: 0.6rem 1.2rem;
}

/* ===== TABLES ===== */
.table {
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  padding: 0.75rem 1rem;
  background: #f8fafc;
}

.table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.table-hover tbody tr:hover {
  background: #f8fafc;
}

.table-responsive {
  border-radius: 14px;
}

/* ===== FORMS ===== */
.form-control, .form-select {
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  padding: 0.5rem 0.85rem;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-label {
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-control-lg {
  padding: 0.65rem 1rem;
  font-size: 15px;
}

/* ===== BADGES ===== */
.badge {
  font-weight: 500;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 6px;
}

.badge.bg-primary { background: #3b82f6 !important; }
.badge.bg-success { background: #10b981 !important; }
.badge.bg-secondary { background: #94a3b8 !important; }
.badge.bg-warning { background: #f59e0b !important; }

/* ===== SECTION HEADERS ===== */
h5.text-primary {
  color: #1e293b !important;
  border-bottom: 2.5px solid #3b82f6;
  padding-bottom: 10px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1rem;
}

/* ===== ALERTS ===== */
.alert {
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
}

.alert-success { background: #ecfdf5; color: #065f46; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.alert-info { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ===== NAV-TABS ===== */
.nav-tabs .nav-link {
  border: none;
  font-weight: 500;
  color: #64748b;
  padding: 0.6rem 1.2rem;
  border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link.active {
  color: #3b82f6;
  background: none;
  border-bottom: 2.5px solid #3b82f6;
}

/* ===== LIST GROUP ===== */
.list-group-item {
  border-color: #f1f5f9;
  padding: 1rem 1.25rem;
  transition: background 0.15s ease;
}

.list-group-item-action:hover {
  background: #f8fafc;
}

/* ===== PAGE HEADERS ===== */
h3 {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.4rem;
}

h3 i {
  color: #3b82f6;
}

/* ===== CONTAINER ===== */
.container-fluid {
  max-width: 1400px;
  padding: 0 2rem;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a5f 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(139,92,246,0.06) 0%, transparent 50%);
  animation: loginBgShift 20s ease-in-out infinite alternate;
}

@keyframes loginBgShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(2%, 2%); }
}

.login-card {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  width: 100%;
  position: relative;
  z-index: 1;
}

.login-card .card-body {
  padding: 2.5rem;
}

.login-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(59,130,246,0.3);
}

.login-icon i {
  font-size: 2rem;
  color: #fff;
}

.login-title {
  font-weight: 800;
  color: #1e293b;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container-fluid { padding: 0 1rem; }
  .login-card .card-body { padding: 1.5rem; }
  .navbar .container-fluid { padding: 0 1rem; }
}
