@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*Main/Home Dashboard*/
:root {
  --primary: #1a237e;
  --primary-light: #283593;
  --accent: #ff6f00;
  --success: #2e7d32;
  --warning: #f57f17;
  --danger: #c62828;
  --info: #1565c0;
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*Login page*/

body.loginpage {
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: #eef2f6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: linear-gradient(135deg, #e9eff5 0%, #dce4f0 100%);
}

/* Main card */
.auth-card {
  display: flex;
  width: 100%;
  max-width: 1050px;
  min-height: 680px;
  background: #ffffff;
  border-radius: 2.2rem;
  overflow: hidden;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 32, 64, 0.08);
}

/* LEFT PANEL with video */
.left-panel {
  flex: 1 1 48%;
  background: #0f2b3d;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 400px;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.85;
}

.left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 43, 61, 0.65) 0%,
    rgba(15, 43, 61, 0.8) 100%
  );
  z-index: 2;
}

.left-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  color: white;
}

.company-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 0.5rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  letter-spacing: 0.8px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f0e6b2;
}

.left-panel h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: white;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.left-footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: #dce6f0;
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 3;
}

/* RIGHT PANEL */
.right-panel {
  flex: 1 1 52%;
  background: #fbfdff;
  padding: 2.5rem 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.form-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.forms-slider {
  display: flex;
  width: 200%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-panel {
  width: 50%;
  flex-shrink: 0;
  padding-right: 2px;
}

.form-switcher {
  display: flex;
  background: #edf2f9;
  border-radius: 50px;
  padding: 0.3rem;
  margin-bottom: 2rem;
  border: 1px solid #dce3ec;
}

.switch-btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  background: transparent;
  border: none;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.switch-btn.active {
  background: #0f2b3d;
  color: white;
  box-shadow: 0 6px 14px rgba(15, 43, 61, 0.3);
}

.input-group {
  margin-bottom: 1.2rem;
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #4b6b8c;
  font-size: 0.95rem;
  z-index: 2;
  pointer-events: none;
}

select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%234b6b8c"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2rem;
}

input:focus,
select:focus {
  border-color: #1f5068;
  background: white;
  box-shadow: 0 0 0 3px rgba(15, 43, 61, 0.15);
}

.btn {
  width: 100%;
  padding: 0.95rem;
  border: none;
  border-radius: 0.9rem;
  font-weight: 650;
  font-size: 0.95rem;
  background: #0f2b3d;
  color: white;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 8px 16px rgba(15, 43, 61, 0.2);
}

.btn:hover {
  background: #153e56;
  transform: translateY(-1px);
}

.forgot-link {
  text-align: right;
  margin: 0.2rem 0 0.6rem;
}

.forgot-link a {
  color: #1f5068;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 550;
  cursor: pointer;
}

.alert-message {
  font-size: 0.8rem;
  margin-top: 0.7rem;
  min-height: 1.2rem;
  color: #b13e3e;
  font-weight: 500;
}

/* ========== MODAL STYLES ========== */
.otp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 20, 40, 0.65);
  backdrop-filter: blur(7px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.otp-modal.active {
  display: flex;
}

.otp-box {
  background: white;
  border-radius: 1.8rem;
  padding: 2.2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 45px rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.otp-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.otp-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0f2b3d, #153e56);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 43, 61, 0.3);
}

.otp-header h3 {
  color: #0f2b3d;
  font-size: 1.3rem;
  font-weight: 650;
}

.forgot-step {
  animation: fadeIn 0.3s ease;
}

.otp-input-group,
.password-input-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.otp-input-group input,
.password-input-group input {
  width: 100%;
  padding: 14px 50px 14px 48px;
  font-size: 0.95rem;
  border-radius: 60px;
  border: 1px solid #dce3ef;
  background: #f4f7fc;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.otp-input-group input:focus,
.password-input-group input:focus {
  border-color: #1f5068;
  box-shadow: 0 0 0 3px rgba(15, 43, 61, 0.15);
  background: white;
}

.otp-input-group input::placeholder,
.password-input-group input::placeholder {
  color: #7b8da0;
  font-size: 0.85rem;
}

.password-toggle {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  color: #4b6b8c;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0 !important;
  margin: 0;
  outline: none;
}

.password-toggle:hover {
  color: #0f2b3d;
  background: rgba(15, 43, 61, 0.08);
}

.otp-timer {
  background: rgba(15, 43, 61, 0.08);
  border-radius: 60px;
  padding: 10px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #0f2b3d;
}

.otp-timer i {
  font-size: 0.9rem;
}

.otp-timer span {
  font-weight: 600;
  font-family: monospace;
  font-size: 1rem;
}

.otp-status {
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: 60px;
  font-size: 0.85rem;
  text-align: center;
}

.otp-status.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.otp-status.error {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.otp-status.info {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}

.forgot-back {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dce3ef;
}

.forgot-back a {
  color: #4b6b8c;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.forgot-back a:hover {
  color: #0f2b3d;
}

.otp-verify-btn {
  width: 100%;
  padding: 14px;
  border: none;
  background: #0f2b3d;
  color: white;
  border-radius: 60px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  box-shadow: 0 8px 16px rgba(15, 43, 61, 0.2);
}

.otp-verify-btn:hover {
  background: #153e56;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 43, 61, 0.3);
}

.otp-verify-btn:active {
  transform: translateY(0);
}

.otp-verify-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.otp-footer {
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .auth-card {
    flex-direction: column;
    max-width: 500px;
  }
  .left-panel {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .otp-box {
    padding: 24px;
  }

  .otp-input-group input,
  .password-input-group input {
    padding: 12px 45px 12px 42px;
    font-size: 0.9rem;
  }

  .input-icon {
    left: 14px;
    font-size: 0.9rem;
  }

  .password-toggle {
    right: 14px;
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }
}



/* ============ DASHBOARD ============ */
body.dash {
  min-height: 100vh;
  background: linear-gradient(#f1faff, #cbe4ff);
  overflow-x: hidden;
}

/* ============ PROFILE DROPDOWN ============ */
.profile-dropdownn {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 999;
}

.dropbtn {
  background-color: #007bff;
  color: white;
  padding: 10px 14px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dropbtn:hover {
  background-color: #0056b3;
}

.dropbtn i {
  font-size: 18px;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 44px;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  overflow: hidden;
  z-index: 1000;
  flex-direction: column;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f0f4ff;
}

.dropdown-content.show {
  display: flex;
}

/* ============ SIDEBAR ============ */
.sidebar {
  font-family: "Poppins", sans-serif;
  width: 240px;
  position: fixed;
  margin: 8px;
  top: 0;
  left: 0;
  background: #151a2d;
  border-radius: 16px;
  height: calc(100vh - 16px);
  transition: 0.4s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed {
  width: 85px;
}

/* ============ SIDEBAR HEADER ============ */
.sidebar-header {
  position: relative;
  display: flex;
  padding: 25px 20px;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-header .toggler {
  position: absolute;
  right: 20px;
  height: 35px;
  width: 35px;
  border: none;
  color: #151a2d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: 0.4s ease;
}

.sidebar-header .sidebar-toggler {
  position: absolute;
  right: 20px;
}

.sidebar.collapsed .sidebar-header .sidebar-toggler {
  transform: translate(-4px, 65px);
}

.sidebar-header .toggler:hover {
  background: #dde4fb;
}

.sidebar-header .menu-toggler {
  display: none;
}

.sidebar-header .sidebar-toggler span {
  font-size: 1.75rem;
  transition: 0.4s ease;
}

.sidebar.collapsed .sidebar-header .sidebar-toggler span {
  transform: rotate(180deg);
}

.sidebar-header .header-logo img {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

/* ============ SIDEBAR NAV ============ */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.sidebar-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0 15px;
  flex-direction: column;
  transform: translateY(15px);
  transition: 0.4s ease;
}

.sidebar.collapsed .sidebar-nav .primary-nav {
  transform: translateY(65px);
}

.sidebar-nav .nav-link {
  color: #fff;
  display: flex;
  gap: 12px;
  white-space: nowrap;
  border-radius: 8px;
  align-items: center;
  padding: 12px 15px;
  text-decoration: none;
  transition: 0.4s ease;
}

.sidebar-nav .nav-link:hover {
  color: #151a2d;
  background: #fff;
}

.sidebar-nav .nav-link .nav-label {
  transition: opacity 0.4s ease;
}

.sidebar.collapsed .sidebar-nav .nav-link .nav-label {
  opacity: 0;
  pointer-events: none;
}

.sidebar-nav .nav-item {
  position: relative;
}

.sidebar-nav .nav-tooltip {
  position: absolute;
  top: -10px;
  opacity: 0;
  display: none;
  pointer-events: none;
  left: calc(100% + 25px);
  color: #151a2d;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  white-space: nowrap;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: 0s;
}

.sidebar.collapsed .sidebar-nav .nav-tooltip {
  display: block;
}

.sidebar-nav .nav-item:hover .nav-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(50%);
  transition: 0.4s ease;
}

.sidebar-nav .secondary-nav {
  margin-top: auto;
  padding-bottom: 20px;
}

/* ============ MAIN CONTENT ============ */
/* ============ MAIN CONTENT ============ */
.main-content {
  margin-left: 260px;
  padding: 20px 30px;
  min-height: 100vh;
  transition: margin-left 0.4s ease;
}

.sidebar.collapsed + .main-content {
  margin-left: 105px;
}

.content-header {
  background: #fff;
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 10px;
  z-index: 50;
}

.content-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.content-body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  border-radius: 14px;
  padding: 40px 30px;
  min-height: calc(100vh - 180px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.welcome-message {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.welcome-message h2 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.welcome-message p {
  color: #64748b;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Welcome video */

.welcome-message::before {
  content: none !important;
}

/* Video container */
.welcome-video {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
  border: 3px solid rgba(37, 99, 235, 0.15);
  background: #fff;
}

.welcome-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ============ DIALOG STYLES ============ */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dialog-box {
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 420px;
  padding: 2rem;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dialog-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #dc2626, #ef4444);
}

.dialog-overlay.active .dialog-box {
  transform: translateY(0) scale(1);
}

.dialog-icon-wrapper {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  border: 3px solid #fecaca;
}

.dialog-icon-wrapper i {
  font-size: 1.8rem;
  color: #ef4444;
}

.dialog-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #1e293b;
}

.dialog-message {
  margin-bottom: 1.8rem;
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
}

.dialog-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dialog-btn {
  padding: 0.75rem 1.8rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cancel-btn {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.cancel-btn:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

.confirm-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.confirm-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* ============ RESPONSIVE - TABLET ============ */
@media (max-width: 1024px) {
  .main-content {
    margin-left: 105px;
  }
  
  .sidebar {
    width: 85px;
  }
  
  .sidebar .sidebar-nav .nav-link .nav-label {
    opacity: 0;
    pointer-events: none;
  }
  
  .sidebar-nav .primary-nav {
    transform: translateY(65px);
  }
  
  .sidebar-header .sidebar-toggler {
    transform: translate(-4px, 65px);
  }
  
  .sidebar-header .sidebar-toggler span {
    transform: rotate(180deg);
  }
  
  .sidebar-nav .nav-tooltip {
    display: block;
  }
  
  .sidebar-nav .nav-item:hover .nav-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(50%);
    transition: 0.4s ease;
  }
}

/* ============ RESPONSIVE - MOBILE ============ */

@media (max-width: 768px) {
  .sidebar {
    font-family: "Poppins", sans-serif;
    height: 56px;
    max-height: 56px;
    margin: 10px;
    overflow-y: hidden;
    width: calc(100% - 20px);
    border-radius: 14px;
    z-index: 200;
    transition: height 0.3s ease, max-height 0.3s ease;
  }

  .sidebar.menu-active {
    height: auto;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .sidebar-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #151a2d;
    padding: 10px 15px;
    border-radius: 14px;
  }

  .sidebar-header .header-logo img {
    width: 36px;
    height: 36px;
  }

  .sidebar-header .sidebar-toggler,
  .sidebar-nav .nav-tooltip {
    display: none !important;
  }

  .sidebar-header .menu-toggler {
    display: flex;
    height: 32px;
    width: 32px;
  }

  .sidebar-header .menu-toggler span {
    font-size: 1.3rem;
  }

  .sidebar-nav {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .sidebar.menu-active .sidebar-nav {
    opacity: 1;
    visibility: visible;
  }

  .sidebar-nav .nav-list {
    padding: 0 10px;
    transform: translateY(10px);
  }

  .sidebar-nav .nav-link {
    gap: 12px;
    padding: 13px 14px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .sidebar-nav .nav-link .nav-icon {
    font-size: 1.4rem;
  }

  .sidebar-nav .nav-link .nav-label {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .sidebar-nav .secondary-nav {
    position: relative;
    bottom: auto;
    margin: 15px 0 20px;
    padding-bottom: 15px;
  }

  .sidebar.collapsed {
    width: calc(100% - 20px);
  }

  /* Main Content - Full Width */
  .main-content {
    margin-left: 0 !important;
    padding: 12px;
    padding-top: 80px;
    transform: none !important;
  }

  .content-header {
    border-radius: 10px;
    padding: 12px 16px;
    position: static;
  }

  .content-header h1 {
    font-size: 1.2rem;
  }

  .content-body {
    border-radius: 10px;
    padding: 30px 15px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .welcome-message {
    max-width: 100%;
  }

  .welcome-message h2 {
    font-size: 1.4rem;
  }

  .welcome-message p {
    font-size: 0.95rem;
  }

  .welcome-message::before {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin-bottom: 1rem;
  }

    .welcome-video {
    width: 90px;
    height: 90px;
    margin-bottom: 1rem;
  }

  /* Profile Dropdown */
  .profile-dropdownn {
    top: 8px;
    right: 8px;
    z-index: 300;
  }

  .dropbtn {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
  }

  .dropbtn i {
    font-size: 16px;
  }

  .dropdown-content {
    top: 42px;
    min-width: 160px;
    border-radius: 10px;
  }

  .dropdown-content a {
    font-size: 13px;
    padding: 10px 14px;
  }

  /* Dialog */
  .dialog-box {
    padding: 1.5rem;
    border-radius: 16px;
    max-width: 320px;
  }

  .dialog-icon-wrapper {
    width: 52px;
    height: 52px;
  }

  .dialog-icon-wrapper i {
    font-size: 1.4rem;
  }

  .dialog-title {
    font-size: 1.2rem;
  }

  .dialog-message {
    font-size: 0.9rem;
  }

  .dialog-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .dialog-btn {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.4rem;
  }
}

/* ============ RESPONSIVE - SMALL MOBILE ============ */
@media (max-width: 480px) {
  .sidebar {
    height: 52px;
    max-height: 52px;
    margin: 6px;
    width: calc(100% - 12px);
    border-radius: 12px;
  }

  .sidebar.menu-active {
    max-height: calc(100vh - 12px);
  }

  .sidebar-header {
    padding: 8px 12px;
    border-radius: 12px;
  }

  .sidebar-header .header-logo img {
    width: 30px;
    height: 30px;
  }

  .sidebar-nav .nav-link {
    padding: 10px 12px;
    font-size: 0.9rem;
    gap: 10px;
  }

  .sidebar-nav .nav-link .nav-icon {
    font-size: 1.3rem;
  }

  .main-content {
    padding: 8px;
    padding-top: 70px;
  }

  .content-header {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .content-body {
    padding: 20px 12px;
    border-radius: 8px;
    min-height: calc(100vh - 180px);
  }

  .welcome-message h2 {
    font-size: 1.2rem;
  }

  .welcome-message p {
    font-size: 0.9rem;
  }

  .welcome-message::before {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    line-height: 50px;
  }
  
  .welcome-video {
    width: 70px;
    height: 70px;
    margin-bottom: 0.8rem;
  }

  .dropbtn {
    padding: 6px 10px;
    font-size: 13px;
  }

  .dropbtn i {
    font-size: 14px;
  }
}

/*=========== HOME WEBPAGE ==============*/

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-animation::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(26, 35, 126, 0.05) 0%,
    transparent 70%
  );
  animation: float 20s infinite ease-in-out;
}

.bg-animation::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 111, 0, 0.03) 0%,
    transparent 70%
  );
  animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(10%, 5%) rotate(120deg);
  }
  66% {
    transform: translate(-5%, 10%) rotate(240deg);
  }
}

.dashboard-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
}

.top-nav {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 0 30px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 20px;
  z-index: 100;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.school-logoo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.school-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  text-decoration: none;
}

.nav-icon-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--card-bg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* user profile wrapper */
.user-profile-wrapper {
  position: relative;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.user-profile:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.user-profile:hover .user-avatar {
  border: 2px solid white;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff8f00);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
}

.profile-active-indicator {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 0;
  border: 2px solid var(--bg);
}

.user-profile:hover .profile-active-indicator {
  border-color: var(--primary);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
}

.user-role {
  font-size: 0.7rem;
  opacity: 0.7;
  line-height: 1.2;
}

.chevron-icon {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.chevron-icon.rotated {
  transform: rotate(180deg);
}

/* ========== PROFILE DROPDOWN ========== */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 380px;
  max-width: 95vw;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.profile-dropdown.show {
  display: block;
  animation: dropdownAppear 0.3s ease;
}

@keyframes dropdownAppear {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  background: linear-gradient(135deg, #1a237e, #283593);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.dropdown-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.dropdown-avatar span {
  font-size: 1.5rem;
  font-weight: 700;
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.dropdown-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dropdown-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #fafafa;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.dropdown-detail-row:hover {
  background: #f0f0f0;
  border-color: #e5e7eb;
  transform: translateX(3px);
}

.dropdown-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dropdown-detail-row:nth-child(1) .dropdown-detail-icon {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
}

.dropdown-detail-row:nth-child(2) .dropdown-detail-icon {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  color: #6a1b9a;
}

.dropdown-detail-row:nth-child(3) .dropdown-detail-icon {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
}

.dropdown-detail-row:nth-child(4) .dropdown-detail-icon {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  color: #2e7d32;
}

.dropdown-detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  font-weight: 600;
}

.dropdown-detail-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dropdown-masked-password {
  letter-spacing: 2px;
  color: #6b7280;
}

.dropdown-national-id {
  font-family: "Courier New", monospace;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.dropdown-edit-btn {
  padding: 4px 10px;
  border: 1.5px solid #ff6f00;
  background: transparent;
  color: #ff6f00;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.dropdown-edit-btn:hover {
  background: #ff6f00;
  color: white;
  transform: scale(1.05);
}

.dropdown-footer {
  padding: 15px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
}

.dropdown-footer-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  background: #E94F37;
  color: #1a1a1a;
  font-family: inherit;
}

.dropdown-footer-btn:hover {
  background: #1a237e;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover {
  background: #c62828;
  color: white;
}

/* ========== PASSWORD MODAL ========== */
.password-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.password-modal-overlay.show {
  display: flex;
}

.password-modal-card {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  padding: 30px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.password-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.password-modal-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.password-modal-close:hover {
  background: #f5f5f5;
  color: #c62828;
}

.password-otp-info {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  color: #1565c0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #1565c0;
}

.password-input-group {
  margin-bottom: 20px;
}

.password-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.9rem;
}

.password-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fafafa;
  font-family: inherit;
}

.password-input:focus {
  outline: none;
  border-color: #1a237e;
  background: white;
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.password-btn {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: inherit;
}

.password-btn-primary {
  background: #1a237e;
  color: white;
}

.password-btn-primary:hover {
  background: #283593;
}

.password-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.password-btn-cancel {
  background: #f5f5f5;
  color: #1a1a1a;
  border: 2px solid #e5e7eb;
}

.password-btn-save {
  background: #1a237e;
  color: white;
}

.password-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.password-modal-actions .password-btn {
  flex: 1;
}

.password-error-message,
.password-success-message {
  padding: 12px 15px;
  border-radius: 10px;
  margin-top: 15px;
  font-size: 0.85rem;
  display: none;
  align-items: center;
  gap: 8px;
}

.password-error-message {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
}

.password-success-message {
  background: #e8f5e8;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

.password-error-message.show,
.password-success-message.show {
  display: flex;
}

/* Welcome Section */
.welcome-section {
  margin-bottom: 25px;
}

.welcome-card {
  background: linear-gradient(135deg, var(--primary), #283593);
  color: white;
  padding: 30px 35px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.welcome-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: pulse-slow 4s infinite;
}
@keyframes pulse-slow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}
.welcome-text h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

.welcome-text p {
  opacity: 0.9;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.welcome-date {
  text-align: right;
  position: relative;
  z-index: 1;
}

.date-display {
  font-size: 2.5rem;
  font-weight: 300;

  line-height: 1;
  margin-bottom: 5px;
}

.month-display {
  font-size: 1.1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cards-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
  margin-left: 50px;
}

.home-cards {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  width: 330px;
  height: 130px;
  padding: 10px;
  margin-right: 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center; /* Vertically center image + text block */
  gap: 15px;
}

.home-cards::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.home-cards:hover::after {
  transform: scaleX(1);
}
.card-text {
  display: flex;
  flex-direction: column; /* Stack number above title */
  align-items: center; /* Center both horizontally */
  justify-content: center;
  flex: 1;
}
.home-cards img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.home-cards .card-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
  line-height: 1;
}

.home-cards .card-title {
  font-size: 1.2rem;
  color: var(--primary);
  line-height: 1;
}

.home-cards:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.content-section {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  align-items: flex-start;
}

.card {
  margin-left: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

/* Table Styles  within the home-dash*/
.table-card {
  flex: 2;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.styled-table th,
.styled-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.styled-table thead {
  background: #009879;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.styled-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.styled-table tr:hover {
  background-color: #004080;
}

/* ======== Todo Section ====== */

.content-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.todo-section-modern {
background: linear-gradient(135deg, #5F94AF 0%, #0D1B2A 100%);
  color: white;
  height: 100%;
}

.card-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-body {
  padding: 25px;
}

.todo-section-modern .card-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.todo-section-modern .card-title {
  color: white;
}

.todo-section-modern .card-title i {
  color: white;
}

.todo-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.todo-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.todo-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.todo-input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-add-todo {
  padding: 12px 20px;
  border: none;
  background: white;
  color: var(--primary);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-add-todo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.todo-list-modern {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.todo-list-modern::-webkit-scrollbar {
  width: 5px;
}

.todo-list-modern::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.todo-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.todo-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: white;
  border-radius: 5px;
  flex-shrink: 0;
}

.todo-text {
  flex: 1;
  font-size: 0.9rem;
  transition: var(--transition);
  line-height: 1.5;
  word-break: break-word;
}

.todo-checkbox:checked + .todo-text {
  text-decoration: line-through;
  opacity: 0.6;
}

.todo-delete {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  font-size: 0.9rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.todo-delete:hover {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.2);
  transform: scale(1.1);
}

.todo-delete i {
  font-size: 0.9rem;
  transition: var(--transition);
}

.todo-delete:hover i {
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

.todo-stats {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.9;
}

.todo-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.todo-time {
  font-size: 12px;
  color: #def4c6;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ====== Bottom Grid ========= */
.bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

/* Chart Card Styles */
.chart-card {
  position: relative;
  overflow: visible;
  transition: var(--transition);
}

.chart-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.chart-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-card .card-title i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Chart Wrapper */
.chart-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  margin-bottom: 15px;
}

.chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Chart Legend */
.chart-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Chart Toggle Button */
.btn-chart-toggle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.btn-chart-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: rotate(180deg);
}


/* ============ RESPONSIVE - TABLET (1024px) ============ */
@media (max-width: 1024px) {
  .cards-section {
    grid-template-columns: repeat(2, 1fr);
    margin-left: 0;
    gap: 15px;
  }

  .home-cards {
    width: 100%;
    height: auto;
    min-height: 120px;
    margin-right: 0;
  }

  .content-section {
    flex-direction: column;
    gap: 20px;
  }

  .table-card {
    width: 100%;
    overflow-x: auto;
  }

  .styled-table {
    font-size: 0.85rem;
    min-width: 600px;
  }

  .styled-table th,
  .styled-table td {
    padding: 8px 10px;
  }

  .bottom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .chart-wrapper {
    height: 250px;
  }

  .welcome-card {
    flex-direction: row;
    padding: 25px;
  }

  .welcome-text h2 {
    font-size: 1.5rem;
  }

  .date-display {
    font-size: 2rem;
  }
}

/* ============ RESPONSIVE - MOBILE (768px) ============ */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 10px;
  }

  /* Top Navigation */
  .top-nav {
    padding: 0 12px;
    height: 56px;
    border-radius: 12px;
    top: 10px;
  }

  .school-name {
    font-size: 0.95rem;
  }

  .school-logoo {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .user-info {
    display: none;
  }

  .user-profile {
    padding: 6px 10px;
    gap: 6px;
  }

  .user-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .chevron-icon {
    font-size: 0.6rem;
  }

  /* Profile Dropdown */
  .profile-dropdown {
    width: 300px;
    right: -10px;
    max-width: calc(100vw - 20px);
  }

  .dropdown-header {
    padding: 18px;
  }

  .dropdown-avatar {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }

  .dropdown-details {
    padding: 15px;
    gap: 8px;
  }

  .dropdown-detail-row {
    padding: 10px 12px;
  }

  .dropdown-detail-icon {
    width: 34px;
    height: 34px;
  }

  /* Welcome Section */
  .welcome-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px;
  }

  .welcome-text h2 {
    font-size: 1.3rem;
  }

  .welcome-text p {
    font-size: 0.9rem;
  }

  .welcome-date {
    text-align: center;
  }

  .date-display {
    font-size: 1.8rem;
  }

  .month-display {
    font-size: 0.9rem;
  }

  /* Cards Section */
  .cards-section {
    grid-template-columns: 1fr;
    margin-left: 0;
    gap: 12px;
  }

  .home-cards {
    width: 100%;
    height: auto;
    min-height: 100px;
    padding: 15px;
    margin-right: 0;
    gap: 12px;
  }

  .home-cards img {
    width: 40px;
    height: 40px;
  }

  .home-cards .card-number {
    font-size: 1.6rem;
  }

  .home-cards .card-title {
    font-size: 1rem;
  }

  /* Content Section */
  .content-section {
    flex-direction: column;
    gap: 20px;
  }

  .table-card {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-card h2 {
    font-size: 1.1rem;
    padding: 12px;
  }

  .styled-table {
    font-size: 0.8rem;
    min-width: 550px;
  }

  .styled-table th,
  .styled-table td {
    padding: 8px 8px;
    font-size: 0.78rem;
  }

  /* Todo Section */
  .todo-section-modern {
    width: 100%;
  }

  .card-header {
    padding: 15px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-body {
    padding: 15px;
  }

  .todo-input-group {
    flex-direction: column;
    gap: 8px;
  }

  .todo-input {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .btn-add-todo {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
  }

  .todo-list-modern {
    max-height: 280px;
  }

  .todo-item {
    padding: 10px 12px;
  }

  /* Bottom Grid */
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 25px;
  }

  .chart-card .card-header {
    padding: 15px;
  }

  .chart-wrapper {
    height: 220px;
  }

  .chart-legend {
    gap: 10px;
  }

  /* Password Modal */
  .password-modal-card {
    width: 95%;
    padding: 20px;
    margin: 10px;
  }

  .password-modal-header {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .password-modal-actions {
    flex-direction: column;
    gap: 8px;
  }

  .password-btn {
    width: 100%;
    padding: 10px;
  }

  /* Alert */
  .alert {
    padding: 12px 15px;
    font-size: 0.85rem;
  }
}

/* ============ RESPONSIVE - SMALL MOBILE (480px) ============ */
@media (max-width: 480px) {
  .dashboard-container {
    padding: 6px;
  }

  .top-nav {
    padding: 0 10px;
    height: 50px;
    border-radius: 10px;
    top: 6px;
  }

  .nav-brand {
    gap: 8px;
  }

  .school-name {
    font-size: 0.85rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .school-logoo {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .user-profile {
    padding: 4px 8px;
  }

  .user-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  /* Welcome Card */
  .welcome-card {
    padding: 15px;
    border-radius: 12px;
  }

  .welcome-text h2 {
    font-size: 1.1rem;
  }

  .date-display {
    font-size: 1.5rem;
  }

  /* Cards */
  .home-cards {
    min-height: 85px;
    padding: 12px;
    gap: 10px;
    border-radius: 10px;
  }

  .home-cards img {
    width: 34px;
    height: 34px;
  }

  .home-cards .card-number {
    font-size: 1.4rem;
  }

  .home-cards .card-title {
    font-size: 0.9rem;
  }

  /* Table */
  .styled-table {
    font-size: 0.75rem;
    min-width: 480px;
  }

  .styled-table th,
  .styled-table td {
    padding: 6px 6px;
  }

  /* Charts */
  .chart-wrapper {
    height: 200px;
  }

  .card-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* Profile Dropdown */
  .profile-dropdown {
    width: 280px;
    right: -5px;
  }

  .dropdown-header {
    padding: 15px;
  }

  .dropdown-details {
    padding: 10px;
  }

  .dropdown-detail-row {
    padding: 8px 10px;
  }

  .dropdown-detail-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .dropdown-detail-label {
    font-size: 0.65rem;
  }

  .dropdown-detail-value {
    font-size: 0.8rem;
  }

  .dropdown-footer {
    padding: 10px 15px;
    flex-direction: column;
  }

  .dropdown-footer-btn {
    padding: 8px;
    font-size: 0.8rem;
  }

  /* Todo */
  .todo-item {
    padding: 8px 10px;
    gap: 8px;
  }

  .todo-text {
    font-size: 0.85rem;
  }

  .todo-time {
    font-size: 0.7rem;
  }

  /* Password Modal */
  .password-modal-card {
    padding: 15px;
  }

  .password-input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  /* Hide notification badge on very small screens */
  .notification-badge {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    top: -3px;
    right: -3px;
  }
}

/* ============ RESPONSIVE - VERY SMALL (360px) ============ */
@media (max-width: 360px) {
  .school-name {
    display: none;
  }

  .user-profile {
    padding: 4px 6px;
  }

  .profile-dropdown {
    width: 260px;
  }

  .home-cards {
    flex-direction: column;
    text-align: center;
    padding: 12px 10px;
  }

  .home-cards img {
    margin-bottom: 5px;
  }
}


/*Permission slips tabs*/

.slip-container {
  max-width: 900px;
  background: white;
  margin: 30px auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slip-tabs {
  display: flex;
  margin-bottom: 15px;
  gap: 5px;
}

.slip-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: #2a4d69;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px 6px 0 0;
}

.slip-tab:hover {
  background: #1e364d;
}

.slip-tab.active {
  background-color: #007bff;
  color: #fff;
  border-bottom: 3px solid #ffcc00;
}

.slip-panel {
  display: none;
}
.slip-panel.active {
  display: block;
}
/* Fade-in animation keyframes for welcome message*/
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Permission slips spinners */
#spinner-leaveout,
#spinner-medical,
#spinner-suspension {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top-color: #0066ff;
  border-radius: 50%;
  margin-top: 6px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- POPUP OVERLAY ---------- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 999;
}

/* ---------- POPUP BOX ---------- */
.popup-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  max-height: 80%;
  background: #fff;
  border-radius: 12px;
  padding: 0;
  display: none;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: popupFade 0.25s ease-out;
  font-family: "Poppins", sans-serif;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/*centralized image logo and header for the permission slips view button */
.school-header {
  text-align: center;
  padding: 10px 5px;
  font-family: "Poppins", sans-serif;
}

.school-logo {
  margin-top: -20px;
  width: 95px;
  margin-left: auto;
  margin-right: auto;
}

.school-info {
  margin-top: -50px;
  font-size: 15px;
  line-height: 10px;
}

.school-info b {
  font-size: 18px;
  display: block;
}

.school-title {
  margin-top: -70px;
  margin-bottom: -50px;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slip-bordered-box {
  border: 3px solid #000;
  padding: 25px;
  margin-top: 20px;
  border-radius: 6px;
  background: #fff;
  font-size: 17px;
  line-height: 1.5;
}

/* Apply to your page content */
#main-content {
  animation: fadeIn 0.6s ease-in-out;
}

/*Leaveout, Medical & Suspension*/

body.leaveout-body {
  font-family: Arial, sans-serif;
  background: #f3f6fa;
  margin: 0;
  padding: 0;
}

.leaveout-content {
  max-width: 750px;
  background: white;
  margin-left: 200px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.leaveout-header {
  text-align: center;
  margin-bottom: 20px;
}

.leaveout-header h1 {
  margin: 0;
  font-size: 28px;
  color: #2a4d69;
}

.leaveout-header p {
  margin: 5px 0;
  color: #666;
}

.leaveout-fields {
  margin-bottom: 15px;
}

.leaveout-fields p {
  margin: 0 0 5px;
  font-weight: bold;
  color: #333;
}

.leaveout-field {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.leaveout-field:focus {
  border-color: #2a4d69;
}

.leaveout-btns {
  display: flex;
  justify-content: space-between;
  margin-left: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.leaveout-btn {
  flex: 1;
  padding: 10px;
  margin: 0 5px;
  border: none;
  background: #2a4d69;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* space between icon and text */
}

.leaveout-btn i {
  font-size: 22px;
}

.leaveout-btn:hover {
  background: #1e364d;
  transform: translateY(-2px);
}

@media (max-width: 500px) {
  .leaveout-content {
    padding: 15px;
  }

  .leaveout-btns {
    flex-direction: column;
  }

  .leaveout-btn {
    margin: 5px 0;
  }
}

/* ============ LOGOUT DIALOG ============ */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dialog-box {
  background: white;
  border-radius: 20px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 420px;
  padding: 2rem;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle top accent */
.dialog-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #dc2626, #ef4444);
}

/* Decorative circle */
.dialog-box::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.dialog-overlay.active .dialog-box {
  transform: translateY(0) scale(1);
}

/* Icon Wrapper */
.dialog-icon-wrapper {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  border: 3px solid #fecaca;
}

.dialog-icon-wrapper i {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dialog-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #1e293b;
  letter-spacing: -0.3px;
}

.dialog-message {
  margin-bottom: 1.8rem;
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
  padding: 0 0.5rem;
}

.dialog-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dialog-btn {
  padding: 0.75rem 1.8rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.cancel-btn {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.cancel-btn:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cancel-btn:active {
  transform: translateY(0);
}

.confirm-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.confirm-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.confirm-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.confirm-btn:hover::before {
  left: 100%;
}

.confirm-btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
  .dialog-box {
    padding: 1.5rem;
    border-radius: 16px;
    max-width: 320px;
  }

  .dialog-icon-wrapper {
    width: 52px;
    height: 52px;
  }

  .dialog-icon-wrapper i {
    font-size: 1.4rem;
  }

  .dialog-title {
    font-size: 1.2rem;
  }

  .dialog-message {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .dialog-btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .dialog-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
}

/* ============ INCIDENT REPORT ============ */
body.body-incident {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  color: #333;
  margin: 0;
  min-height: 100vh;
}

/* Main Container */
.incident-overall {
  background: #fff;
  width: 100%;
  max-width: 1100px;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* Header */
.incident-header {
  text-align: center;
  margin-bottom: 30px;
}

.incident-header h1 {
  font-size: 1.8rem;
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  display: inline-block;
  padding-bottom: 8px;
}

/* Input Fields Grid */
.incident-fields-container,
.incident-fields-containers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.incident-fields p {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #34495e;
}

.incident-fields input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  background: #fafbfc;
  box-sizing: border-box;
}

.incident-fields input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
  background: #fff;
}

/* Description Field */
.incident-fields1 {
  grid-column: 1 / -1;
  width: 100%;
}

.incident-fields1 p {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #34495e;
}

.incident-fields1 .desc {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: #fafbfc;
  outline: none;
  transition: all 0.3s ease;
  margin-left: 0;
}

.incident-fields1 .desc:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
  background: #fff;
}

/* Checkboxes Section */
.incident-checkboxes {
  background: #f9fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  max-height: 400px;
  overflow-y: auto;
}

/* Custom scrollbar for checkboxes */
.incident-checkboxes::-webkit-scrollbar {
  width: 6px;
}

.incident-checkboxes::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.incident-checkboxes::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* Hide Default Checkbox */
.incident-checkboxes input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #bbb;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-right: 10px;
}

.incident-checkboxes input[type="checkbox"]:hover {
  border-color: #3498db;
}

.incident-checkboxes input[type="checkbox"]:checked {
  background-color: #3498db;
  border-color: #3498db;
}

.incident-checkboxes input[type="checkbox"]:checked::after {
  content: "✔";
  font-size: 12px;
  color: white;
  position: absolute;
  top: 0px;
  left: 3px;
}

.incident-checkboxes input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Checkbox Labels */
.incident-checkboxes label {
  font-size: 0.9rem;
  color: #34495e;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
  word-break: break-word;
}

.incident-checkboxes label:hover {
  background: #eef2ff;
}

/* Submit Button */
.incident-btn {
  background: #3498db;
  color: white;
  padding: 13px 30px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 10px auto 0;
  width: 100%;
  max-width: 300px;
}

.incident-btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

.incident-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Feedback Message */
#form-feedback {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Spinner & Error */
#adm-spinner {
  display: none;
  color: #007bff;
  font-size: 0.85em;
  margin-left: 10px;
}

#adm-error {
  display: none;
  color: #dc3545;
  font-size: 0.85em;
  margin-top: 5px;
}

/* ============ RESPONSIVE - TABLET ============ */
@media (max-width: 900px) {
  .incident-checkboxes {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    padding: 16px;
    max-height: 350px;
  }
  
  .incident-overall {
    padding: 20px;
  }
}

/* ============ RESPONSIVE - MOBILE ============ */
@media (max-width: 600px) {
  body.body-incident {
    padding: 10px;
  }

  .incident-overall {
    padding: 16px;
    border-radius: 10px;
  }

  .incident-header h1 {
    font-size: 1.3rem;
  }

  .incident-fields-container,
  .incident-fields-containers {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .incident-fields p {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .incident-fields input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .incident-fields1 .desc {
    padding: 10px 12px;
    font-size: 0.9rem;
    min-height: 80px;
  }

  .incident-checkboxes {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
    max-height: 300px;
  }

  .incident-checkboxes label {
    font-size: 0.85rem;
    padding: 6px 8px;
  }

  .incident-checkboxes input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 8px;
  }

  .incident-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    max-width: 100%;
  }

  #adm-spinner {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* ============ RESPONSIVE - SMALL MOBILE ============ */
@media (max-width: 400px) {
  .incident-overall {
    padding: 12px;
    border-radius: 8px;
  }

  .incident-header h1 {
    font-size: 1.1rem;
  }

  .incident-fields-container,
  .incident-fields-containers {
    gap: 10px;
    margin-bottom: 16px;
  }

  .incident-fields input {
    padding: 8px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
  }

  .incident-fields1 .desc {
    padding: 8px 10px;
    font-size: 0.85rem;
    min-height: 70px;
    border-radius: 6px;
  }

  .incident-checkboxes {
    padding: 10px;
    gap: 4px;
    max-height: 250px;
  }

  .incident-checkboxes label {
    font-size: 0.8rem;
  }

  .incident-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
  }
}

/* ============ CHECK-IN PAGE ============ */
body.body-checkin {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f5f6fa;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
}

/* ============ PAGE HEADER ============ */
.checkin-page-header {
  background: linear-gradient(135deg, #1a237e, #283593);
  color: white;
  padding: 20px 28px;
  border-radius: 14px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: 0 8px 25px rgba(26, 35, 126, 0.2);
  position: relative;
  overflow: hidden;
}

.checkin-page-header::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.checkin-page-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.checkin-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.checkin-header-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.checkin-header-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: -0.3px;
}

.checkin-header-title p {
  font-size: 0.85rem;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

.checkin-header-stats {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.checkin-stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.checkin-stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.checkin-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
}

/* ============ TABLE WRAPPER ============ */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-left: 0;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #fff;
}

/* ============ TABLE ============ */
table {
  margin-left: 0;
  width: 100%;
  min-width: 950px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

th {
  background: linear-gradient(135deg, #1a237e, #283593);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 16px 18px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}

td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #334155;
  white-space: nowrap;
}

tr:nth-child(even) {
  background: #fafbfd;
}

tr:hover {
  background: #eef2ff;
  transition: background 0.2s ease;
}

/* ============ STATUS BADGES ============ */
.status-pending,
.status-away {
  color: #e67e22;
  font-weight: 700;
  background: #fff8f0;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  font-size: 0.82rem;
  border: 1px solid #fde8ce;
}

.status-reported,
.status-checked-in {
  color: #219a52;
  font-weight: 700;
  background: #f0faf4;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  font-size: 0.82rem;
  border: 1px solid #c8f0d8;
}

/* ============ BUTTONS ============ */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-checkin,
.checkin-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.2);
}

.btn-checkin:hover,
.checkin-btn:hover {
  background: linear-gradient(135deg, #2980b9, #2471a3);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(52, 152, 219, 0.35);
}

.checkin-btn:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============ DIALOG STYLING ============ */
dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: 460px;
  max-width: 93%;
  max-height: 255vh;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
  animation: dialogIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

dialog[open] {
  display: flex;
  flex-direction: column;
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dialog-header {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 18px 24px;
  color: #fff;
  background: linear-gradient(135deg, #1a237e, #283593);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dialog-header::before {
  content: '\f2f6';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#checkinForm {
  padding: 20px 24px;
  background: white;
  border-radius: 0 0 16px 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: calc(85vh - 60px);
}

.dialog-field {
  margin-bottom: 14px;
  flex-shrink: 0;
}

.dialog-field:last-of-type {
  margin-bottom: 0;
}

.dialog-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: #1e293b;
  font-weight: 600;
}

.dialog-field input,
.dialog-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: #fafbfc;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  color: #1e293b;
}

.dialog-field input:focus,
.dialog-field textarea:focus {
  border-color: #3498db;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.dialog-field input::placeholder,
.dialog-field textarea::placeholder {
  color: #94a3b8;
}

.dialog-field textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 120px;
}

/* ============ DIALOG ACTIONS ============ */
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: -10px;
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
  background: white;
  border-radius: 0 0 16px 16px;
}

.btn-cancel {
  background: #547c96;
  color: #4f627c;
  border: 2px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-cancel:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.btn-submit {
  background: linear-gradient(135deg, #27ae60, #219a52);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
  white-space: nowrap;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #219a52, #1a7a3e);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

/* ============ LOADER ============ */
#spinner {
  text-align: center;
  margin: 25px;
  padding: 30px;
}

.loader {
  border: 5px solid #f1f5f9;
  border-top: 5px solid #1a237e;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #94a3b8;
  font-size: 1.05rem;
}

.empty-state i {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  color: #cbd5e1;
}

/* ============ RESPONSIVE - TABLET (768px) ============ */
@media (max-width: 768px) {
  body.body-checkin {
    padding: 12px;
  }

  .checkin-page-header {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .checkin-header-title h2 {
    font-size: 1.3rem;
  }

  .checkin-header-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .checkin-header-stats {
    width: 100%;
    gap: 10px;
  }

  .checkin-stat-item {
    flex: 1;
    padding: 8px 12px;
  }

  .checkin-stat-number {
    font-size: 1.2rem;
  }

  table {
    min-width: 780px;
  }

  th {
    padding: 12px 12px;
    font-size: 0.8rem;
  }

  td {
    padding: 12px 12px;
    font-size: 0.88rem;
  }

  .btn,
  .btn-checkin,
  .checkin-btn {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  /* Dialog */
  dialog {
    width: 95%;
    max-width: 420px;
    border-radius: 14px;
  }

  .dialog-header {
    padding: 18px 20px;
    font-size: 1.1rem;
    border-radius: 14px 14px 0 0;
  }

  .dialog-header::before {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  #checkinForm {
    padding: 20px;
  }

  .dialog-field {
    margin-bottom: 14px;
  }

  .dialog-field label {
    font-size: 0.85rem;
  }

  .dialog-field input,
  .dialog-field textarea {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .dialog-actions {
    flex-direction: row;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .btn-cancel,
  .btn-submit {
    flex: 1;
    padding: 10px 18px;
    font-size: 0.85rem;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    order: 0;
  }
}

/* ============ RESPONSIVE - SMALL MOBILE (480px) ============ */
@media (max-width: 480px) {
  body.body-checkin {
    padding: 8px;
  }

  .checkin-page-header {
    padding: 14px 16px;
    border-radius: 10px;
  }

  .checkin-header-title h2 {
    font-size: 1.15rem;
  }

  .checkin-header-title p {
    font-size: 0.75rem;
  }

  .checkin-header-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .checkin-stat-number {
    font-size: 1.1rem;
  }

  .checkin-stat-label {
    font-size: 0.65rem;
  }

  table {
    min-width: 650px;
    border-radius: 10px;
  }

  th {
    padding: 10px 8px;
    font-size: 0.75rem;
  }

  td {
    padding: 10px 8px;
    font-size: 0.82rem;
  }

  .btn,
  .btn-checkin,
  .checkin-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 6px;
  }

  .status-pending,
  .status-away,
  .status-reported,
  .status-checked-in {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  /* Dialog - Bottom Sheet Style */
  dialog {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    max-height: 90vh;
    overflow-y: auto;
    margin: 0;
  }

  dialog[open] {
    animation: dialogInMobile 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes dialogInMobile {
    from {
      transform: translate(-50%, 100%);
    }
    to {
      transform: translate(-50%, 0);
    }
  }

  .dialog-header {
    padding: 16px 18px;
    font-size: 1rem;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .dialog-header::before {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  #checkinForm {
    padding: 16px;
  }

  .dialog-field {
    margin-bottom: 12px;
  }

  .dialog-field label {
    font-size: 0.82rem;
  }

  .dialog-field input,
  .dialog-field textarea {
    padding: 9px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .dialog-actions {
    flex-direction: row;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
    padding-bottom: 8px;
  }

  .btn-cancel,
  .btn-submit {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.82rem;
    border-radius: 8px;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    order: 0;
  }
}

/* ============ RESPONSIVE - VERY SMALL (360px) ============ */
@media (max-width: 360px) {
  table {
    min-width: 560px;
  }

  th,
  td {
    padding: 8px 6px;
    font-size: 0.75rem;
  }

  .checkin-header-stats {
    flex-direction: column;
    gap: 6px;
  }

  .checkin-stat-item {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .checkin-stat-label {
    margin-top: 0;
  }

  dialog {
    max-height: 85vh;
  }

  .dialog-header {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  #checkinForm {
    padding: 14px;
  }

  .btn-cancel,
  .btn-submit {
    padding: 9px 14px;
    font-size: 0.8rem;
  }
}


/*Student records*/

body.records-body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fa;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Header */
.records-header {
  margin-left: 15px;
  background: #004080;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 1.8rem;
  font-weight: bold;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Container */
.records-container {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Buttons Section */
.records-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.records-buttons button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.relocate-btn {
  background: #ffa726;
  color: white;
}

.relocate-btn:hover {
  background: #fb8c00;
}

.add-btn {
  background: #43a047;
  color: white;
}

.add-btn:hover {
  background: #2e7d32;
}

.remove-btn {
  background: #e53935;
  color: white;
}

.remove-btn:hover {
  background: #c62828;
}

/* Search Field */
#search-field {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease;
}

#search-field:focus {
  border-color: #004080;
}

/* Dropdown */
.records-dropdown {
  margin-bottom: 20px;
}

.records-dropdown select {
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease;
}

.records-dropdown select:focus {
  border-color: #004080;
}

/* Table */
.records-table {
  overflow-x: auto;
}

.records-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.records-table th,
.records-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

.records-table th {
  background: #004080;
  color: white;
  font-weight: bold;
}

.records-table tr:nth-child(even) {
  background: #f9f9f9;
}

.records-table tr:hover {
  background: #f1f1f1;
  transition: 0.2s;
}





/*Information*/
/* GENERAL PAGE */
body.info-body {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #eef2f6;
  color: #333;
}

/* HEADER */
.info-header {
  background: #003873;
  color: #ffffff;
  text-align: center;
  padding: 14px 0; /* Reduced height */
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 10px;
  margin-left: 15px;
  border-bottom-left-radius: 18px; /* Soft rounded corners */
  border-bottom-right-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); /* Softer shadow */
}

/* ACTION AREA */
.info-actions {
  width: 90%;
  margin: 25px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* MODERN SELECT */
.modern-select {
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccd7e0;
  background: white;
  width: 230px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.modern-select:focus {
  border-color: #004c97;
  box-shadow: 0 0 8px rgba(0, 76, 151, 0.3);
}

/* BUTTONS */
.info-buttons {
  display: flex;
  gap: 12px;
}

.btns {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: 0.25s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Individual button colors */
.btn-save {
  background: #0053a6;
  color: white;
}
.btn-save:hover {
  background: #006be6;
}

.btn-delete {
  background: #c62828;
  color: white;
}
.btn-delete:hover {
  background: #ff4242;
}

.btn-print {
  background: #2e7d32;
  color: white;
}
.btn-print:hover {
  background: #39a845;
}

/* TABLE */
.info-table-container {
  width: 92%;
  margin: 20px auto;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table thead {
  background: #003c7a;
  color: white;
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e6e6e6;
}

.info-table tr:nth-child(even) {
  background: #f4f7fb;
}

.info-table tr:hover {
  background: #e9eef5;
  transition: 0.2s;
}
