/* ---------- GLOBAL RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ---------- COLORS ---------- */
:root {
    --psl-dark: #142537;
    --psl-gold: #E0B45A;
    --bg-light: #F5F7FA;
    --text-dark: #1F2933;
    --white: #ffffff;
}

/* ---------- BODY ---------- */
/* body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
} */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;   /* light neutral background */
}


/* ---------- NAVBAR ---------- */
.navbar {
    background-color: var(--psl-dark);
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-left img {
    height: 60px;
}

.nav-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-right a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-size: 15px;
}

.nav-right a:hover {
    color: var(--psl-gold);
}

/* ---------- PAGE CONTAINER ---------- */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ---------- CARD ---------- */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ---------- BUTTON ---------- */
.btn {
    background-color: var(--psl-dark);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #0f1c2c;
}

/* ---------- FORM ---------- */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 18px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

label {
    font-weight: 500;
}

/* ---------- FLASH MESSAGES ---------- */
.flash {
    background: var(--psl-gold);
    color: #000;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.flash-wrapper {
    max-width: 600px;
    margin: 20px auto;
}

.flash {
    background: #fff3cd;
    border-left: 4px solid #e0b45a;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    color: #333;
}

.btn-lg {
  min-width: 180px;
}

/* ===== ADMIN DASHBOARD ===== */

.admin-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #142537;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.admin-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.admin-card h3 {
  margin-bottom: 10px;
  color: #142537;
}

.admin-card p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}

.card-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn-primary {
  background: #142537;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.btn-primary:hover {
  background: #0f1d2c;
}

.btn-outline {
  border: 2px solid #142537;
  color: #142537;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.btn-outline:hover {
  background: #142537;
  color: #fff;
}

/* ===== STUDENTS PAGE ===== */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;   /* slightly tighter */
  padding-right: 10px;   /* pulls buttons left */
}

.header-actions {
  display: flex;
  gap: 8px;              /* was larger, now tighter */
}

.section-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-bottom: 25px;
}

.section-title {
  margin-bottom: 15px;
  color: #142537;
}

.import-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.helper-text {
  color: #666;
  font-size: 14px;
}

.search-input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Table */
.students-table {
  width: 100%;
  border-collapse: collapse;
}

.students-table th,
.students-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.students-table th {
  background: #142537;
  color: #fff;
}

/* Actions */
.action-buttons {
  display: flex;
  gap: 8px;
}

/* Buttons */
.btn-psl {
  background: #142537;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-psl:hover {
  background: #0f1d2c;
}

.btn-psl-outline {
  border: 2px solid #142537;
  color: #142537;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-psl-outline:hover {
  background: #142537;
  color: #fff;
}

.btn-danger-outline {
  border: 2px solid #dc3545;
  color: #dc3545;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-danger-outline:hover {
  background: #dc3545;
  color: #fff;
}

button.small {
  font-size: 13px;
}
/* Slight right shift for Students title */
.page-title {
  margin-left: 10px;   
}

/* ===== RESET PASSWORD MODAL ===== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-box h3 {
  margin-bottom: 15px;
  color: #142537;
}

.modal-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.modal-box input {
  width: 100%;
  padding: 8px;
  margin-bottom: 18px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
/* Add Student Form */

.section-card label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 500;
}

.section-card input,
.section-card select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.table-dark {
  background-color: #578bc3 !important;
}

select {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ===== NAVBAR ===== */

.navbar {
    background: #142537;
    padding: 8px 0;
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 38px;
}

.nav-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: #e0e6ed;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-btn {
    border: 1px solid #ffffff;
    padding: 5px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    color: #ffffff;
    transition: 0.2s;
}

.nav-btn:hover {
    background: #ffffff;
    color: #142537;
}

.kpi-card {
    transition: all 0.25s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}
