/* ===== Theme matching Student Record Details screenshot ===== */
:root{
  --bg: #dce9e9;
  --sidebar-bg: #1f2a37;
  --sidebar-bg-active: #2c3b4e;
  --sidebar-text: #c9d3dd;
  --primary: #2f7bc9;
  --success: #4caf50;
  --warning: #f0a831;
  --danger: #e0524c;
  --card-bg: #ffffff;
}

body{
  background: var(--bg);
  font-family: "Segoe UI", Arial, sans-serif;
  color: #2b2b2b;
}

/* ---- Sidebar ---- */
.sidebar{
  width: 240px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0;
  z-index: 1040;
  transition: left .25s ease;
}
.sidebar .brand{
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar .nav-link{
  color: var(--sidebar-text);
  padding: 11px 20px;
  font-size: .93rem;
  border-left: 3px solid transparent;
}
.sidebar .nav-link i{ width: 20px; display:inline-block; }
.sidebar .nav-link:hover,
.sidebar .nav-link.active{
  background: var(--sidebar-bg-active);
  color: #fff;
  border-left-color: var(--primary);
}

.main-wrapper{
  margin-left: 240px;
  min-height: 100vh;
  transition: margin-left .25s ease;
}

.topbar{
  background: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.topbar .menu-toggle{
  display: none;
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
}

.content-area{
  padding: 24px;
}

.page-title{
  text-align: center;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

/* ---- Buttons matching screenshot ---- */
.btn-theme-primary{
  background: var(--primary); border-color: var(--primary); color:#fff;
}
.btn-theme-primary:hover{ background:#2566ab; color:#fff; }
.btn-theme-success{
  background: var(--success); border-color: var(--success); color:#fff;
}
.btn-theme-success:hover{ background:#3d8b40; color:#fff; }
.btn-action-view{ background: var(--success); border-color: var(--success); }
.btn-action-edit{ background: var(--warning); border-color: var(--warning); }
.btn-action-delete{ background: var(--danger); border-color: var(--danger); }
.btn-action-view, .btn-action-edit, .btn-action-delete{
  color:#fff; padding: 4px 10px; border-radius: 4px;
}

/* ---- Card / table wrapper ---- */
.record-card{
  background: var(--card-bg);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

table.dataTable thead th{
  font-weight: 600;
  color: #2b2b2b;
}

/* ---- Login page ---- */
.login-wrapper{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.login-card{
  background: #fff;
  border-radius: 8px;
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.login-card h4{ font-weight: 600; text-align:center; margin-bottom: 4px; }
.login-card p.subtitle{ text-align:center; color:#777; margin-bottom: 22px; font-size:.9rem; }

/* ---- Mobile friendly ---- */
@media (max-width: 991px){
  .sidebar{ left: -240px; }
  .sidebar.show{ left: 0; }
  .main-wrapper{ margin-left: 0; }
  .topbar .menu-toggle{ display: inline-block; }
  .sidebar-overlay{
    display:none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1030;
  }
  .sidebar-overlay.show{ display:block; }
}

@media (max-width: 576px){
  .content-area{ padding: 14px; }
  .record-card{ padding: 12px; }
  .topbar{ padding: 10px 14px; }
}
