/* ============================================================
   Barpeta Polytechnic Grievance Portal — Main Stylesheet
   College Brand Color: #003366 (Navy Blue)
   ============================================================ */

:root {
  --bp-primary:   #003366;
  --bp-accent:    #0d6efd;
  --bp-light:     #f8f9fa;
  --bp-white:     #ffffff;
  --bp-text:      #212529;
  --bp-muted:     #6c757d;
  --bp-border:    #dee2e6;
  --bp-success:   #198754;
  --bp-danger:    #dc3545;
  --bp-warning:   #ffc107;
}

/* ── Base ────────────────────────────────────────────────── */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f0f2f5;
  color: var(--bp-text);
}

/* ── Navbar ─────────────────────────────────────────────── */
.bp-navbar {
  background: linear-gradient(135deg, #001f4d 0%, var(--bp-primary) 60%, #004080 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.bp-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.bp-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.bp-navbar .nav-link:hover,
.bp-navbar .nav-link.active {
  color: #ffffff !important;
}
.bp-navbar .dropdown-menu {
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ── Hero Section ───────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #001f4d 0%, var(--bp-primary) 50%, #005fa3 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.hero-section h1 { font-size: 2.4rem; font-weight: 700; }
.hero-section p  { font-size: 1.1rem; opacity: 0.9; }

/* ── Feature Cards ──────────────────────────────────────── */
.feature-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,51,102,0.15);
}
.feature-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--bp-primary), var(--bp-accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem; color: #fff;
}

/* ── Stat Cards ─────────────────────────────────────────── */
.stat-card {
  border-radius: 12px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.stat-icon {
  font-size: 2rem;
  opacity: 0.85;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  border: 1px solid var(--bp-border);
  border-radius: 10px;
}
.card-header {
  border-bottom: 1px solid var(--bp-border);
  font-size: 0.95rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary { background: var(--bp-primary); border-color: var(--bp-primary); }
.btn-primary:hover { background: #00285a; border-color: #00285a; }
.btn-outline-primary { color: var(--bp-primary); border-color: var(--bp-primary); }
.btn-outline-primary:hover { background: var(--bp-primary); color: #fff; }

/* ── Footer ─────────────────────────────────────────────── */
.bp-footer {
  background: var(--bp-primary);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  padding: 20px 0;
  margin-top: auto;
}
.bp-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.bp-footer a:hover { color: #fff; text-decoration: underline; }

/* ── Status Badge Colors (Bootstrap overrides) ───────────── */
.badge.bg-submitted    { background: #6c757d !important; }
.badge.bg-under_review { background: #0dcaf0 !important; color:#000; }
.badge.bg-assigned     { background: #0d6efd !important; }
.badge.bg-in_progress  { background: #ffc107 !important; color:#000; }
.badge.bg-resolved     { background: #198754 !important; }
.badge.bg-closed       { background: #212529 !important; }
.badge.bg-reopened     { background: #dc3545 !important; }
.badge.bg-escalated    { background: #dc3545 !important; }
.badge.bg-rejected     { background: #dc3545 !important; }

/* ── Tables ─────────────────────────────────────────────── */
.table th { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table-light th { background: #e8eef5 !important; color: var(--bp-primary) !important; }

/* ── Forms ──────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
  border-color: var(--bp-primary);
  box-shadow: 0 0 0 0.2rem rgba(0,51,102,0.2);
}

/* ── Auth Pages ─────────────────────────────────────────── */
.auth-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,51,102,0.12);
}
.auth-header {
  background: linear-gradient(135deg, var(--bp-primary), #0055aa);
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 28px;
  text-align: center;
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline li:last-child { border-bottom: none !important; }

/* ── Sidebar / Panel scrollable ────────────────────────── */
.sidebar-scroll { max-height: 80vh; overflow-y: auto; }

/* ── DataTables overrides ───────────────────────────────── */
.dataTables_wrapper .dataTables_filter input { border-radius: 6px; border: 1px solid var(--bp-border); padding: 4px 10px; }
.dataTables_wrapper .dataTables_length select { border-radius: 6px; }

/* ── Utilities ──────────────────────────────────────────── */
.bg-light-subtle { background: rgba(0,0,0,0.03) !important; }
.cursor-pointer  { cursor: pointer; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #b0b8c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bp-primary); }

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .bp-navbar, .bp-footer, .btn, .no-print { display: none !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc; }
}

/* ════════════════════════════════════════════════════════════
   DARK MODE
   ════════════════════════════════════════════════════════════ */
[data-bs-theme="dark"] {
  --bp-light: #1a1d23;
  --bp-white: #212529;
  --bp-text:  #e0e0e0;
  --bp-border: #343a40;
}
[data-bs-theme="dark"] body          { background: #111318; }
[data-bs-theme="dark"] .card         { background: #1e2128; border-color: #343a40; }
[data-bs-theme="dark"] .card-header  { background: #252830 !important; }
[data-bs-theme="dark"] .table-light th { background: #252830 !important; color: #adb5bd !important; }
[data-bs-theme="dark"] .bp-footer    { background: #0d1117; }
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select  { background: #1e2128; border-color: #3d4350; color: #e0e0e0; }
[data-bs-theme="dark"] .bg-light-subtle { background: rgba(255,255,255,0.05) !important; }
[data-bs-theme="dark"] .stat-card    { box-shadow: 0 3px 12px rgba(0,0,0,0.4); }
