/* VU Student Help Portal – Custom Styles */
:root {
  --sidebar-width: 260px;
  --navbar-height: 56px;
  --primary: #0d6efd;
  --sidebar-bg: #1a1d23;
}

/* ─── Body & Layout ──────────────────────────── */
body { font-family: 'Segoe UI', system-ui, sans-serif; }

.login-body {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 40%, #084298 100%);
  min-height: 100vh;
}
.login-logo {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Sidebar ─────────────────────────────────── */
#sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg) !important;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  z-index: 1020;
  overflow-y: auto;
  transition: transform .25s ease;
}
#sidebar .sidebar-inner { padding-bottom: 40px; }
#sidebar .nav-link {
  font-size: .9rem;
  padding: .45rem .75rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  color: rgba(255,255,255,.75) !important;
}
#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  background: rgba(13,110,253,.85) !important;
  color: #fff !important;
}
#sidebar .sidebar-heading {
  font-size: .7rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35) !important;
}

/* ─── Main Content ────────────────────────────── */
#mainWrapper {
  padding-top: var(--navbar-height);
}
.main-content {
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - var(--navbar-height));
  transition: margin-left .25s ease;
}

/* Sidebar collapsed */
body.sidebar-collapsed #sidebar { transform: translateX(-100%); }
body.sidebar-collapsed .main-content { margin-left: 0; }

@media (max-width: 991.98px) {
  #sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0 !important; }
  body.sidebar-open #sidebar { transform: translateX(0); }
}

/* ─── Cards ───────────────────────────────────── */
.card { border: none; border-radius: 12px; }
.card-header { border-radius: 12px 12px 0 0 !important; }

.stat-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.stat-card .stat-icon {
  font-size: 2.5rem;
  opacity: .2;
  position: absolute; right: 16px; top: 16px;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; }
.stat-card .stat-label { font-size: .8rem; opacity: .85; }

/* ─── Status Badges ───────────────────────────── */
.badge-pending  { background: #ffc107; color: #000; }
.badge-approved { background: #198754; color: #fff; }
.badge-rejected { background: #dc3545; color: #fff; }

/* ─── Tables ──────────────────────────────────── */
.table-hover tbody tr:hover { background-color: rgba(13,110,253,.05); }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; border-top: none; }

/* ─── File Upload ─────────────────────────────── */
.upload-zone {
  border: 2px dashed #ced4da;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(13,110,253,.04);
}
.upload-zone i { font-size: 2.5rem; color: #ced4da; }
.upload-zone.dragover i { color: var(--primary); }

/* ─── Page Header ─────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.page-header p { margin: 4px 0 0; opacity: .85; font-size: .9rem; }

/* ─── Notifications ───────────────────────────── */
.notification-dropdown { max-height: 360px; overflow-y: auto; }

/* ─── Breadcrumb ──────────────────────────────── */
.breadcrumb { background: none; padding: 0; margin-bottom: 8px; }
.breadcrumb-item + .breadcrumb-item::before { color: #adb5bd; }

/* ─── Search ──────────────────────────────────── */
.search-highlight { background: #fff3cd; padding: 0 2px; border-radius: 2px; }

/* ─── Activity log ────────────────────────────── */
.activity-item { border-left: 3px solid #e9ecef; padding-left: 12px; margin-bottom: 12px; }
.activity-item.login     { border-color: #0d6efd; }
.activity-item.upload    { border-color: #198754; }
.activity-item.download  { border-color: #0dcaf0; }
.activity-item.approve   { border-color: #20c997; }
.activity-item.reject    { border-color: #dc3545; }
.activity-item.delete    { border-color: #fd7e14; }

/* ─── Progress Bars ───────────────────────────── */
.progress { border-radius: 50px; height: 8px; }

/* ─── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 3px; }

/* ─── Misc ────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shadow-sm { box-shadow: 0 1px 8px rgba(0,0,0,.08) !important; }
.transition-all { transition: all .2s; }

/* ─── Print ───────────────────────────────────── */
@media print {
  #sidebar, #topNavbar, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
}
