/* Online Clearance Website Styles */
/* Color Palette Variables */

:root {
  --medium-muted-blue: #5186b1;
  --darker-saturated-blue: #175d97;
  --deep-navy-blue: #0c5591;
  --bright-golden-yellow: #e7c01d;
  --very-light-off-white: #f5f8fa;
  --light-blue-gray: #c5d7e5;
  --very-light-cool-white: #e7eff4;
  --light-muted-blue: #eef3ff;
  --soft-slate-gray: #5f6b7a;
  --dark-primary: #1c3faa;
  /* login result message color */
  --yellow-light: #fdfca3;
  /* Collapsed sidebar rail width used across layout to avoid clipping at high zoom */
  --collapsed-sidebar-width: 100px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HIDE PAGE SCROLLBARS - GLOBAL APPROACH */
/* 
 * Hide scrollbars for main page content while maintaining scroll functionality
 * This applies to the main page body and content areas
 */

/* Hide scrollbars for all browsers - Body and HTML */
html,
body {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
  overflow: -moz-scrollbars-none !important; /* Older Firefox */
  overscroll-behavior: none; /* Prevent scroll bounce at boundaries */
}

/* Hide scrollbars for webkit browsers (Chrome, Safari) - Body and HTML */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
  display: none !important;
}

/* Hide scrollbars for main content areas */
.main-content,
.main-content *,
.content-wrapper,
.content-wrapper *,
.container,
.container * {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

.main-content::-webkit-scrollbar,
.main-content *::-webkit-scrollbar,
.content-wrapper::-webkit-scrollbar,
.content-wrapper *::-webkit-scrollbar,
.container::-webkit-scrollbar,
.container *::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
  display: none !important;
}

/* Hide scrollbars for specific page elements that might scroll */
.dashboard-container,
.dashboard-container *,
.page-content,
.page-content * {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

.dashboard-container::-webkit-scrollbar,
.dashboard-container *::-webkit-scrollbar,
.page-content::-webkit-scrollbar,
.page-content *::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
  display: none !important;
}

/* Additional webkit scrollbar component hiding for all page elements */
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track,
.container::-webkit-scrollbar-track,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb,
.container::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
.main-content::-webkit-scrollbar-corner,
.container::-webkit-scrollbar-corner {
  display: none !important;
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
}

/* 
 * NOTE: If scrollbars still appear after these changes:
 * 1. Hard refresh the browser (Ctrl+F5 or Cmd+Shift+R)
 * 2. Clear browser cache
 * 3. Check developer tools for any conflicting CSS rules
 */

/* Zoom-Resistant Typography Strategy */
/* Uses clamp(min-px, preferred-rem, max-px) to prevent excessive font growth at high zoom levels */

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--very-light-off-white);
  color: var(--deep-navy-blue);
  line-height: 1.6;
  font-size: clamp(14px, 1rem, 18px); /* Zoom-resistant body text */
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: clamp(12px, 14px, 16px); /* Zoom-resistant button text */
}

.btn-primary {
  background-color: var(--darker-saturated-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--deep-navy-blue);
}

.btn-accent {
  background-color: var(--bright-golden-yellow);
  color: var(--deep-navy-blue);
}

.btn-accent:hover {
  background-color: #d4b018;
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

/* Loading Placeholder Styles */
.loading-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--medium-muted-blue);
}

.loading-placeholder i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--medium-muted-blue);
}

.loading-placeholder p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.8;
}

/* No Signatories Message */
.no-signatories {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--medium-muted-blue);
  background: var(--very-light-cool-white);
  border-radius: 8px;
  border: 2px dashed var(--light-blue-gray);
}

.no-signatories p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.8;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-blue-gray);
  border-radius: 6px;
  font-size: clamp(14px, 16px, 18px); /* Zoom-resistant form inputs */
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
  box-shadow: 0 0 0 3px rgba(81, 134, 177, 0.1);
}

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--deep-navy-blue);
  padding: 16px 0; /* Fixed pixel padding instead of rem to prevent growth on zoom */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1001; /* Above sidebar (1000) but below modals/notifications */
  overscroll-behavior: none; /* Prevent scroll bounce/rubber-banding */
}

.navbar-brand {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

/* Login Page Styles */
/* NOTE: Login page does not use a page header/navbar - card is centered in full viewport */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  /* Composite background: image under semi-transparent golden tint */
  background-image: linear-gradient(
      rgba(1, 151, 251, 0.448),
      rgba(1, 151, 251, 0.448)
    ),
    url("../images/bg-login.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.login-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo h2 {
  color: var(--deep-navy-blue);
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.login-header h3 {
  color: var(--medium-muted-blue);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.login-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.login-form .form-group {
  margin-bottom: 20px;
}

/* Extra spacing for login button group (since Remember Me is not used) */
.login-form .login-button-group {
  margin-top: 10px;
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--deep-navy-blue);
  font-weight: 500;
}

.login-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  background-color: var(--bright-golden-yellow);
  color: var(--deep-navy-blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: #d4b018;
  transform: translateY(-1px);
}

.forgot-link {
  color: var(--medium-muted-blue);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--deep-navy-blue);
  text-decoration: underline;
}

/* Login Footer */
.login-footer {
  padding-top: 20px;
  border-top: 1px solid var(--light-blue-gray);
  text-align: center;
  font-size: 0.75rem;
  color: var(--soft-slate-gray);
  flex-shrink: 0;
}

/* Checkbox Styles */
.checkbox-group {
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--deep-navy-blue);
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: var(--medium-muted-blue);
}

.text-center {
  text-align: center;
}

/* Responsive Header Styles */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px; /* Fixed height instead of min-height to prevent growth on zoom */
  max-height: 70px; /* Ensure header never exceeds this height */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  max-width: 250px;
}

.logo h1 {
  color: white;
  font-size: clamp(24px, 1.8rem, 28px); /* Zoom-resistant: caps at 28px max */
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
}

.logo p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
}

/* User Info Styles */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 1;
  justify-content: flex-end;
  min-width: 0; /* Allow flex item to shrink below content size */
}

.user-name {
  color: white;
  font-weight: 500;
  font-size: clamp(
    12px,
    14px,
    16px
  ); /* Zoom-resistant: stays between 12-16px */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.user-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 12px;
  padding: 5px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.user-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: var(--deep-navy-blue);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: var(--very-light-off-white);
}

.dropdown-menu a:first-child {
  border-radius: 6px 6px 0 0;
}

.dropdown-menu a:last-child {
  border-radius: 0 0 6px 6px;
}

/* Dashboard Layout */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 80px);
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  background-color: var(--deep-navy-blue);
  color: white;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, left 0.3s ease;
  position: fixed;
  top: 114px; /* Fixed header (70px header-content + 32px padding) + 12px visual inset */
  left: 0;
  height: calc(100vh - 126px); /* 114px top inset + 12px bottom inset */
  overflow-y: auto;
  z-index: 1000;
  border-radius: 0 12px 12px 0;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
  /* Hide scrollbar for cleaner appearance while maintaining functionality */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Webkit scrollbar styling for desktop sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.sidebar.collapsed {
  width: var(--collapsed-sidebar-width);
  overflow-y: hidden; /* Hide scrollbar when collapsed */
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: padding 0.3s ease, gap 0.3s ease, justify-content 0.3s ease;
}

/* Center header toggle button when collapsed */
.sidebar.collapsed .sidebar-header {
  padding: 20px 0;
  justify-content: center;
  gap: 0;
}

.sidebar-header h3 {
  color: white;
  margin: 0;
  font-size: clamp(
    16px,
    1.2rem,
    20px
  ); /* Zoom-resistant: stays between 16-20px */
  font-weight: 600;
  flex: 1;
  transition: opacity 0.3s ease, display 0.3s ease;
}

/* Secondary logo style for the sidebar title */
.sidebar-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
  border-radius: 8px;
  background: var(--darker-saturated-blue);
  border: 1px solid var(--darker-saturated-blue);
  box-shadow: 0 0 0 1px var(--deep-navy-blue);
}

.sidebar-title::before {
  /* content: ""; */
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--bright-golden-yellow);
  /* box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset; */
}

.sidebar.collapsed .sidebar-header h3 {
  display: none;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.sidebar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Ensure toggle button is perfectly centered when collapsed */
.sidebar.collapsed .sidebar-toggle {
  margin: 0 auto;
}

.sidebar-content {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
  height: calc(100vh - 140px); /* Account for header and padding */
}

/* Hide scrollbar when sidebar is collapsed */
.sidebar.collapsed .sidebar-content {
  overflow-y: hidden;
  padding: 20px 0;
}

/* Hide scrollbar for webkit browsers when collapsed */
.sidebar.collapsed::-webkit-scrollbar {
  display: none;
}

.sidebar.collapsed .sidebar-content::-webkit-scrollbar {
  display: none;
}

/* Sidebar footer credit */
.sidebar-credit {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px; /* slightly smaller */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease, display 0.3s ease;
}

.sidebar.collapsed .sidebar-credit {
  display: none;
}

@media (max-width: 768px) {
  .sidebar-credit {
    padding: 10px 16px;
    font-size: 11px;
  }
}

.sidebar-section {
  margin-bottom: 30px;
  transition: margin-bottom 0.3s ease;
}

.sidebar-section h4 {
  color: var(--bright-golden-yellow);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease, display 0.3s ease;
  margin: 0 20px 15px 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed .sidebar-section h4 {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

/* Ensure navigation container is properly aligned when collapsed */
.sidebar.collapsed .sidebar-nav {
  align-items: stretch;
  width: 100%;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--bright-golden-yellow);
  color: white;
}

.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-left-color: var(--bright-golden-yellow);
}

/* Ensure hover and active states don't add borders when collapsed */
.sidebar.collapsed .sidebar-link:hover,
.sidebar.collapsed .sidebar-link.active {
  border-left: none !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-link i {
  width: 20px;
  margin-right: 12px;
  text-align: center;
  font-size: 16px; /* Fixed pixel size for consistency across zoom levels */
  transition: margin 0.3s ease, width 0.3s ease;
}

.sidebar.collapsed .sidebar-link i {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  font-size: 16px !important; /* Fixed pixel size to prevent zoom scaling */
  align-items: center;
  justify-content: center;
  position: relative;
  left: 0;
  right: 0;
  text-indent: 0 !important;
  line-height: 1;
}

.sidebar-link span {
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-link span {
  display: none !important;
  opacity: 0;
  width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Ensure collapsed sidebar has clean appearance */
.sidebar.collapsed .sidebar-section {
  margin-bottom: 20px; /* Reduce spacing when collapsed */
}

.sidebar.collapsed .sidebar-link {
  padding: 12px 8px; /* Tighter horizontal padding to prevent clipping at high zoom */
  justify-content: center;
  align-items: center;
  border-left: none !important; /* Remove border when collapsed for perfect centering */
  position: relative; /* For hover indicator */
  width: 100%;
  display: flex;
}

/* Add subtle indicator for active/hover state when collapsed */
.sidebar.collapsed .sidebar-link:hover::before,
.sidebar.collapsed .sidebar-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background-color: var(--bright-golden-yellow);
  border-radius: 0 2px 2px 0;
}

/* Sidebar Backdrop - Only for mobile sidebar overlay, not for desktop toggle */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  pointer-events: none; /* Disable pointer events by default */
}
/* Ensure backdrop is hidden on desktop by default */
@media (min-width: 769px) {
  .sidebar-backdrop {
    display: none !important;
    pointer-events: none !important;
  }
}
/* Main Content Adjustment */
.main-content {
  flex: 1;
  background-color: var(--very-light-off-white);
  padding: 20px;
  transition: margin-left 0.3s ease;
  margin-left: 280px;
  margin-top: 102px; /* Account for fixed header: 70px header-content + 32px navbar padding (16px top + 16px bottom) */
  height: calc(100vh - 102px); /* Adjusted for fixed header height */
  overflow-y: auto;
  overscroll-behavior: none; /* Prevent scroll bounce at boundaries */
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(
    --collapsed-sidebar-width
  ); /* Keep content aligned with collapsed rail */
}

.main-content.full-width {
  margin-left: 0;
}

/* Student Management Page Styles */
.page-header {
  margin-bottom: 30px;
}

.page-header h2 {
  color: var(--deep-navy-blue);
  font-size: clamp(24px, 1.8rem, 32px); /* Zoom-resistant: caps at 32px max */
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header p {
  color: var(--medium-muted-blue);
  font-size: 1rem;
  margin: 0;
}

/* Quick Actions Section */
.quick-actions-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.override-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.signatory-override-btn {
  background-color: #ffc107;
  color: #212529;
  border: 1px solid #ffc107;
  font-weight: 600;
  transition: all 0.3s ease;
}

.signatory-override-btn:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.signatory-override-btn i {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .quick-actions-section {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .action-buttons,
  .override-actions {
    justify-content: center;
  }

  .signatory-override-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .quick-actions-section {
    padding: 15px;
  }

  .action-buttons,
  .override-actions {
    gap: 8px;
  }

  .signatory-override-btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* Button Style Definitions */
.btn-primary {
  background: var(--medium-muted-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--darker-saturated-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(81, 134, 177, 0.3);
}

.btn-secondary {
  background: var(--light-blue-gray);
  color: var(--deep-navy-blue);
}

.btn-secondary:hover {
  background: var(--medium-muted-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(81, 134, 177, 0.3);
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-warning {
  background: #ffc107;
  color: var(--deep-navy-blue);
}

.btn-warning:hover {
  background: #e0a800;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-outline-warning {
  background: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
}

.btn-outline-warning:hover {
  background: #ffc107;
  color: var(--deep-navy-blue);
  transform: translateY(-1px);
}

/* Disabled button styles - ensure they don't interfere with layout */
.btn:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none; /* Explicitly prevent any interaction */
}

/* Ensure disabled buttons don't trigger hover effects */
.btn-primary:disabled:hover,
.btn-secondary:disabled:hover,
.btn-success:disabled:hover,
.btn-danger:disabled:hover,
.btn-warning:disabled:hover,
.btn-outline-warning:disabled:hover {
  background-color: inherit;
  transform: none;
  box-shadow: none;
}

/* Search and Filters Section */
.search-filters-section {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--medium-muted-blue);
}

.search-box {
  position: relative;
  margin-bottom: 15px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--medium-muted-blue);
}

.search-box input {
  width: 100%;
  /*padding: 12px 12px 12px 40px;*/
  border: 1px solid var(--light-blue-gray);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
  box-shadow: 0 0 0 3px rgba(81, 134, 177, 0.1);
}

.filter-dropdowns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 15px;
  border: 1px solid var(--light-blue-gray);
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
}

/* Filter Actions */
.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.apply-filters-btn {
  background: linear-gradient(
    135deg,
    var(--medium-muted-blue),
    var(--darker-saturated-blue)
  );
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apply-filters-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(81, 134, 177, 0.3);
}

.clear-filters-btn {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clear-filters-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Disabled filter styling */
.filter-select:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  border-color: #dee2e6;
}

.filter-select:disabled option {
  color: #6c757d;
}

/* Enhanced filter section */
.search-filters-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.filter-dropdowns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

/* Filter select improvements */
.filter-select {
  padding: 10px 12px;
  border: 2px solid var(--light-blue-gray);
  border-radius: 6px;
  background: white;
  color: var(--medium-muted-blue);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
  box-shadow: 0 0 0 3px rgba(81, 134, 177, 0.1);
}

.filter-select:hover:not(:disabled) {
  border-color: var(--medium-muted-blue);
}

/* Responsive design for filters */
@media (max-width: 768px) {
  .filter-dropdowns {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filter-actions {
    flex-direction: column;
    gap: 8px;
  }

  .apply-filters-btn,
  .clear-filters-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .search-filters-section {
    padding: 16px;
  }

  .filter-select {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

/* Statistics Dashboard */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-dashboard .stat-card {
  background: var(--very-light-off-white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-dashboard .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  background: var(--medium-muted-blue);
}

.stat-icon.pending {
  background: var(--bright-golden-yellow);
  color: var(--deep-navy-blue);
}

.stat-icon.rejected {
  background: #dc3545;
}

.stat-icon.completed {
  background: #28a745;
}

.stat-icon.active {
  background: #28a745;
}

.stat-icon.inactive {
  background: #dc3545;
}

.stat-icon.graduated {
  background: #007bff;
}

.stat-content h3 {
  margin: 0;
  font-size: clamp(20px, 1.8rem, 28px); /* Zoom-resistant stat numbers */
  font-weight: bold;
  color: var(--deep-navy-blue);
}

.stat-content p {
  margin: 5px 0 0 0;
  color: var(--medium-muted-blue);
  font-size: clamp(12px, 14px, 16px); /* Zoom-resistant stat labels */
}

/* Bulk Actions Section */
.bulk-actions-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bulk-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.select-all-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--deep-navy-blue);
}

.bulk-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bulk-buttons .btn {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bulk-buttons .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Table Styles */
.table-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* Table Header with Integrated Bulk Actions */
.table-header-section {
  background: var(--very-light-off-white);
  padding: 20px;
  border-bottom: 1px solid var(--light-blue-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.table-header-section .bulk-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.table-header-section .select-all-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--deep-navy-blue);
  font-size: 14px;
}

.table-header-section .bulk-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-header-section .bulk-buttons .btn {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  font-weight: 500;
}

.table-header-section .bulk-buttons .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.table-responsive {
  overflow-x: auto;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
}

.students-table th,
.students-table td {
  padding: 12px 15px;
  text-align: left;
}

.students-table th {
  background: var(--very-light-off-white);
  font-weight: 600;
  color: var(--deep-navy-blue);
  font-size: clamp(12px, 14px, 16px); /* Zoom-resistant table headers */
}

.students-table td {
  font-size: clamp(12px, 14px, 16px); /* Zoom-resistant table data */
  color: var(--deep-navy-blue);
}

.checkbox-column {
  width: 50px;
  text-align: center;
}

/* Selection Counter styling moved to FacultyManagement.php for pill-shaped design */

.students-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Status Badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Account Status Badges */
.status-badge.account-active {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.status-badge.account-inactive {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.status-badge.account-graduated {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
}

/* Clearance Status Badges */
.status-badge.clearance-unapplied {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
}

.status-badge.clearance-pending {
  background: rgba(231, 192, 29, 0.2);
  color: #b8860b;
}

.status-badge.clearance-completed {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.status-badge.clearance-rejected {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.status-badge.clearance-in-progress {
  background: rgba(23, 162, 184, 0.2);
  color: #17a2b8;
}

.status-badge.clearance-na {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
  font-style: italic;
}

/* Compact Clearance Status Cell Styles */
.clearance-status-cell {
  /* Removed display: flex to fix alignment with action buttons column */
  padding: 4px 0;
  vertical-align: top;
}

.clearance-status-primary {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.clearance-status-secondary {
  font-size: 9px;
  color: #6b7280;
  line-height: 1.2;
  display: block;
}

/* Compact Status Badge Styles */
.status-badge-compact {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-block;
  line-height: 1.3;
}

.status-badge-compact.clearance-unapplied {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
}

.status-badge-compact.clearance-pending {
  background: rgba(231, 192, 29, 0.2);
  color: #b8860b;
}

.status-badge-compact.clearance-completed,
.status-badge-compact.clearance-complete {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.status-badge-compact.clearance-in-progress {
  background: rgba(23, 162, 184, 0.2);
  color: #17a2b8;
}

.status-badge-compact.clearance-rejected {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.status-badge-compact.clearance-na {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
  font-style: italic;
}

/* Signatory Action Status Badges (for signatory-facing pages) */
.status-badge-compact.signatory-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
}

.status-badge-compact.signatory-approved {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.status-badge-compact.signatory-rejected {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

/* Term Indicator Banner */
.term-indicator-banner {
  background: linear-gradient(135deg, #e7eff4 0%, #d7e3f0 100%);
  border-left: 4px solid var(--deep-navy-blue);
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.term-indicator-banner.historical {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-left-color: #f39c12;
}

.term-indicator-banner .term-icon {
  font-size: 16px;
  color: var(--deep-navy-blue);
}

.term-indicator-banner.historical .term-icon {
  color: #f39c12;
}

.term-indicator-banner .term-text {
  flex: 1;
  color: #2f3a4b;
  font-weight: 500;
}

.term-indicator-banner .term-label {
  color: #6b7280;
  font-size: 12px;
}

/* Employment Status Badges */
.status-badge.employment-full-time {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.status-badge.employment-part-time {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.status-badge.employment-part-time-full-load {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

/* Account Status Badge for Resigned */
.status-badge.account-resigned {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-icon.edit-btn {
  background: rgba(81, 134, 177, 0.1);
  color: var(--medium-muted-blue);
}

.btn-icon.edit-btn:hover {
  background: var(--medium-muted-blue);
  color: white;
}

.btn-icon.delete-btn {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.btn-icon.delete-btn:hover {
  background: #dc3545;
  color: white;
}

/* Status Toggle Buttons */
.btn-icon.status-toggle-btn {
  background: rgba(81, 134, 177, 0.1);
  color: var(--medium-muted-blue);
  transition: all 0.3s ease;
}

.btn-icon.status-toggle-btn.active {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.btn-icon.status-toggle-btn.inactive {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.btn-icon.status-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  animation: slideIn 0.3s ease;
  max-width: 400px;
}

.notification-success {
  border-left: 4px solid #28a745;
}

.notification-info {
  border-left: 4px solid var(--medium-muted-blue);
}

.notification-warning {
  border-left: 4px solid #ffc107;
}

.notification-error {
  border-left: 4px solid #dc3545;
}

.notification i {
  font-size: 18px;
}

.notification-success i {
  color: #28a745;
}
.notification-info i {
  color: var(--medium-muted-blue);
}

.notification-warning i {
  color: #ffc107;
}
.notification-error i {
  color: #dc3545;
}

.notification span {
  flex: 1;
  font-size: clamp(12px, 14px, 16px); /* Zoom-resistant notification text */
  color: var(--deep-navy-blue);
}

.notification button {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--medium-muted-blue);
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification button:hover {
  color: var(--deep-navy-blue);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Enhanced Pagination Styles */
.pagination-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--medium-muted-blue);
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap; /* Allow wrapping if needed */
  max-width: 100%; /* Prevent container overflow */
  overflow: hidden; /* Prevent container overflow */
  justify-content: center; /* Center controls */
}

.page-numbers {
  display: flex;
  gap: 4px;
  flex-wrap: wrap; /* Allow wrapping on very small screens */
  max-width: 100%; /* Prevent overflow */
  overflow-x: auto; /* Allow horizontal scroll as fallback */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
  justify-content: center; /* Center page numbers */
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid var(--light-blue-gray);
  background: white;
  color: var(--medium-muted-blue);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--very-light-cool-white);
  border-color: var(--medium-muted-blue);
  color: var(--darker-saturated-blue);
}

.pagination-btn.active {
  background: var(--medium-muted-blue);
  color: white;
  border-color: var(--medium-muted-blue);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.entries-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entries-per-page label {
  font-size: 0.9rem;
  color: var(--medium-muted-blue);
  font-weight: 500;
}

.entries-select {
  padding: 6px 10px;
  border: 1px solid var(--light-blue-gray);
  border-radius: 4px;
  background: white;
  color: var(--medium-muted-blue);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.entries-select:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
  box-shadow: 0 0 0 2px rgba(81, 134, 177, 0.1);
}

.entries-select:hover {
  border-color: var(--medium-muted-blue);
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pagination-section {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 12px 15px;
    margin-top: 15px;
  }

  .pagination-info {
    order: 1;
    font-size: 12px;
    width: 100%;
    margin-bottom: 4px;
  }

  .pagination-controls {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .entries-per-page {
    order: 3;
    width: 100%;
    justify-content: center;
    font-size: 12px;
    gap: 6px;
  }

  .entries-per-page label,
  .entries-per-page span {
    font-size: 12px;
  }

  .entries-select {
    padding: 5px 8px;
    font-size: 12px;
  }

  .page-numbers {
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-btn {
    padding: 6px 9px;
    font-size: 12px;
    min-width: 36px;
    height: 32px;
  }

  .pagination-btn i {
    font-size: 11px;
  }

  /* Hide page number text on nav buttons, show only icons on very small */
  .pagination-btn:not(.pagination-btn.active):has-text {
    padding: 6px 8px;
  }
}

@media (max-width: 480px) {
  .pagination-section {
    padding: 10px 12px;
    gap: 8px;
    margin-top: 12px;
  }

  .pagination-info {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .pagination-controls {
    gap: 4px;
    flex-wrap: wrap;
  }

  .page-numbers {
    gap: 2px;
    display: none; /* Hide page numbers on very small screens */
  }

  /* Show page numbers if there are 3 or fewer pages */
  .page-numbers:has(.pagination-btn:nth-child(3):last-child) {
    display: flex;
  }

  .pagination-btn {
    padding: 5px 8px;
    font-size: 11px;
    min-width: 32px;
    height: 30px;
  }

  /* Compact previous/next buttons - show icons only, hide text */
  #prevPage,
  #nextPage {
    min-width: 30px;
    padding: 5px 6px;
    font-size: 0;
    line-height: 0;
  }

  /* Restore icon font size */
  #prevPage i,
  #nextPage i {
    font-size: 12px;
    margin: 0;
    display: inline-block;
    line-height: 1;
  }

  .entries-per-page {
    font-size: 11px;
    gap: 4px;
    flex-wrap: wrap;
  }

  .entries-per-page label,
  .entries-per-page span {
    font-size: 11px;
  }

  .entries-select {
    padding: 4px 6px;
    font-size: 11px;
    min-width: 50px;
  }
}

/* Responsive Design for Student Management */
@media (max-width: 768px) {
  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-dropdowns {
    flex-direction: column;
  }

  .filter-select {
    min-width: auto;
    width: 100%;
  }

  .bulk-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .bulk-buttons {
    justify-content: center;
  }

  .pagination-section {
    flex-direction: column;
    gap: 15px;
  }

  .students-table {
    font-size: 12px;
  }

  .students-table th,
  .students-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .stats-dashboard {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .students-table {
    font-size: 11px;
  }

  .students-table th,
  .students-table td {
    padding: 6px 8px;
  }

  /* Ultra-small screen adjustments for table header */
  .table-header-section {
    padding: 10px 12px;
    gap: 10px;
  }

  .table-header-section .bulk-buttons .btn {
    font-size: 10px;
    padding: 4px 10px;
  }

  .table-header-section .bulk-buttons {
    gap: 4px;
  }

  /* Hide button text on very small screens, show only icons */
  .bulk-buttons .btn i {
    margin-right: 0 !important;
  }

  /* Make primary buttons stack and smaller */
  .bulk-selection-filters-btn,
  .openBatchUpdateModal-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Reduce selection counter padding */
  .selection-counter-display {
    padding: 6px 16px;
    font-size: 12px;
  }

  .table-header-section .bulk-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .table-header-section .bulk-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .table-header-section .bulk-buttons .btn {
    font-size: 11px;
    padding: 6px 12px;
    flex: 0 1 auto;
    min-width: fit-content;
  }

  /* Make selection counter full width on mobile */
  .selection-counter-display {
    width: 100%;
    justify-content: center;
  }

  /* Stack primary action buttons vertically on mobile */
  .bulk-selection-filters-btn,
  .openBatchUpdateModal-btn {
    width: 100%;
  }

  /* Ensure all primary action buttons stack on mobile */
  .bulk-controls > .btn:not(.bulk-buttons .btn) {
    width: 100%;
    margin-bottom: 8px;
  }

  /* Make sure button groups inside bulk-controls are full width */
  .bulk-controls > div {
    width: 100%;
  }

  /* Center bulk-buttons on mobile */
  .bulk-controls .bulk-buttons {
    justify-content: center;
    width: 100%;
  }

  .action-buttons .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .notification {
    max-width: 90%;
    right: 5%;
    left: 5%;
  }
}

.main-content {
  flex: 1;
  background-color: var(--very-light-off-white);
  padding: 20px;
  margin-top: 102px; /* Account for fixed header: 70px header-content + 32px navbar padding */
  overscroll-behavior: none; /* Prevent scroll bounce at boundaries */
}

/* Dashboard Layout Styles - Moved to activity-tracker.css to avoid conflicts */

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.content-wrapper h2 {
  color: var(--deep-navy-blue);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.content-wrapper p {
  color: var(--medium-muted-blue);
  font-size: 16px;
}

/* Responsive Design */

/* Tablet and smaller devices */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .login-container {
    padding: 30px 15px;
  }

  .login-card {
    padding: 30px 20px;
  }

  .login-logo h2 {
    font-size: 1.6rem;
  }

  .login-header h3 {
    font-size: 1rem;
  }

  /* Responsive Header - Tablet */
  .header-content {
    min-height: 65px;
  }

  .logo img {
    height: 55px;
    max-width: 220px;
  }

  .logo h1 {
    font-size: clamp(20px, 1.6rem, 26px); /* Zoom-resistant mobile logo */
  }

  .user-name {
    font-size: clamp(11px, 13px, 15px); /* Zoom-resistant mobile user name */
  }

  .user-info {
    gap: 6px;
  }

  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Sidebar Mobile Styles */
  .sidebar {
    position: fixed;
    top: 109px; /* 65px header-content + 32px padding + 12px inset */
    left: -100%;
    width: 280px;
    height: calc(100vh - 121px); /* 109px top inset + 12px bottom inset */
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    max-height: none;
    min-height: auto;
    /* Reset desktop scrollbar styling for mobile */
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  /* Reset webkit scrollbar for mobile */
  .sidebar::-webkit-scrollbar {
    width: auto;
  }

  .sidebar::-webkit-scrollbar-track {
    background: auto;
  }

  .sidebar::-webkit-scrollbar-thumb {
    background: auto;
    border-radius: auto;
  }

  .sidebar::-webkit-scrollbar-thumb:hover {
    background: auto;
  }

  .sidebar.active {
    left: 0;
  }

  .sidebar.collapsed {
    width: 280px;
  }

  .sidebar.collapsed .sidebar-header h3,
  .sidebar.collapsed .sidebar-section h4,
  .sidebar.collapsed .sidebar-link span {
    display: block;
    opacity: 1;
    width: auto;
  }

  .sidebar-link i {
    margin-right: 12px;
    width: 20px;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    margin-top: 97px; /* Account for fixed header on mobile: 65px header-content + 32px navbar padding */
  }
}

/* Mobile phones - Additional optimizations */
@media (max-width: 480px) {
  .main-content {
    margin-top: 92px; /* Account for fixed header: 60px header-content + 32px navbar padding */
  }
  /* Responsive Header - Mobile */
  .header-content {
    min-height: 60px;
    padding: 0 10px;
  }

  .header-left {
    gap: 10px;
  }

  .logo img {
    height: 45px;
    max-width: 180px;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .user-name {
    font-size: 12px;
  }

  .user-info {
    gap: 4px;
  }

  .dropdown-toggle {
    font-size: 10px;
    padding: 4px;
  }

  .sidebar {
    width: 100vw;
    top: 104px; /* 60px header-content + 32px padding + 12px inset */
    height: calc(100vh - 116px); /* 104px top inset + 12px bottom inset */
  }

  .sidebar-link {
    padding: 16px 20px; /* Larger touch targets */
    min-height: 44px; /* Minimum touch target size */
    font-size: 1rem;
  }

  .sidebar-link i {
    font-size: 18px; /* Fixed pixel size - slightly larger for mobile but won't scale with zoom */
    width: 24px;
  }

  .sidebar-section h4 {
    font-size: 0.8rem;
    margin: 0 15px 12px 15px;
  }

  .sidebar-header {
    padding: 15px 20px;
  }

  .sidebar-header h3 {
    font-size: 1.1rem;
  }

  .sidebar-title {
    padding: 3px 8px;
    gap: 6px;
    border-radius: 7px;
  }

  .sidebar-title::before {
    width: 10px;
    height: 10px;
    border-radius: 2px;
  }
}

/* Very small phones */
@media (max-width: 320px) {
  /* Responsive Header - Very Small Mobile */
  .header-content {
    min-height: 55px;
    padding: 0 8px;
  }

  .header-left {
    gap: 8px;
  }

  .logo img {
    height: 40px;
    max-width: 160px;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .user-name {
    font-size: 11px;
  }

  .user-info {
    gap: 3px;
  }

  .dropdown-toggle {
    font-size: 9px;
    padding: 3px;
  }

  .sidebar {
    top: 99px; /* 55px header-content + 32px padding + 12px inset */
    height: calc(100vh - 99px); /* 99px top inset + 12px bottom inset */
  }

  .main-content {
    margin-top: 87px; /* Account for fixed header on very small mobile: 55px header-content + 32px navbar padding */
  }

  .sidebar-link {
    padding: 14px 15px;
    font-size: 0.9rem;
  }

  .sidebar-link i {
    font-size: 1rem;
    width: 20px;
  }

  .sidebar-section h4 {
    font-size: 0.75rem;
    margin: 0 12px 10px 12px;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .sidebar {
    height: 100vh;
    top: 0;
  }

  .sidebar-content {
    padding: 15px 0;
  }

  .sidebar-link {
    padding: 10px 20px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .login-container {
    padding: 20px 15px;
  }

  .login-card {
    padding: 30px 25px;
    border-radius: 8px;
  }

  .login-footer {
    margin-top: 25px;
    padding-top: 15px;
    font-size: 0.7rem;
  }

  .login-logo h2 {
    font-size: 1.4rem;
  }

  .login-header h3 {
    font-size: 0.9rem;
  }

  .form-control {
    padding: 14px 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .login-btn {
    padding: 16px;
    font-size: 16px;
    min-height: 44px; /* Better touch target */
  }

  .checkbox-label {
    font-size: 13px;
  }

  .forgot-link {
    font-size: 13px;
  }
}

/* Very small phones */
@media (max-width: 320px) {
  .login-container {
    padding: 15px 10px;
  }

  .login-card {
    padding: 20px 10px;
  }

  .login-logo h2 {
    font-size: 1.2rem;
  }

  .login-header h3 {
    font-size: 0.8rem;
  }

  .login-footer {
    margin-top: 20px;
    padding-top: 12px;
    font-size: 0.65rem;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .login-container {
    padding: 20px 10px;
  }

  .login-card {
    max-width: 350px;
    padding: 25px 20px;
  }

  .login-footer {
    margin-top: 20px;
    padding-top: 15px;
  }
}
/* Alert System - Now externalized to assets/css/alerts.css */
/* Fixed Height Scrollable Table */
.students-table-wrapper {
  height: 500px; /* Fixed height for desktop */
  overflow-y: auto; /* Vertical scroll */
  border: 1px solid var(--light-blue-gray);
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.students-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.students-table-wrapper::-webkit-scrollbar-track {
  background: var(--very-light-off-white);
  border-radius: 4px;
}

.students-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--light-blue-gray);
  border-radius: 4px;
}

.students-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--medium-muted-blue);
}

/* Sticky table header */
.students-table thead {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.students-table thead th {
  background: white;
  border-bottom: 2px solid var(--light-blue-gray);
  font-weight: 600;
  color: var(--darker-saturated-blue);
  padding: 12px 8px;
  text-align: left;
  position: sticky;
  top: 0;
}

/* Table body styling */
.students-table tbody tr {
  border-bottom: 1px solid var(--very-light-off-white);
  transition: background-color 0.2s ease;
}

.students-table tbody tr:hover {
  background-color: var(--very-light-cool-white);
}

.students-table tbody td {
  padding: 12px 8px;
  vertical-align: middle;
}

/* Responsive heights for different screen sizes */
@media (max-width: 1200px) {
  .students-table-wrapper {
    height: 450px; /* Slightly smaller for medium screens */
  }
}

@media (max-width: 992px) {
  .students-table-wrapper {
    height: 400px; /* Medium height for tablets */
  }
}

/* Mobile Card-Based Table Layout for Student Management */
@media (max-width: 768px) {
  .students-table-wrapper {
    height: auto;
    max-height: 500px;
    overflow-y: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0 4px;
  }

  /* Hide table header on mobile */
  .students-table thead {
    display: none;
  }

  /* Transform table rows into cards */
  .students-table tbody {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .students-table tbody tr {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--light-blue-gray);
    border-radius: 4px;
    padding: 8px 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
    margin: 0.1rem;
  }

  .students-table tbody tr:hover {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Card content layout */
  .students-table tbody td {
    /* display: flex; */
    padding: 4px 6px;
    border: none;
    font-size: 13px;
    align-items: flex-start;
    line-height: 1.4;
    margin: 0.1rem;
  }

  /* Checkbox column */
  .students-table tbody td.checkbox-column {
    order: -1;
    padding: 6px 8px 4px 8px;
    border-bottom: 1px solid var(--very-light-off-white);
    margin-bottom: 4px;
    justify-content: flex-end;
  }

  .students-table tbody td.checkbox-column input[type="checkbox"],
  .students-table tbody td.checkbox-column input.faculty-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }

  /* Label-value pairs */
  .students-table tbody td:not(.checkbox-column):not(.action-buttons)::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--darker-saturated-blue);
    min-width: 85px;
    max-width: 85px;
    margin-right: 6px;
    font-size: 12px;
    flex-shrink: 0;
  }

  /* Value content should wrap if needed */
  .students-table tbody td:not(.checkbox-column):not(.action-buttons) {
    word-break: break-word;
    flex: 1;
  }

  /* Action buttons container */
  .students-table tbody td.action-buttons {
    padding: 6px 0 0 0;
    border-top: 1px solid var(--very-light-off-white);
    margin-top: 4px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .students-table tbody td.action-buttons .action-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4px;
    width: 100%;
    flex-wrap: wrap;
  }

  .students-table tbody td.action-buttons .btn-icon {
    padding: 5px 7px;
    font-size: 13px;
    min-width: 32px;
    height: 32px;
  }

  /* Status badges styling - optimized for mobile */
  .students-table tbody td .status-badge {
    font-size: 10px;
    padding: 2px 6px;
    line-height: 1.3;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .students-table-wrapper {
    max-height: 400px;
    gap: 5px;
    padding: 0 2px;
  }

  .students-table tbody {
    gap: 5px;
  }

  .students-table tbody tr {
    padding: 6px 8px;
    gap: 0;
    border-radius: 3px;
  }

  .students-table tbody td {
    padding: 3px 5px;
    font-size: 12px;
    line-height: 1.35;
  }

  .students-table tbody td:not(.checkbox-column):not(.action-buttons)::before {
    min-width: 70px;
    max-width: 70px;
    font-size: 11px;
    margin-right: 5px;
    line-height: 1.35;
  }

  .students-table tbody td.checkbox-column {
    padding: 5px 6px 3px 6px;
    margin-bottom: 3px;
  }

  .students-table tbody td.checkbox-column input[type="checkbox"],
  .students-table tbody td.checkbox-column input.faculty-checkbox {
    width: 16px;
    height: 16px;
  }

  .students-table tbody td.action-buttons {
    padding: 5px 0 0 0;
    margin-top: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .students-table tbody td.action-buttons .action-buttons {
    gap: 3px;
  }

  .students-table tbody td.action-buttons .btn-icon {
    padding: 4px 6px;
    font-size: 12px;
    min-width: 30px;
    height: 30px;
  }

  .students-table tbody td .status-badge {
    font-size: 9px;
    padding: 2px 5px;
    line-height: 1.2;
    border-radius: 8px;
  }
}

/* Ensure table container doesn't interfere */
.table-responsive {
  overflow: visible;
}

/* Smooth scrolling for better UX */
.students-table-wrapper {
  scroll-behavior: smooth;
}

/* Table Controls */
.table-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: white;
  border-bottom: 1px solid var(--light-blue-gray);
  border-radius: 8px 8px 0 0;
}

.table-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.scroll-to-top-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  border: 1px solid var(--medium-muted-blue);
  color: var(--medium-muted-blue);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.scroll-to-top-btn:hover {
  background: var(--medium-muted-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(81, 134, 177, 0.3);
}

/* Responsive table controls */
@media (max-width: 768px) {
  .table-header-section {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 12px 15px;
  }

  .table-header-section .bulk-controls {
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .table-header-section .bulk-buttons {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  /* Make all primary action buttons full width on mobile */
  .bulk-controls > .btn:not(.bulk-buttons .btn) {
    width: 100%;
    margin-bottom: 8px;
  }

  /* Make sure button groups inside bulk-controls are full width */
  .bulk-controls > div {
    width: 100%;
  }

  .selection-counter-display {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
  }

  .table-controls {
    justify-content: center;
    width: 100%;
  }

  .scroll-to-top-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: 100%;
  }
}

/* Staff Management Styles */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--medium-muted-blue);
  color: white;
}

.stat-content h3 {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
  font-weight: 500;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--deep-navy-blue);
  margin: 0;
}

.quick-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.quick-actions .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.search-filters {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
  box-shadow: 0 0 0 3px rgba(81, 134, 177, 0.1);
}

.search-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.filters {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filters select {
  padding: 10px 15px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  min-width: 150px;
  transition: border-color 0.2s ease;
}

.filters select:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
}

.staff-cards-container {
  margin-bottom: 30px;
}

.staff-section {
  margin-bottom: 40px;
}

.staff-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--deep-navy-blue);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-section h3 i {
  color: var(--medium-muted-blue);
}

.staff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.staff-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #f0f0f0;
}

.staff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.staff-card-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.staff-card-header.special {
  background: var(--bright-golden-yellow);
  border-bottom-color: #b3d9f2;
}

.staff-card-header.regular {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom-color: #dee2e6;
}

.status-indicator {
  font-size: 1.2rem;
  color: var(--deep-navy-blue);
}

.status-indicator i {
  color: var(--deep-navy-blue);
}

.employee-id {
  font-family: "Courier New", monospace;
  font-weight: 600;
  color: var(--deep-navy-blue);
  font-size: 0.9rem;
}

.staff-card-body {
  padding: 20px;
}

.staff-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-navy-blue);
  margin-bottom: 8px;
}

.staff-position {
  font-size: 0.95rem;
  color: var(--medium-muted-blue);
  font-weight: 500;
  margin-bottom: 5px;
}

.staff-department {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0;
}

.staff-card-actions {
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.staff-card-actions .btn {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-outline-primary {
  background: var(--bright-golden-yellow);
  border: 1px solid var(--bright-golden-yellow);
  color: var(--dark-primary);
}

.btn-outline-primary:hover {
  background: var(--bright-golden-yellow);
  color: white;
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid #dc3545;
  color: #dc3545;
}

.btn-outline-danger:hover {
  background: #dc3545;
  color: white;
}

.essential-note {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-info {
  font-size: 0.9rem;
  color: #666;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-numbers {
  display: flex;
  gap: 5px;
}

.page-number {
  padding: 8px 12px;
  border: 1px solid #e1e5e9;
  background: white;
  color: #666;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.page-number:hover {
  background: var(--very-light-cool-white);
  border-color: var(--medium-muted-blue);
  color: var(--medium-muted-blue);
}

.page-number.active {
  background: var(--medium-muted-blue);
  color: white;
  border-color: var(--medium-muted-blue);
}

.pagination-btn {
  padding: 8px 15px;
  border: 1px solid #e1e5e9;
  background: white;
  color: #666;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--very-light-cool-white);
  border-color: var(--medium-muted-blue);
  color: var(--medium-muted-blue);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Design for Staff Management */
@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .quick-actions {
    flex-direction: column;
  }

  .quick-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters select {
    width: 100%;
  }

  .staff-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .pagination-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 15px;
  }

  .staff-card {
    margin: 0 10px;
  }

  .staff-card-actions {
    flex-direction: column;
    gap: 8px;
  }

  .staff-card-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  margin-right: 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
/* Show mobile menu toggle only on mobile devices */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide desktop sidebar toggle on mobile */
  .sidebar-toggle {
    display: none;
  }
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Sidebar Backdrop for Mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  cursor: pointer;
}

/* Mobile sidebar backdrop - Only for mobile sidebar overlay */
@media (max-width: 768px) {
  .sidebar-backdrop {
    display: none;
    pointer-events: auto; /* Enable pointer events on mobile */
  }

  .sidebar-backdrop.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

/* Sector Badge Styles */
.sector-badge {
  background: linear-gradient(
    135deg,
    var(--darker-saturated-blue) 0%,
    var(--deep-navy-blue) 100%
  );
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0;
  box-shadow: 0 2px 4px rgba(12, 85, 145, 0.3);
}

.sector-badge i {
  font-size: 10px;
}

/* Program Head Department Chips Styles - Simple Bullets */
.ph-dept-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
}

.ph-dept-chips .chip {
  color: var(--deep-navy-blue);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 12px;
}

.ph-dept-chips .chip::before {
  content: "•";
  color: var(--medium-muted-blue);
  font-size: 14px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.ph-dept-chips .chip.primary::before {
  color: var(--bright-golden-yellow);
  font-weight: bold;
}

.ph-dept-chips .chip.primary {
  color: var(--deep-navy-blue);
  font-weight: 600;
}

/* Coverage Strip Enhancements */
.coverage-item {
  transition: all 0.2s ease;
}

.coverage-item:hover {
  background: var(--very-light-off-white) !important;
  border-color: var(--medium-muted-blue) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(81, 142, 177, 0.2);
}

/* Unassigned Drawer Enhancements */
#unassignedDrawer {
  transition: all 0.3s ease;
}

#unassignedList .btn {
  transition: all 0.2s ease;
}

#unassignedList .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(81, 142, 177, 0.3);
}

/* Staff Card Enhancements */
.staff-card {
  transition: all 0.2s ease;
}

.staff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Clearance Management Styles */
.active-period-status {
  background: linear-gradient(
    135deg,
    var(--darker-saturated-blue),
    var(--deep-navy-blue)
  );
  color: white;
  margin-bottom: 30px;
}

.active-period-status .status-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.active-period-status .status-info h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.active-period-status .status-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
}

.period-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.stat-item i {
  color: var(--bright-golden-yellow);
}

.status-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.clearance-management-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.management-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
}

.signatory-management-section {
  border-left: 4px solid var(--medium-muted-blue);
}

/* Admin Notice Styling */
.admin-notice {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.notice-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notice-content i {
  color: #856404;
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.notice-text {
  color: #856404;
  font-size: 0.95rem;
  line-height: 1.5;
}

.notice-text strong {
  color: #6c5ce7;
  font-weight: 600;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-header h3 {
  color: var(--deep-navy-blue);
  font-size: 1.3rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h3 i {
  color: var(--medium-muted-blue);
}

.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section-actions .btn {
  font-size: 0.9rem;
  padding: 8px 16px;
}

/* School Year Navigation */
.school-year-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  padding: 15px;
  background: var(--very-light-cool-white);
  border-radius: 8px;
  border: 1px solid var(--light-blue-gray);
}

.nav-arrow {
  background: white;
  border: none; /*1px solid var(--light-blue-gray)*/
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--medium-muted-blue);
}

.nav-arrow:hover {
  background: var(--medium-muted-blue);
  color: white;
  transform: scale(1.1);
}

.nav-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #ccc;
}

.nav-arrow:disabled:hover {
  transform: none;
  background: #f5f5f5;
  color: #ccc;
}

.current-year-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-navy-blue);
}

.year-status {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
}

.year-status.current {
  background: var(--medium-muted-blue);
  color: white;
}

.year-status.completed {
  background: #28a745;
  color: white;
}

.years-terms-container {
  margin-top: 20px;
}

.school-year-card {
  background: var(--very-light-cool-white);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--light-blue-gray);
}

.year-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.year-header h4 {
  color: var(--deep-navy-blue);
  font-size: 1.2rem;
  margin: 0;
}

.year-actions {
  display: flex;
  gap: 8px;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.term-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--light-blue-gray);
  transition: all 0.3s ease;
}

.term-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.term-item.active {
  border-color: var(--bright-golden-yellow);
  background: linear-gradient(
    135deg,
    rgba(231, 192, 29, 0.1),
    rgba(231, 192, 29, 0.05)
  );
}

.term-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.term-name {
  font-weight: 600;
  color: var(--deep-navy-blue);
}

.term-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.term-status.active {
  background: var(--bright-golden-yellow);
  color: var(--deep-navy-blue);
}

.term-status.inactive {
  background: var(--light-blue-gray);
  color: var(--medium-muted-blue);
}

.term-actions {
  display: flex;
  gap: 8px;
}

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.quick-stats-grid .stat-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.quick-stats-grid .stat-card:hover {
  transform: translateY(-2px);
}

.quick-stats-grid .stat-content h3 {
  font-size: 1.8rem;
  color: var(--deep-navy-blue);
  margin-bottom: 5px;
}

.quick-stats-grid .stat-content p {
  color: var(--medium-muted-blue);
  font-weight: 600;
  margin-bottom: 5px;
}

.stat-detail {
  font-size: 0.85rem;
  color: #666;
}

.department-performance {
  background: var(--very-light-cool-white);
  border-radius: 8px;
  padding: 20px;
}

.department-performance h4 {
  color: var(--deep-navy-blue);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.performance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.performance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border-radius: 4px;
  border-left: 3px solid var(--medium-muted-blue);
}

.dept-name {
  font-weight: 500;
  color: var(--deep-navy-blue);
}

.dept-stats {
  font-weight: 600;
  color: var(--medium-muted-blue);
}

.signatory-management-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.signatory-section {
  background: var(--very-light-cool-white);
  border-radius: 8px;
  padding: 20px;
  height: 500px;
  display: flex;
  flex-direction: column;
}

.signatory-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.signatory-section-title {
  flex: 1;
}

.signatory-settings-btn {
  background: none;
  border: none;
  color: var(--medium-muted-blue);
  font-size: 1.2rem;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signatory-settings-btn:hover {
  background: rgba(81, 134, 177, 0.1);
  color: var(--deep-navy-blue);
  transform: scale(1.1);
}

.signatory-settings-btn:active {
  transform: scale(0.95);
}

.signatory-section h4 {
  color: var(--deep-navy-blue);
  margin-bottom: 10px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.signatory-section h4 i {
  color: var(--medium-muted-blue);
}

.section-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.signatory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  flex: 1;
  overflow: hidden;
}

.signatory-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--light-blue-gray);
  transition: all 0.3s ease;
}

.signatory-item:hover {
  border-color: var(--medium-muted-blue);
  background: rgba(81, 134, 177, 0.05);
}

.signatory-item.required-first {
  border-left: 4px solid var(--bright-golden-yellow);
  background: linear-gradient(
    135deg,
    rgba(231, 192, 29, 0.1),
    rgba(231, 192, 29, 0.05)
  );
}

.signatory-item.required-last {
  border-left: 4px solid var(--darker-saturated-blue);
  background: linear-gradient(
    135deg,
    rgba(23, 93, 151, 0.1),
    rgba(23, 93, 151, 0.05)
  );
}

.signatory-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--medium-muted-blue);
}

.signatory-item label {
  flex: 1;
  font-weight: 500;
  color: var(--deep-navy-blue);
  cursor: pointer;
}

.signatory-item.required-first label,
.signatory-item.required-last label {
  font-weight: 600;
}

.add-signatory {
  margin-top: 15px;
}

.assignments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.assignment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--light-blue-gray);
}

.position-name {
  font-weight: 600;
  color: var(--deep-navy-blue);
}

.staff-name {
  color: var(--medium-muted-blue);
  font-size: 0.9rem;
}

.export-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.export-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.export-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-weight: 500;
  color: var(--deep-navy-blue);
  font-size: 0.9rem;
}

/* Responsive Design for Clearance Management */
@media (max-width: 1200px) {
  .clearance-management-grid {
    grid-template-columns: 1fr;
  }

  .signatory-management-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .active-period-status .status-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .period-stats {
    flex-direction: column;
    gap: 10px;
  }

  .status-actions {
    width: 100%;
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-actions {
    width: 100%;
    justify-content: center;
  }

  .term-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .term-actions {
    width: 100%;
    justify-content: center;
  }

  .quick-stats-grid {
    grid-template-columns: 1fr;
  }

  .assignments-grid {
    grid-template-columns: 1fr;
  }

  .export-buttons {
    flex-direction: column;
  }

  .export-filters {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .management-section {
    padding: 15px;
  }

  .school-year-card {
    padding: 15px;
  }

  .year-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .year-actions {
    width: 100%;
    justify-content: center;
  }

  .signatory-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .assignment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Admin Dashboard Styles */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid var(--light-blue-gray);
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--medium-muted-blue);
  text-decoration: none;
  color: inherit;
}

.action-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--medium-muted-blue),
    var(--darker-saturated-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.action-content h4 {
  color: var(--deep-navy-blue);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.action-content p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  padding: 1rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--light-blue-gray);
  transition: all 0.3s ease;
}

.activity-item:hover {
  border-color: var(--medium-muted-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--very-light-cool-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-muted-blue);
  font-size: 1rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content h4 {
  color: var(--deep-navy-blue);
  margin-bottom: 5px;
  font-size: 1rem;
}

.activity-content p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.activity-time {
  color: #999;
  font-size: 0.8rem;
  font-style: italic;
}

/* Responsive Design for Admin Dashboard */
@media (max-width: 768px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    flex-direction: column;
    text-align: center;
  }

  .action-icon {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .activity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .activity-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .action-card {
    padding: 15px;
  }

  .action-content h4 {
    font-size: 1rem;
  }

  .action-content p {
    font-size: 0.85rem;
  }

  .activity-item {
    padding: 12px;
  }

  .activity-content h4 {
    font-size: 0.95rem;
  }

  .activity-content p {
    font-size: 0.85rem;
  }

  .activity-time {
    font-size: 0.75rem;
  }
}

/* Updated Signatory Management Styles */
.signatory-group {
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.signatory-group::-webkit-scrollbar {
  width: 6px;
}

.signatory-group::-webkit-scrollbar-track {
  background: var(--light-blue-gray);
  border-radius: 3px;
}

.signatory-group::-webkit-scrollbar-thumb {
  background: var(--medium-muted-blue);
  border-radius: 3px;
}

.signatory-group::-webkit-scrollbar-thumb:hover {
  background: var(--darker-saturated-blue);
}

.group-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--medium-muted-blue);
  margin-bottom: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--light-blue-gray);
}

.group-title.required-first {
  color: var(--bright-golden-yellow);
  border-bottom-color: var(--bright-golden-yellow);
}

.group-title.required-last {
  color: var(--darker-saturated-blue);
  border-bottom-color: var(--darker-saturated-blue);
}

.signatory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--light-blue-gray);
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.signatory-item:hover {
  border-color: var(--medium-muted-blue);
  background: rgba(81, 134, 177, 0.05);
}

.signatory-item.required-first {
  border-left: 4px solid var(--bright-golden-yellow);
  background: linear-gradient(
    135deg,
    rgba(231, 192, 29, 0.1),
    rgba(231, 192, 29, 0.05)
  );
}

.signatory-item.required-last {
  border-left: 4px solid var(--darker-saturated-blue);
  background: linear-gradient(
    135deg,
    rgba(23, 93, 151, 0.1),
    rgba(23, 93, 151, 0.05)
  );
}

.signatory-item.optional {
  border-left: 4px solid var(--medium-muted-blue);
}

.signatory-name {
  font-weight: 500;
  color: var(--deep-navy-blue);
  flex: 1;
}

.remove-signatory {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.remove-signatory:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #c82333;
  transform: scale(1.1);
}

.remove-signatory:active {
  transform: scale(0.95);
}

.add-signatory-section {
  margin-top: 25px;
  padding: 15px;
  background: var(--very-light-cool-white);
  border-radius: 8px;
  border: 1px solid var(--light-blue-gray);
}

.add-title {
  color: var(--deep-navy-blue);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.add-signatory-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.signatory-dropdown {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--light-blue-gray);
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  color: var(--deep-navy-blue);
  transition: border-color 0.3s ease;
}

.signatory-dropdown:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
  box-shadow: 0 0 0 3px rgba(81, 134, 177, 0.1);
}

.add-signatory-btn {
  padding: 10px 15px;
  background: var(--bright-golden-yellow);
  color: var(--deep-navy-blue);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
}

.add-signatory-btn:hover {
  background: #d4b018;
  transform: scale(1.05);
}

.add-signatory-btn:active {
  transform: scale(0.95);
}

/* Responsive Design for Updated Signatory Management */
@media (max-width: 768px) {
  .add-signatory-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .signatory-dropdown {
    width: 100%;
  }

  .add-signatory-btn {
    width: 100%;
    height: 45px;
  }

  .signatory-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .remove-signatory {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .signatory-item {
    padding: 12px;
  }

  .signatory-name {
    font-size: 0.9rem;
  }

  .remove-signatory {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .add-signatory-section {
    padding: 12px;
  }

  .add-title {
    font-size: 0.95rem;
  }
}

/* Export Section Styles */
.export-section {
  text-align: center;
  padding: 20px;
  background: var(--very-light-cool-white);
  border-radius: 8px;
  border: 1px solid var(--light-blue-gray);
}

.export-section .section-description {
  color: var(--medium-muted-blue);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.export-btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(81, 134, 177, 0.2);
}

.export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(81, 134, 177, 0.3);
}

.export-btn:active {
  transform: translateY(0);
}

.export-btn i {
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Mixed Accordion + Card Design for Clearance Management */
.clearance-management-mixed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.clearance-management-tabs {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--light-blue-gray);
  box-shadow: 0 10px 30px rgba(29, 53, 87, 0.06);
  padding: 20px;
}

.tab-navigation {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 22px;
  background: var(--very-light-cool-white);
  border-radius: 12px;
  padding: 6px;
}

.tab-navigation .tab-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.tab-navigation .tab-link i {
  font-size: 1rem;
  color: var(--medium-muted-blue);
  transition: inherit;
}

.tab-navigation .tab-link.active,
.tab-navigation .tab-link:hover {
  background: #ffffff;
  color: var(--deep-navy-blue);
  box-shadow: 0 6px 18px rgba(29, 53, 87, 0.08);
}

.tab-navigation .tab-link.active i,
.tab-navigation .tab-link:hover i {
  color: var(--deep-navy-blue);
}

.tab-panels {
  position: relative;
}

.tab-panel {
  display: none;
  animation: fadeInTab 0.35s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.tab-panel-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-navy-blue);
  margin-bottom: 6px;
}

.tab-panel-header h3 i {
  color: var(--medium-muted-blue);
  margin-right: 8px;
}

.tab-panel-header p {
  color: #54667a;
  font-size: 0.95rem;
  margin: 0;
}

.tab-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-panel-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.graduated-panel-header,
.resigned-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--light-blue-gray);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(29, 53, 87, 0.05);
  margin-bottom: 24px;
}

.graduated-panel-info h3,
.resigned-panel-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-navy-blue);
  margin-bottom: 6px;
}

.graduated-panel-info h3 i,
.resigned-panel-info h3 i {
  color: var(--medium-muted-blue);
  margin-right: 8px;
}

.graduated-panel-info p,
.resigned-panel-info p {
  color: var(--soft-slate-gray);
  font-size: 0.95rem;
  margin: 0;
  max-width: 560px;
}

.graduated-panel-meta,
.resigned-panel-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.graduated-overview,
.resigned-overview {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(81, 134, 177, 0.12),
    rgba(12, 85, 145, 0.12)
  );
  border: 1px solid rgba(81, 134, 177, 0.2);
  min-width: 160px;
}

.overview-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--medium-muted-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.overview-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--deep-navy-blue);
}

.tab-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.tab-summary-grid.single {
  grid-template-columns: repeat(1, minmax(0, 220px));
  max-width: 280px;
}

.tab-summary-grid.sector {
  grid-template-columns: repeat(1, minmax(0, 220px));
  margin: 18px 0;
}

.tab-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--light-blue-gray);
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(29, 53, 87, 0.05);
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.summary-icon.success {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.summary-icon.info {
  background: linear-gradient(135deg, var(--medium-muted-blue), #1f4f8a);
}

.summary-icon.warning {
  background: linear-gradient(135deg, #fbb034, #ffdd00);
  color: var(--deep-navy-blue);
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-navy-blue);
}

.summary-label {
  font-size: 0.9rem;
  color: #54667a;
}

.tab-table-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--light-blue-gray);
  box-shadow: 0 10px 24px rgba(29, 53, 87, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tab-table-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--light-blue-gray);
  background: var(--very-light-cool-white);
}

.tab-table-card .card-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-navy-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.tab-table-card .card-header h4 i {
  color: var(--medium-muted-blue);
}

.tab-table-card .card-actions {
  display: flex;
  gap: 10px;
}

.tab-table-card .card-content {
  padding: 0;
  width: 100%;
}

.tab-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.tab-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

@media (max-width: 1024px) {
  .tab-table {
    min-width: 640px;
  }
}

@media (max-width: 768px) {
  .tab-table {
    min-width: 560px;
  }
}

@media (max-width: 600px) {
  .tab-table {
    min-width: 520px;
  }
}
.tab-table th,
.tab-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--light-blue-gray);
  font-size: 0.92rem;
  color: var(--deep-navy-blue);
}

.tab-table th {
  font-weight: 700;
  background: var(--very-light-off-white);
}

.tab-table tbody tr:hover {
  background: var(--very-light-cool-white);
}

.tab-table td .btn {
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .graduated-sector-toolbar,
  .resigned-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .graduated-sector-overview,
  .resigned-sector-overview {
    flex: 1 1 100%;
    min-width: 0;
    align-items: flex-start;
  }
}

.resigned-table .resigned-name-cell {
  vertical-align: top;
  padding: 16px 18px;
}

.resigned-table .resigned-name-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resigned-table .resigned-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--deep-navy-blue);
}

.resigned-table .resigned-name-row .status-badge {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.resigned-table .resigned-name-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #6c757d;
}

.resigned-table .resigned-name-meta i {
  color: #7b8aa5;
}

.resigned-table .resigned-department-cell,
.resigned-table .resigned-employment-cell {
  color: #54667a;
  font-size: 0.92rem;
}

.resigned-table .resigned-department-cell span,
.resigned-table .resigned-employment-cell span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.resigned-table .resigned-actions-cell {
  /*text-align: center;*/
  width: 120px;
  padding: 14px 12px;
  white-space: nowrap;
}

.resigned-table .resigned-actions-cell .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-navy-blue);
  background: var(--bright-golden-yellow);
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.resigned-table .resigned-actions-cell .btn i {
  font-size: 0.9rem;
}

.resigned-table .resigned-actions-cell .btn:hover {
  color: var(--deep-navy-blue);
  background: rgba(84, 102, 122, 0.08);
  text-decoration: none;
}

.tab-table.resigned-table tbody tr.resigned-selected-row {
  background: var(--very-light-cool-white);
}

.empty-state-row td {
  padding: 40px 18px;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #54667a;
}

.empty-state i {
  font-size: 1.5rem;
  color: var(--medium-muted-blue);
}

.table-pagination {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--light-blue-gray);
  background: #f8f9fb;
  gap: 12px;
  flex-wrap: wrap;
}

.table-pagination .pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-pagination .pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--light-blue-gray);
  background: #fff;
  color: var(--medium-muted-blue);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.table-pagination .pagination-btn:hover:not([disabled]) {
  background: rgba(84, 102, 122, 0.1);
  color: var(--deep-navy-blue);
  border-color: var(--medium-muted-blue);
}

.table-pagination .pagination-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  background: #f1f3f6;
}

.table-pagination .pagination-info {
  font-size: 0.85rem;
  color: var(--medium-muted-blue);
  font-weight: 500;
}

.table-pagination .pagination-summary {
  font-size: 0.85rem;
  color: #6c757d;
}

.empty-state p {
  font-weight: 600;
  margin-bottom: 4px;
}

.empty-state span {
  font-size: 0.9rem;
  display: block;
}

.empty-state div {
  text-align: left;
}

.graduated-sector-tabs {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--very-light-cool-white);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 22px;
}

.graduated-sector-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.graduated-sector-tab i {
  color: var(--medium-muted-blue);
  transition: inherit;
}

.graduated-sector-tab.active,
.graduated-sector-tab:hover {
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(29, 53, 87, 0.08);
}

.graduated-sector-tab.active i,
.graduated-sector-tab:hover i {
  color: var(--deep-navy-blue);
}

.graduated-sector-panels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.graduated-sector-toolbar,
.resigned-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  width: 100%;
}

.graduated-sector-panel {
  display: none;
  animation: fadeInTab 0.35s ease;
}

.graduated-sector-panel.active {
  display: block;
}

.graduated-filters,
.resigned-filters {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1 1 100%;
}

.graduated-sector-overview,
.resigned-sector-overview {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(81, 134, 177, 0.2);
  background: #ffffff;
  min-width: 160px;
  flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(29, 53, 87, 0.05);
}

.graduated-filters .filter-group,
.resigned-filters .filter-group {
  display: flex;
  flex-direction: column;
  flex: 1 0 180px;
  min-width: 160px;
  max-width: 100%;
}

.graduated-filters label,
.resigned-filters label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-navy-blue);
  margin-bottom: 6px;
}

.graduated-filters select,
.resigned-filters select {
  border: 1px solid var(--light-blue-gray);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--deep-navy-blue);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.graduated-filters select:focus,
.resigned-filters select:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
  box-shadow: 0 0 0 3px rgba(81, 134, 177, 0.2);
}

.graduated-table tbody td .btn {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.graduated-student-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.graduated-student-name {
  font-weight: 600;
  color: var(--deep-navy-blue);
}

.graduated-student-number {
  font-size: 0.85rem;
  color: var(--soft-slate-gray);
}

@media (max-width: 1024px) {
  .graduated-sector-toolbar,
  .resigned-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .graduated-sector-overview,
  .resigned-sector-overview {
    flex: 1 1 100%;
    min-width: 0;
    align-items: flex-start;
  }

  .tab-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-summary-grid.single,
  .tab-summary-grid.sector {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .clearance-management-tabs {
    padding: 16px;
  }

  .graduated-filters .filter-group,
  .resigned-filters .filter-group {
    flex: 1 1 100%;
    min-width: 0;
  }

  .tab-navigation {
    flex-direction: column;
    padding: 8px;
  }

  .tab-navigation .tab-link {
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .tab-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-panel-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .tab-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-table-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tab-table {
    min-width: 100%;
  }

  .empty-state {
    flex-direction: column;
    text-align: center;
  }

  .empty-state div {
    text-align: center;
  }

  .graduated-sector-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .graduated-panel-header,
  .resigned-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .graduated-panel-meta,
  .resigned-panel-meta {
    width: 100%;
    justify-content: space-between;
  }

  .graduated-overview,
  .resigned-overview {
    align-items: flex-start;
  }

  .graduated-sector-tab {
    flex: 1;
    justify-content: center;
  }

  .graduated-filters,
  .resigned-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .graduated-filters .filter-group,
  .resigned-filters .filter-group {
    width: 100%;
  }

  .graduated-sector-toolbar,
  .resigned-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .graduated-sector-overview,
  .resigned-sector-overview {
    align-items: flex-start;
  }

  .resigned-summary {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .tab-summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-value {
    font-size: 1.3rem;
  }

  .tab-navigation .tab-link {
    font-size: 0.85rem;
  }

  .graduated-sector-tabs {
    flex-direction: column;
    padding: 8px;
  }

  .graduated-panel-meta,
  .resigned-panel-meta {
    align-items: stretch;
    gap: 12px;
  }

  .graduated-overview,
  .resigned-overview,
  .graduated-sector-overview,
  .resigned-sector-overview {
    width: 100%;
  }

  .graduated-sector-tab {
    width: 100%;
  }

  .resigned-summary {
    width: 100%;
  }
}

/* Management Cards */
.management-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.management-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--very-light-cool-white);
  border-bottom: 1px solid var(--light-blue-gray);
}

.card-header h3 {
  color: var(--background-light);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h3 i {
  color: var(--medium-muted-blue);
  font-size: 16px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-content {
  padding: 12px;
}

/* School Years Card Specific Styles */
.school-years-card .school-year-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  padding: 15px;
  background: var(--very-light-cool-white);
  border-radius: 8px;
  border: 1px solid var(--light-blue-gray);
}

.nav-arrow {
  background: white;
  border: none; /*1px solid var(--light-blue-gray)*/
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--medium-muted-blue);
}

.nav-arrow:hover {
  background: var(--medium-muted-blue);
  color: white;
  transform: scale(1.1);
}

.nav-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #ccc;
}

.nav-arrow:disabled:hover {
  transform: none;
  background: #f5f5f5;
  color: #ccc;
}

.current-year-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-navy-blue);
}

.year-actions {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.year-actions .btn {
  padding: 4px 8px;
  font-size: 11px;
}

.year-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--deep-navy-blue);
}

.year-status {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.year-status.current {
  background: var(--medium-muted-blue);
  color: white;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.term-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--very-light-cool-white);
  border-radius: 4px;
  border: 1px solid var(--light-blue-gray);
}

.term-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.term-actions {
  display: flex;
  gap: 4px;
}

.term-item.active {
  background: #e8f5e8;
  border-color: #4caf50;
}

.term-item.inactive {
  background: #f5f5f5;
  border-color: #ccc;
}

.term-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--deep-navy-blue);
}

.term-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.term-status.active {
  background: #4caf50;
  color: white;
}

.term-status.inactive {
  background: #9e9e9e;
  color: white;
}

/* Quick Statistics Card Specific Styles */
.quick-stats-card .compact-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.stat-label {
  color: var(--deep-navy-blue);
  font-weight: 500;
}

.stat-value {
  color: var(--medium-muted-blue);
  font-weight: 600;
}

.stat-separator {
  color: var(--light-blue-gray);
  margin: 0 4px;
}

/* Accordion Sections */
.accordion-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-section:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--very-light-cool-white);
  border-bottom: 1px solid var(--light-blue-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

.accordion-header:hover {
  background: #f8f9fa;
}

.accordion-header.active {
  background: var(--medium-muted-blue);
  color: white;
}

.accordion-header.active h3 {
  color: white;
}

.accordion-header.active h3 i {
  color: white;
}

.accordion-header h3 {
  color: var(--deep-navy-blue);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-header h3 i {
  color: var(--medium-muted-blue);
  font-size: 18px;
}

.accordion-icon {
  font-size: 14px;
  font-weight: 600;
  color: var(--medium-muted-blue);
  transition: all 0.3s ease;
}

.accordion-header.active .accordion-icon {
  color: white;
}

.accordion-content {
  display: block;
  transition: all 0.3s ease;
}

/* Signatory Card Styles */
.signatory-card {
  padding: 16px;
}

.signatory-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 8px;
}

.signatory-list::-webkit-scrollbar {
  width: 4px;
}

.signatory-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.signatory-list::-webkit-scrollbar-thumb {
  background: var(--medium-muted-blue);
  border-radius: 2px;
}

.signatory-list::-webkit-scrollbar-thumb:hover {
  background: var(--deep-navy-blue);
}

.signatory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: var(--very-light-cool-white);
  border-radius: 4px;
  border: 1px solid var(--light-blue-gray);
  transition: all 0.2s ease;
}

.signatory-item:hover {
  background: #f8f9fa;
  border-color: var(--medium-muted-blue);
}

.signatory-item.required-first {
  background: #fff3cd;
  border-color: #ffc107;
}

.signatory-item.required-last {
  background: #d1ecf1;
  border-color: #17a2b8;
}

.signatory-item.optional {
  background: white;
}

.signatory-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--deep-navy-blue);
}

.signatory-requirement {
  font-size: 11px;
  color: #6c757d;
  font-style: italic;
}
.remove-signatory {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  transition: all 0.2s ease;
  font-size: 12px;
}

.remove-signatory:hover {
  background: #dc3545;
  color: white;
}

.remove-signatory:active {
  transform: scale(0.95);
}

.signatory-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--light-blue-gray);
}

/* Export Section */
.export-section {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.export-btn {
  /* width: 100%; */
  max-width: 300px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--medium-muted-blue);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  /* min-height: 44px; */
}

.export-btn:hover {
  background: var(--deep-navy-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.export-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.export-btn i {
  font-size: 14px;
}
/* Mobile Responsive Design */
@media (max-width: 768px) {
  .clearance-management-mixed {
    gap: 12px;
  }

  .card-header {
    padding: 12px;
  }

  .card-content {
    padding: 12px;
  }

  .accordion-header {
    padding: 12px;
  }

  .accordion-header h3 {
    font-size: 14px;
  }

  .accordion-header h3 i {
    font-size: 16px;
  }

  .signatory-card {
    padding: 12px;
  }

  .signatory-item {
    padding: 6px 10px;
  }

  .signatory-name {
    font-size: 11px;
  }

  .signatory-requirement {
    font-size: 10px;
  }

  .remove-signatory {
    padding: 3px;
    font-size: 11px;
  }

  .signatory-actions {
    gap: 6px;
  }

  .signatory-actions .btn {
    font-size: 11px;
    padding: 6px 12px;
  }

  .export-btn {
    font-size: 12px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .accordion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: auto;
  }

  .accordion-header h3 {
    font-size: 13px;
  }

  .signatory-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .remove-signatory {
    align-self: flex-end;
  }

  .signatory-actions {
    flex-direction: column;
  }

  .signatory-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Ensure proper spacing and typography consistency */
.management-card,
.accordion-section {
  margin-bottom: 0;
}

/* Smooth transitions for all interactive elements */
.management-card,
.accordion-section,
.accordion-header,
.signatory-item,
.export-btn {
  transition: all 0.3s ease;
}

/* Focus states for accessibility */
.accordion-header:focus,
.export-btn:focus,
.remove-signatory:focus {
  outline: 2px solid var(--medium-muted-blue);
  outline-offset: 2px;
}

/* Loading states */
.management-card.loading,
.accordion-section.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success/error states for cards */
.management-card.success {
  border-left: 4px solid #28a745;
}

.management-card.error {
  border-left: 4px solid #dc3545;
}

.management-card.warning {
  border-left: 4px solid #ffc107;
}

/* Export Modal Responsive Fixes */
.clearance-export-modal .modal-content-area {
  max-height: 70vh;
  overflow-y: auto;
}

.clearance-export-modal .export-period-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.clearance-export-modal .period-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clearance-export-modal .field-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clearance-export-modal .date-range-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clearance-export-modal .data-selection-section {
  max-height: 200px;
  overflow-y: auto;
}

.clearance-export-modal .data-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clearance-export-modal .data-option {
  padding: 8px 12px;
  border: 1px solid var(--light-blue-gray);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.clearance-export-modal .data-option:hover {
  background: var(--very-light-cool-white);
}

.clearance-export-modal .data-option.selected {
  background: var(--medium-muted-blue);
  color: white;
  border-color: var(--medium-muted-blue);
}

/* Mobile Responsive for Export Modal */
@media (max-width: 768px) {
  .clearance-export-modal .modal-window {
    width: 95%;
    max-width: 400px;
    margin: 20px auto;
  }

  .clearance-export-modal .period-fields {
    gap: 8px;
  }

  .clearance-export-modal .field-row {
    gap: 6px;
  }

  .clearance-export-modal .data-selection-section {
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  .clearance-export-modal .modal-window {
    width: 98%;
    margin: 10px auto;
  }

  .clearance-export-modal .modal-title {
    font-size: 16px;
  }

  .clearance-export-modal .modal-supporting-text {
    font-size: 12px;
  }

  .clearance-export-modal .form-group label {
    font-size: 13px;
  }

  .clearance-export-modal .form-control {
    font-size: 14px;
    padding: 8px 10px;
  }

  .clearance-export-modal .data-option {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* Course Management Accent Colors and Design Consistency */

/* Page Header Accent */
.course-management-container .page-header {
  /* border-left: 4px solid var(--medium-muted-blue); */
  padding-left: 20px;
  margin-bottom: 30px;
  padding: 0 16px;
}

.course-management-container .page-title {
  color: var(--deep-navy-blue);
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.course-management-container .page-description {
  color: var(--medium-muted-blue);
  line-height: 1.4;
}

/* Quick Stats Card (Clearance Management Style) */
.course-management-container .quick-stats-card {
  /* border-left: 4px solid var(--medium-muted-blue); */
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.course-management-container .quick-stats-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  /* background: var(--medium-muted-blue); */
}

.course-management-container .quick-stats-card .card-header h3 {
  color: var(--deep-navy-blue);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.course-management-container .quick-stats-card .card-header h3 i {
  color: var(--medium-muted-blue);
  margin-right: 8px;
}

.course-management-container .compact-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  padding: 12px 0;
}

.course-management-container .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  background: var(--very-light-cool-white);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.course-management-container .stat-item:hover {
  background: white;
  border-color: var(--medium-muted-blue);
  box-shadow: 0 2px 8px rgba(12, 85, 145, 0.1);
}

.course-management-container .stat-item i {
  color: var(--medium-muted-blue);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.course-management-container .stat-item .stat-value {
  color: var(--deep-navy-blue);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 4px;
  line-height: 1;
}

.course-management-container .stat-item .stat-label {
  color: var(--medium-muted-blue);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Action Bar Card (Clearance Management Style) */
.course-management-container .action-bar-card {
  /* border-left: 4px solid var(--medium-muted-blue); */
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.course-management-container .action-bar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--medium-muted-blue);
}

.course-management-container .action-bar-card .card-header h3 {
  color: var(--deep-navy-blue);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.course-management-container .action-bar-card .card-header h3 i {
  color: var(--medium-muted-blue);
  margin-right: 8px;
}

.course-management-container .compact-search-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
}

.course-management-container .search-section {
  width: 100%;
}

.course-management-container .search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.course-management-container .search-icon {
  position: absolute;
  left: 12px;
  color: var(--medium-muted-blue);
  font-size: 0.9rem;
  z-index: 1;
}

.course-management-container .search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: white;
}

.course-management-container .search-input:focus {
  border-color: var(--medium-muted-blue);
  box-shadow: 0 0 0 2px rgba(12, 85, 145, 0.1);
  outline: none;
}

.course-management-container .actions-section {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.course-management-container .include-inactive-toggle {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  flex-shrink: 0;
}
.course-management-container .course-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  border: 1px solid #d6e4ff;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.course-management-container .course-toggle-label:hover {
  background-color: #e0ecff;
  box-shadow: 0 4px 8px rgba(23, 70, 162, 0.08);
}
.course-management-container .course-toggle-label input {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #1746a2;
}

.course-management-container .left-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.course-management-container .right-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.course-management-container .btn-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-width: auto;
  white-space: nowrap;
}

.course-management-container .btn-compact i {
  font-size: 0.8rem;
}

.course-management-container .btn-compact span {
  font-weight: 500;
}

/* Department Categories Card (Clearance Management Style) */
.course-management-container .tab-navigation-card {
  /* border-left: 4px solid var(--medium-muted-blue); */
  position: relative;
  overflow: hidden;
}

.course-management-container .tab-navigation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  /* background: var(--medium-muted-blue); */
}

.course-management-container .tab-navigation-card .card-header h3 {
  color: var(--deep-navy-blue);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-management-container .tab-navigation-card .card-header h3 i {
  color: var(--medium-muted-blue);
}

.course-management-container .compact-tab-navigation {
  display: flex;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  margin-bottom: 0;
}

.course-management-container .tab-navigation-card .card-content {
  padding: 0 24px 24px 24px;
  height: calc(100vh - 300px);
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0 0 8px 8px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* New Departments Scrollable Card */
.course-management-container .departments-scrollable-card {
  margin-top: 16px;
}

.course-management-container .departments-scrollable-card .card-content {
  padding: 24px;
  height: calc(100vh - 400px);
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Responsive Height Adjustments */
@media (max-width: 1199px) {
  .course-management-container .departments-scrollable-card .card-content {
    height: calc(100vh - 350px);
    max-height: 450px;
  }
}

@media (max-width: 767px) {
  .course-management-container .departments-scrollable-card .card-content {
    height: calc(100vh - 300px);
    max-height: 350px;
    padding: 16px;
  }
}

/* Brand-Consistent Scrollbar Styling */
.course-management-container
  .departments-scrollable-card
  .card-content::-webkit-scrollbar {
  width: 8px;
}

.course-management-container
  .departments-scrollable-card
  .card-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.course-management-container
  .departments-scrollable-card
  .card-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.course-management-container
  .departments-scrollable-card
  .card-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Firefox Scrollbar Styling */
.course-management-container .departments-scrollable-card .card-content {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.course-management-container .compact-tab-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.course-management-container .compact-tab-button i {
  font-size: 0.8rem;
  flex-shrink: 0;
}

.course-management-container .compact-tab-button span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-management-container .compact-tab-button.active {
  background: var(--darker-saturated-blue);
  color: white;
  font-weight: 600;
}

.course-management-container .compact-tab-button:hover:not(.active) {
  background: #e9ecef;
  color: #495057;
}

/* Department Cards (Compact Staff-Style) */
.course-management-container .department-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.2s ease;
  max-width: 300px;
  position: relative;
}

/* Ensure proper spacing in scrollable area */
.course-management-container .departments-container {
  padding: 8px 0;
}

.course-management-container .department-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.course-management-container .department-card-header {
  background: var(--bright-golden-yellow);
  color: var(--deep-navy-blue);
  /* padding: 6px 10px; */
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-management-container .department-icon {
  font-size: 0.8rem;
}

.course-management-container .department-id {
  font-weight: 600;
  font-size: 0.75rem;
}

.course-management-container .department-card-body {
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-management-container .department-name {
  color: var(--deep-navy-blue);
  margin: 0 0 4px 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.1;
  flex-shrink: 0;
}

.course-management-container .department-courses {
  color: var(--medium-muted-blue);
  margin: 0 0 2px 0;
  font-size: 0.7rem;
  font-weight: 500;
  flex-shrink: 0;
}

.course-management-container .department-status {
  color: var(--success-color);
  margin: 0;
  font-size: 0.65rem;
  font-weight: 500;
  flex-shrink: 0;
}

.course-management-container .department-card-actions {
  /* padding: 6px 10px; */
  padding: 12px;
  border-top: 1px solid var(--light-blue-gray);
  display: flex;
  /* gap: 4px; */
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.course-management-container .department-card-actions .btn {
  flex: 1;
  min-width: 70px;
  justify-content: center;
  padding: 4px 6px;
  font-size: 0.7rem;
  background: white;
}

/* Course Items (Clearance Management Style) */
.course-management-container .course-item {
  border-left: 3px solid var(--light-blue-gray);
  transition: all 0.2s ease;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--background-light);
}
.course-management-container .course-item:hover {
  border-left-color: var(--medium-muted-blue);
  background: var(--very-light-cool-white);
  border-color: var(--medium-muted-blue);
}

.course-management-container .course-code {
  color: var(--medium-muted-blue);
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-management-container .course-code i {
  color: var(--medium-muted-blue);
  font-size: 0.9rem;
}

.course-management-container .course-name {
  color: var(--deep-navy-blue);
  font-size: 0.9rem;
}

/* Button Accent Colors */
.course-management-container .btn-primary {
  background: var(--medium-muted-blue);
  border-color: var(--medium-muted-blue);
  color: white;
}

.course-management-container .btn-primary:hover {
  background: var(--deep-navy-blue);
  border-color: var(--deep-navy-blue);
}

.course-management-container .btn-outline {
  color: var(--medium-muted-blue);
  border-color: var(--medium-muted-blue);
  background: white;
}

.course-management-container .btn-outline:hover {
  background: var(--medium-muted-blue);
  color: white;
}

.course-management-container .btn-secondary {
  background: var(--deep-navy-blue);
  border-color: var(--deep-navy-blue);
  color: white;
}

.course-management-container .btn-secondary:hover {
  background: var(--medium-muted-blue);
  border-color: var(--medium-muted-blue);
}

/* Action Buttons Accent */
.course-management-container .btn-icon {
  color: var(--medium-muted-blue);
  border-color: var(--medium-muted-blue);
  background: white;
}
.course-management-container .btn-icon:hover {
  background: var(--medium-muted-blue);
  color: white;
}

.course-management-container .btn-icon.edit-btn {
  color: var(--medium-muted-blue);
  border-color: var(--medium-muted-blue);
}

.course-management-container .btn-icon.edit-btn:hover {
  background: var(--medium-muted-blue);
  color: white;
}

.course-management-container .btn-icon.delete-btn {
  color: #dc3545;
  border-color: #dc3545;
}

.course-management-container .btn-icon.delete-btn:hover {
  background: #dc3545;
  color: white;
}

/* Department Actions Accent */
.course-management-container .department-actions .btn {
  border-color: var(--medium-muted-blue);
  color: var(--medium-muted-blue);
  background: white;
}

.course-management-container .department-actions .btn:hover {
  background: var(--medium-muted-blue);
  color: white;
}

/* Course Actions Accent */
.course-management-container .course-actions .btn {
  border-color: var(--medium-muted-blue);
  color: var(--medium-muted-blue);
  background: white;
}

.course-management-container .course-actions .btn:hover {
  background: var(--medium-muted-blue);
  color: white;
}

/* Responsive Design for Course Management */
@media (max-width: 768px) {
  .course-management-container .page-header {
    padding: 0 12px;
    margin-bottom: 20px;
  }

  .course-management-container .page-title {
    font-size: 1.5rem;
  }

  .course-management-container .page-description {
    font-size: 0.9rem;
  }

  .course-management-container .compact-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px 0;
  }

  .course-management-container .stat-item {
    padding: 10px 6px;
  }

  .course-management-container .stat-item i {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .course-management-container .stat-item .stat-value {
    font-size: 1.2rem;
    margin-bottom: 3px;
  }

  .course-management-container .stat-item .stat-label {
    font-size: 0.7rem;
  }

  .course-management-container .compact-search-actions {
    gap: 10px;
    padding: 10px 0;
  }

  .course-management-container .search-input {
    padding: 8px 10px 8px 32px;
    font-size: 0.85rem;
  }

  .course-management-container .search-icon {
    left: 10px;
    font-size: 0.8rem;
  }

  .course-management-container .actions-section {
    justify-content: center;
    gap: 6px;
    flex-direction: column;
  }

  .course-management-container .left-actions,
  .course-management-container .right-actions {
    width: 100%;
    justify-content: center;
  }

  .course-management-container .btn-compact {
    padding: 6px 10px;
    font-size: 0.8rem;
    gap: 4px;
  }

  .course-management-container .btn-compact i {
    font-size: 0.75rem;
  }

  .course-management-container .compact-tab-navigation {
    gap: 4px;
    padding: 8px 4px;
  }

  .course-management-container .compact-tab-button {
    padding: 8px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .course-management-container .compact-tab-button i {
    font-size: 0.8rem;
  }

  .course-management-container .compact-tab-button.active {
    transform: translateY(-1px);
  }

  .course-management-container .departments-container.active {
    gap: 12px;
  }

  .course-management-container .department-card {
    max-width: none;
    margin-bottom: 10px;
    min-height: 120px;
    width: 100%;
  }

  .course-management-container .department-card-header {
    /* padding: 4px 8px; */
    padding: 12px;
  }

  .course-management-container .department-card-body {
    padding: 6px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .course-management-container .department-name {
    font-size: 0.8rem;
    margin: 0 0 3px 0;
  }

  .course-management-container .department-courses {
    font-size: 0.65rem;
    margin: 0 0 1px 0;
  }

  .course-management-container .department-status {
    font-size: 0.6rem;
  }

  .course-management-container .department-card-actions {
    flex-direction: column;
    /* gap: 4px; */
    gap: 8px;
    /* padding: 4px 8px; */
    padding: 12px;
    margin-top: auto;
  }

  .course-management-container .department-card-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 3px 5px;
    font-size: 0.65rem;
    min-width: 60px;
  }
}

@media (max-width: 480px) {
  .course-management-container .page-header {
    padding: 0 8px;
    margin-bottom: 16px;
  }

  .course-management-container .page-title {
    font-size: 1.3rem;
  }

  .course-management-container .page-description {
    font-size: 0.85rem;
  }

  .course-management-container .compact-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 6px 0;
  }

  .course-management-container .stat-item {
    padding: 8px 4px;
  }

  .course-management-container .stat-item i {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }

  .course-management-container .stat-item .stat-value {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }

  .course-management-container .stat-item .stat-label {
    font-size: 0.65rem;
  }

  .course-management-container .compact-search-actions {
    gap: 8px;
    padding: 8px 0;
  }

  .course-management-container .search-input {
    padding: 6px 8px 6px 28px;
    font-size: 0.8rem;
  }

  .course-management-container .search-icon {
    left: 8px;
    font-size: 0.75rem;
  }

  .course-management-container .actions-section {
    flex-direction: column;
    gap: 4px;
  }

  .course-management-container .left-actions,
  .course-management-container .right-actions {
    width: 100%;
    justify-content: center;
  }

  .course-management-container .btn-compact {
    width: 100%;
    padding: 5px 8px;
    font-size: 0.75rem;
    gap: 3px;
    justify-content: center;
  }

  .course-management-container .btn-compact i {
    font-size: 0.7rem;
  }

  .course-management-container .compact-tab-navigation {
    gap: 3px;
    padding: 3px;
    border-radius: 4px;
  }

  .course-management-container .compact-tab-button {
    padding: 6px 8px;
    font-size: 0.8rem;
    gap: 4px;
    min-height: 32px;
  }

  .course-management-container .compact-tab-button i {
    font-size: 0.75rem;
  }

  .course-management-container .compact-tab-button.active {
    background: var(--darker-saturated-blue);
    color: white;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(12, 85, 145, 0.2);
  }

  .course-management-container .action-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .course-management-container .department-card {
    margin-bottom: 8px;
    min-height: 100px;
    width: 100%;
  }

  .course-management-container .department-card-header {
    /* padding: 3px 6px; */
    padding: 8px;
  }

  .course-management-container .department-card-body {
    padding: 4px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .course-management-container .department-name {
    font-size: 0.75rem;
    margin: 0 0 2px 0;
  }

  .course-management-container .department-courses {
    font-size: 0.6rem;
    margin: 0 0 1px 0;
  }

  .course-management-container .department-status {
    font-size: 0.55rem;
  }

  .course-management-container .department-card-actions {
    /* padding: 3px 6px; */
    padding: 8px;
    /* gap: 3px; */
    gap: 8px;
    margin-top: auto;
  }

  .course-management-container .department-card-actions .btn {
    padding: 2px 4px;
    font-size: 0.6rem;
    min-width: 50px;
  }

  .course-management-container .course-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .course-management-container .course-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .course-management-container .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .course-management-container .card-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Course Management Specific Styles - Migrated from CourseManagement.php */
.course-management-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.course-management-container .page-header {
  margin-bottom: 30px;
}

.course-management-container .page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.course-management-container .page-description {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Quick Statistics */
.course-management-container .quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.course-management-container .stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.course-management-container .stat-card:hover {
  transform: translateY(-2px);
}

.course-management-container .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.course-management-container .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Action Bar */
.course-management-container .action-bar {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.course-management-container .search-container {
  flex: 1;
  min-width: 250px;
}

.course-management-container .search-input {
  width: 100%;
  /* padding: 12px 16px; */
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.course-management-container .search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.course-management-container .action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.course-management-container .btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.course-management-container .btn-primary {
  background: var(--medium-muted-blue);
  color: white;
}

.course-management-container .btn-primary:hover {
  background: var(--deep-navy-blue);
}

.course-management-container .btn-secondary {
  background: var(--deep-navy-blue);
  color: white;
}

.course-management-container .btn-secondary:hover {
  background: var(--medium-muted-blue);
}

.course-management-container .btn-outline {
  background: white;
  color: var(--medium-muted-blue);
  border: 2px solid var(--medium-muted-blue);
}

.course-management-container .btn-outline:hover {
  background: var(--medium-muted-blue);
  color: white;
}

/* Tab Navigation */
.course-management-container .tab-navigation {
  background: white;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 8px;
}

.course-management-container .tab-button {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.course-management-container .tab-button.active {
  background: var(--medium-muted-blue);
  color: white;
}

.course-management-container .tab-button:hover:not(.active) {
  background: var(--background-light);
  color: var(--medium-muted-blue);
}

/* Department Cards */
.course-management-container .departments-container {
  display: none;
}

.course-management-container .departments-container.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
  margin-top: 20px;
}

.course-management-container .department-card {
  background: white;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

.course-management-container .department-card:hover {
  transform: translateY(-2px);
}

.course-management-container .department-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.course-management-container .department-info {
  flex: 1;
}

.course-management-container .department-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-management-container .department-stats {
  display: flex;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.course-management-container .department-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.course-management-container .department-content {
  padding: 24px;
}

.course-management-container .courses-list {
  margin-bottom: 20px;
}

.course-management-container .course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--background-light);
  transition: all 0.2s ease;
}

.course-management-container .course-item:hover {
  border-color: var(--primary-color);
  background: white;
}

.course-management-container .course-info {
  flex: 1;
}

.course-management-container .course-code {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.course-management-container .course-name {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.course-management-container .course-actions {
  display: flex;
  gap: 8px;
}

.course-management-container .btn-sm {
  padding: 8px 12px;
  font-size: 0.8rem;
}

.course-management-container .btn-danger {
  background: var(--danger-color);
  color: white;
}

.course-management-container .btn-danger:hover {
  background: var(--danger-dark);
}

.course-management-container .add-course-section {
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  margin-top: 20px;
}
/* Mobile Responsive for Course Management */
@media (max-width: 768px) {
  .course-management-container {
    padding: 15px;
  }

  .course-management-container .page-title {
    font-size: 1.5rem;
  }

  .course-management-container .quick-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .course-management-container .stat-card {
    padding: 16px;
  }

  .course-management-container .stat-number {
    font-size: 2rem;
  }

  .course-management-container .action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .course-management-container .search-container {
    min-width: auto;
  }

  .course-management-container .action-buttons {
    justify-content: center;
  }

  .course-management-container .tab-navigation {
    flex-direction: column;
  }

  .course-management-container .tab-button {
    padding: 14px 20px;
  }

  .course-management-container .department-header {
    flex-direction: column;
    align-items: stretch;
  }

  .course-management-container .department-stats {
    justify-content: space-between;
  }

  .course-management-container .department-actions {
    justify-content: center;
  }

  .course-management-container .course-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .course-management-container .course-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .course-management-container .quick-stats {
    grid-template-columns: 1fr;
  }

  .course-management-container .stat-card {
    padding: 12px;
  }

  .course-management-container .stat-number {
    font-size: 1.8rem;
  }

  .course-management-container .btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .course-management-container .department-content {
    padding: 16px;
  }

  .course-management-container .course-item {
    padding: 12px;
  }
}

/* Course Preview Functionality - Hybrid Approach */
.course-management-container .department-card {
  position: relative;
  cursor: pointer;
}

/* Course Preview Section - Option 2: Within Scrollable Area */
.course-management-container .course-preview {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  opacity: 0;
  background: var(--very-light-cool-white);
  border-top: 1px solid var(--light-blue-gray);
  position: relative;
  z-index: 1;
  margin-top: 8px;
  border-radius: 0 0 8px 8px;
}
.course-management-container .course-preview.expanded {
  max-height: 1200px;
  opacity: 1;
  margin-bottom: 8px;
}

.course-management-container .course-preview-content {
  padding: 12px 16px;
}

.course-management-container .course-preview-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--medium-muted-blue);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-management-container .course-preview-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
}

.course-management-container .course-preview-item {
  font-size: 0.75rem;
  color: var(--deep-navy-blue);
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-management-container .course-preview-item i {
  color: var(--medium-muted-blue);
  font-size: 0.7rem;
}

/* Toggle Button Styling */
.course-management-container .toggle-courses-btn {
  background: transparent;
  border: none;
  color: var(--medium-muted-blue);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.course-management-container .toggle-courses-btn:hover {
  background: var(--very-light-cool-white);
  color: var(--deep-navy-blue);
}

.course-management-container .toggle-courses-btn i {
  transition: transform 0.3s ease;
}

.course-management-container .toggle-courses-btn.expanded i {
  transform: rotate(180deg);
}

/* Visual Cues for Course Preview Interactivity */
.course-management-container .department-card {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Add subtle visual indicator for interactivity */
.course-management-container .department-card::after {
  /* content: "👁"; */
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
  opacity: 0.4;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.course-management-container .department-card:hover::after {
  opacity: 0.8;
}

/* Enhanced hover state */
.course-management-container .department-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Add subtle border on hover */
.course-management-container .department-card:hover {
  border: 1px solid var(--medium-muted-blue);
}

/* Mobile tap feedback */
@media (hover: none) {
  .course-management-container .department-card:active {
    transform: scale(0.98);
  }
}

/* Very Small Screen Optimization */
@media (max-width: 320px) {
  .course-management-container .page-header {
    padding: 0 6px;
    margin-bottom: 12px;
  }

  .course-management-container .page-title {
    font-size: 1.2rem;
  }

  .course-management-container .page-description {
    font-size: 0.8rem;
  }

  .course-management-container .compact-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 4px 0;
  }

  .course-management-container .stat-item {
    padding: 6px 3px;
  }

  .course-management-container .stat-item i {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  .course-management-container .stat-item .stat-value {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .course-management-container .stat-item .stat-label {
    font-size: 0.6rem;
  }

  .course-management-container .compact-search-actions {
    gap: 6px;
    padding: 6px 0;
  }

  .course-management-container .search-input {
    padding: 5px 6px 5px 24px;
    font-size: 0.75rem;
  }

  .course-management-container .search-icon {
    left: 6px;
    font-size: 0.7rem;
  }

  .course-management-container .actions-section {
    /* gap: 3px; */
    gap: 8px;
    flex-direction: column;
  }

  .course-management-container .left-actions,
  .course-management-container .right-actions {
    width: 100%;
    justify-content: center;
  }

  .course-management-container .btn-compact {
    padding: 4px 6px;
    font-size: 0.7rem;
    gap: 2px;
  }

  .course-management-container .btn-compact i {
    font-size: 0.65rem;
  }

  .course-management-container .compact-tab-navigation {
    gap: 1px;
    padding: 1px;
  }

  .course-management-container .compact-tab-button {
    padding: 5px 6px;
    font-size: 0.75rem;
    gap: 3px;
    min-height: 26px;
  }

  .course-management-container .compact-tab-button i {
    font-size: 0.7rem;
  }

  .course-management-container .compact-tab-button.active {
    background: var(--darker-saturated-blue);
    color: white;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(12, 85, 145, 0.3);
  }

  .course-management-container .department-card {
    margin-bottom: 6px;
    min-height: 90px;
    width: 100%;
  }

  .course-management-container .department-card-header {
    /* padding: 2px 4px; */
    padding: 8px;
  }

  .course-management-container .department-card-body {
    padding: 3px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .course-management-container .department-name {
    font-size: 0.7rem;
    margin: 0 0 1px 0;
  }

  .course-management-container .department-courses {
    font-size: 0.55rem;
    margin: 0 0 1px 0;
  }

  .course-management-container .department-status {
    font-size: 0.5rem;
  }

  .course-management-container .department-card-actions {
    padding: 8px;
    gap: 8px;
    margin-top: auto;
  }

  .course-management-container .department-card-actions .btn {
    padding: 1px 3px;
    font-size: 0.55rem;
    min-width: 45px;
  }

  .course-management-container .department-icon {
    font-size: 0.7rem;
  }

  .course-management-container .department-id {
    font-size: 0.65rem;
  }
}

.course-management-container .department-content-spacer {
  flex: 1;
  min-height: 8px;
}

@media (max-width: 768px) {
  .course-management-container .department-content-spacer {
    min-height: 6px;
  }
}

@media (max-width: 480px) {
  .course-management-container .department-content-spacer {
    min-height: 4px;
  }
}

@media (max-width: 320px) {
  .course-management-container .department-content-spacer {
    min-height: 2px;
  }
}

/* ===== STUDENT CLEARANCE VIEWING PAGE STYLES ===== */

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.page-header h2 {
  color: var(--deep-navy-blue);
  font-size: clamp(24px, 1.8rem, 32px); /* Zoom-resistant: caps at 32px max */
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-header h2 i {
  color: var(--medium-muted-blue);
}

.page-description {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
}

/* Clearance Overview Cards */
.clearance-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.overview-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--medium-muted-blue),
    var(--darker-saturated-blue)
  );
}

.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.overview-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--medium-muted-blue),
    var(--darker-saturated-blue)
  );
  color: white;
  font-size: 1.5rem;
}

.overview-card .card-content h3 {
  color: var(--deep-navy-blue);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.overview-card .card-number {
  color: var(--darker-saturated-blue);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.overview-card .card-label {
  color: #6c757d;
  font-size: 0.875rem;
  margin: 0;
}

/* Clearance Section */
.clearance-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header h3 {
  color: var(--deep-navy-blue);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header h3 i {
  color: var(--medium-muted-blue);
}

.section-actions {
  display: flex;
  gap: 0.75rem;
}

.section-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Requirements List */
.requirements-list {
  padding: 1.5rem;
}

.requirement-category {
  margin-bottom: 2rem;
}

.requirement-category:last-child {
  margin-bottom: 0;
}

.requirement-category h4 {
  color: var(--deep-navy-blue);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.requirement-category h4 i {
  color: var(--medium-muted-blue);
}

.requirement-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.requirement-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  background: #ffffff;
  transition: all 0.3s ease;
}

.requirement-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.requirement-item.completed {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.requirement-item.pending {
  border-left: 4px solid #ffc107;
  background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.requirement-info {
  flex: 1;
}

.requirement-name {
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.requirement-department {
  color: #6c757d;
  font-size: 0.875rem;
}

.requirement-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.completed {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.pending {
  background-color: #fff3cd;
  color: #856404;
}

.completion-date,
.deadline {
  font-size: 0.75rem;
  color: #6c757d;
}

.completion-date {
  color: #28a745;
}

.deadline {
  color: #dc3545;
}

/* Progress Section */
.progress-container {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background-color: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--medium-muted-blue),
    var(--darker-saturated-blue)
  );
  border-radius: 6px;
  transition: width 0.3s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-text {
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 1.1rem;
}

.progress-details {
  color: #6c757d;
  font-size: 0.875rem;
}

/* Progress Timeline */
.progress-timeline {
  padding: 1.5rem;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: -1.5rem;
  width: 2px;
  background-color: #e9ecef;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.timeline-item.completed .timeline-marker {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.timeline-item.pending .timeline-marker {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.timeline-content {
  flex: 1;
  padding-top: 0.25rem;
}

.timeline-content h4 {
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  color: #6c757d;
  font-size: 0.875rem;
  margin: 0;
}
/* Responsive Design */
@media (max-width: 768px) {
  .clearance-overview {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .overview-card {
    padding: 1.25rem;
  }

  .overview-card .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .overview-card .card-number {
    font-size: 1.75rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .requirement-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .requirement-status {
    align-items: flex-start;
    width: 100%;
  }

  .progress-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .timeline-item {
    margin-bottom: 1rem;
  }

  .timeline-item::before {
    left: 12px;
    top: 32px;
  }

  .timeline-marker {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .clearance-overview {
    grid-template-columns: 1fr;
  }

  .overview-card {
    padding: 1rem;
  }

  .overview-card .card-icon {
    width: 45px;
    height: 45px;
    font-size: 1.125rem;
  }

  .overview-card .card-number {
    font-size: 1.5rem;
  }

  .section-header {
    padding: 1rem;
  }

  .section-header h3 {
    font-size: 1.125rem;
  }

  .requirements-list {
    padding: 1rem;
  }

  .requirement-category h4 {
    font-size: 1rem;
  }

  .requirement-item {
    padding: 0.75rem;
  }

  .requirement-name {
    font-size: 0.875rem;
  }

  .progress-container {
    padding: 1rem;
  }

  .progress-timeline {
    padding: 1rem;
  }

  .timeline-content h4 {
    font-size: 0.875rem;
  }

  .timeline-content p {
    font-size: 0.75rem;
  }
}
@media (max-width: 320px) {
  .overview-card {
    padding: 0.75rem;
  }

  .overview-card .card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .overview-card .card-number {
    font-size: 1.25rem;
  }

  .section-header {
    padding: 0.75rem;
  }

  .section-header h3 {
    font-size: 1rem;
  }

  .requirements-list {
    padding: 0.75rem;
  }

  .requirement-item {
    padding: 0.5rem;
  }

  .progress-container {
    padding: 0.75rem;
  }

  .progress-timeline {
    padding: 0.75rem;
  }
}

/* ===== NEW CLEARANCE STATUS PAGE STYLES ===== */

/* Period Selector */
.period-selector-section {
  margin-bottom: 2rem;
}

.period-selector {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.period-selector label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.period-selector label i {
  color: var(--medium-muted-blue);
}

.period-selector select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-blue-gray);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--deep-navy-blue);
  background: white;
  transition: all 0.3s ease;
}

.period-selector select:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
  box-shadow: 0 0 0 3px rgba(81, 134, 177, 0.1);
}

/* Overall Status Badge */
.overall-status-section {
  margin-bottom: 2rem;
  text-align: center;
}

.overall-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--darker-saturated-blue);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(23, 93, 151, 0.3);
}

.overall-status-badge i {
  font-size: 1.2rem;
}

/* Tab Navigation */
.clearance-tab-navigation {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: white;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.tab-button {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--medium-muted-blue);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-button:hover {
  background: var(--very-light-cool-white);
  color: var(--darker-saturated-blue);
}

.tab-button.active {
  background: var(--deep-navy-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(12, 85, 145, 0.3);
}

.tab-button i {
  font-size: 1rem;
}

/* Tab Content */
.tab-content {
  margin-bottom: 2rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Signatory Cards Grid */
.signatory-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.signatory-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.signatory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.signatory-card .card-header {
  background: linear-gradient(
    135deg,
    var(--deep-navy-blue),
    var(--darker-saturated-blue)
  );
  color: white;
  padding: 1.25rem;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signatory-card .card-header h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  word-wrap: break-word;
  word-break: break-word;
}

.signatory-card .card-header p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.signatory-card .card-content {
  padding: 1.25rem;
  background: var(--very-light-off-white);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-info,
.date-info,
.remarks-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.status-info:last-child,
.date-info:last-child,
.remarks-info:last-child {
  margin-bottom: 0;
}

.status-label,
.date-label,
.remarks-label {
  color: var(--medium-muted-blue);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.status-value,
.date-value,
.remarks-value {
  font-weight: 600;
  font-size: 0.875rem;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.status-value.pending {
  color: var(--bright-golden-yellow);
}

.status-value.completed {
  color: #28a745;
}

.status-value.rejected {
  color: #dc3545;
}

/* Table View */
.table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.clearance-table {
  width: 100%;
  border-collapse: collapse;
}

.clearance-table th {
  background: var(--deep-navy-blue);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.clearance-table td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  color: var(--deep-navy-blue);
  font-size: 0.875rem;
}

.clearance-table tbody tr:hover {
  background: var(--very-light-off-white);
}

.clearance-table .status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.clearance-table .status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.clearance-table .status-badge.completed {
  background: #d4edda;
  color: #155724;
}

.clearance-table .status-badge.rejected {
  background: #f8d7da;
  color: #721c24;
}

/* Timeline View */
.timeline-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50px;
  bottom: -2rem;
  width: 2px;
  background: var(--light-blue-gray);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

.timeline-item.pending .timeline-marker {
  background: var(--bright-golden-yellow);
}

.timeline-item.completed .timeline-marker {
  background: #28a745;
}

.timeline-item.future .timeline-marker {
  background: var(--light-blue-gray);
}

.timeline-content {
  flex: 1;
  padding-top: 0.5rem;
}

.timeline-content h4 {
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--medium-muted-blue);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: var(--light-blue-gray);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Export Section */
.export-section {
  text-align: center;
  margin-top: 2rem;
}

.export-section .btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--medium-muted-blue);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast-notification.show {
  transform: translateX(0);
}

.toast-notification.success {
  border-left-color: #28a745;
}

.toast-notification.error {
  border-left-color: #dc3545;
}

.toast-notification i {
  font-size: 1.2rem;
}

.toast-notification.success i {
  color: #28a745;
}

.toast-notification.error i {
  color: #dc3545;
}

.toast-notification.info i {
  color: var(--medium-muted-blue);
}

.toast-notification span {
  color: var(--deep-navy-blue);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .period-selector {
    padding: 1rem;
  }

  .overall-status-badge {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .clearance-tab-navigation {
    flex-direction: column;
    gap: 0.25rem;
  }

  .tab-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .signatory-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .signatory-card .card-header {
    padding: 1rem;
  }

  .signatory-card .card-content {
    padding: 1rem;
  }

  .clearance-table {
    font-size: 0.8rem;
  }

  .clearance-table th,
  .clearance-table td {
    padding: 0.75rem 0.5rem;
  }

  .timeline-container {
    padding: 1.5rem;
  }

  .timeline-item {
    margin-bottom: 1.5rem;
  }

  .timeline-marker {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .timeline-content h4 {
    font-size: 1rem;
  }

  .timeline-content p {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .period-selector {
    padding: 0.75rem;
  }

  .period-selector label {
    font-size: 0.9rem;
  }

  .period-selector select {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .overall-status-badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .signatory-card .card-header h3 {
    font-size: 1.1rem;
  }

  .signatory-card .card-header p {
    font-size: 0.8rem;
  }

  .status-info,
  .date-info,
  .remarks-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .clearance-table {
    font-size: 0.75rem;
  }

  .clearance-table th,
  .clearance-table td {
    padding: 0.5rem 0.25rem;
  }

  .timeline-container {
    padding: 1rem;
  }

  .timeline-item {
    margin-bottom: 1rem;
  }

  .timeline-marker {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .timeline-content h4 {
    font-size: 0.9rem;
  }

  .timeline-content p {
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {
  .period-selector {
    padding: 0.5rem;
  }

  .period-selector label {
    font-size: 0.8rem;
  }

  .period-selector select {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .overall-status-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .signatory-card .card-header {
    padding: 0.75rem;
  }

  .signatory-card .card-content {
    padding: 0.75rem;
  }

  .signatory-card .card-header h3 {
    font-size: 1rem;
  }

  .signatory-card .card-header p {
    font-size: 0.75rem;
  }

  .clearance-table {
    font-size: 0.7rem;
  }

  .clearance-table th,
  .clearance-table td {
    padding: 0.4rem 0.2rem;
  }

  .timeline-container {
    padding: 0.75rem;
  }

  .timeline-marker {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .timeline-content h4 {
    font-size: 0.8rem;
  }

  .timeline-content p {
    font-size: 0.75rem;
  }
}
/* ===== STUDENT DASHBOARD STYLES ===== */

/* Quick Stats Section */
.quick-stats-section {
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.stat-icon.pending {
  background: var(--bright-golden-yellow);
}

.stat-icon.info {
  background: var(--medium-muted-blue);
}

.stat-icon.warning {
  background: #ffc107;
}

.stat-icon.success {
  background: #28a745;
}

.stat-content h3 {
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
}

.stat-number {
  color: var(--medium-muted-blue);
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 0 0.25rem 0;
}

.stat-label {
  color: var(--light-blue-gray);
  font-size: 0.8rem;
  margin: 0;
}

/* Main Action Section */
.main-action-section {
  margin-bottom: 2rem;
  text-align: center;
}

.action-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(12, 85, 145, 0.3);
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(12, 85, 145, 0.4);
}

.action-description {
  color: var(--medium-muted-blue);
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Quick Actions Section */
.quick-actions-section {
  margin-bottom: 2rem;
}
.quick-actions-section h3 {
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.action-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--medium-muted-blue);
}

.action-card .card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--deep-navy-blue),
    var(--darker-saturated-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.action-card .card-content h4 {
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}

.action-card .card-content p {
  color: var(--medium-muted-blue);
  font-size: 0.9rem;
  margin: 0;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Recent Activity Section */
.recent-activity-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.recent-activity-section .section-header h3 {
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-timeline {
  position: relative;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
}

.activity-item:last-child {
  margin-bottom: 0;
}

.activity-item::before {
  /* content: ""; */
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: -1.5rem;
  width: 2px;
  background: var(--light-blue-gray);
}

.activity-item:last-child::before {
  display: none;
}

.activity-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.activity-item.pending .activity-marker {
  background: var(--bright-golden-yellow);
}

.activity-item.completed .activity-marker {
  background: #28a745;
}

.activity-content {
  flex: 1;
  padding-top: 0.25rem;
}

.activity-content h4 {
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.activity-content p {
  color: var(--medium-muted-blue);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.activity-date {
  color: var(--light-blue-gray);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Notifications Section */
.notifications-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.notifications-section .section-header h3 {
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid;
  transition: all 0.3s ease;
}

.notification-item:hover {
  transform: translateX(4px);
}

.notification-item.warning {
  background: #fff3cd;
  border-left-color: #ffc107;
}

.notification-item.info {
  background: #d1ecf1;
  border-left-color: var(--medium-muted-blue);
}

.notification-item.success {
  background: #d4edda;
  border-left-color: #28a745;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.notification-item.warning .notification-icon {
  background: #ffc107;
}

.notification-item.info .notification-icon {
  background: var(--medium-muted-blue);
}

.notification-item.success .notification-icon {
  background: #28a745;
}

.notification-content {
  flex: 1;
}

.notification-content h4 {
  color: var(--deep-navy-blue);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.notification-content p {
  color: var(--medium-muted-blue);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.notification-time {
  color: var(--light-blue-gray);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .stat-content h3 {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 0.8rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .action-container {
    padding: 1.5rem;
  }

  .btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
  }

  .actions-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .action-card {
    padding: 1rem;
  }

  .action-card .card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .action-card .card-content h4 {
    font-size: 1rem;
  }

  .action-card .card-content p {
    font-size: 0.8rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .recent-activity-section,
  .notifications-section {
    padding: 1rem;
  }

  .activity-marker {
    width: 25px;
    height: 25px;
    font-size: 0.75rem;
  }

  .activity-content h4 {
    font-size: 0.9rem;
  }

  .activity-content p {
    font-size: 0.8rem;
  }

  .notification-item {
    padding: 0.75rem;
  }

  .notification-icon {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }

  .notification-content h4 {
    font-size: 0.9rem;
  }

  .notification-content p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.75rem;
  }

  .stat-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .stat-content h3 {
    font-size: 0.9rem;
  }

  .stat-number {
    font-size: 0.75rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .action-container {
    padding: 1rem;
  }

  .btn-large {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .action-description {
    font-size: 0.9rem;
  }

  .quick-actions-section h3 {
    font-size: 1.1rem;
  }

  .action-card {
    padding: 0.75rem;
  }

  .action-card .card-icon {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }

  .action-card .card-content h4 {
    font-size: 0.9rem;
  }

  .action-card .card-content p {
    font-size: 0.75rem;
  }

  .recent-activity-section,
  .notifications-section {
    padding: 0.75rem;
  }

  .recent-activity-section .section-header h3,
  .notifications-section .section-header h3 {
    font-size: 1rem;
  }

  .activity-marker {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }

  .activity-content h4 {
    font-size: 0.8rem;
  }

  .activity-content p {
    font-size: 0.75rem;
  }

  .notification-item {
    padding: 0.5rem;
  }

  .notification-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .notification-content h4 {
    font-size: 0.8rem;
  }

  .notification-content p {
    font-size: 0.75rem;
  }
}

/* Clearance Snapshot Summary */
.clearance-status-summary {
  border: 1px solid rgba(12, 85, 145, 0.14);
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 10px 26px rgba(12, 85, 145, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.clearance-status-summary .summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-navy-blue);
}

.summary-title i {
  background: rgba(81, 134, 177, 0.14);
  color: var(--medium-muted-blue);
  padding: 8px;
  border-radius: 10px;
  font-size: 1rem;
}

.summary-header small {
  color: rgba(12, 85, 145, 0.6);
  font-size: 0.75rem;
}

.summary-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(12, 85, 145, 0.12);
  border-radius: 10px;
  background: rgba(12, 85, 145, 0.04);
}

.summary-selector label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--deep-navy-blue);
  font-size: 0.95rem;
}

.summary-selector label i {
  color: var(--medium-muted-blue);
}

.summary-selector select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--light-blue-gray);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--deep-navy-blue);
  background: #ffffff;
  transition: all 0.2s ease;
}

.summary-selector select:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
  box-shadow: 0 0 0 2px rgba(81, 134, 177, 0.18);
}

.summary-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 18px;
}

.summary-top-row .summary-selector {
  flex: 1 1 320px;
}

.summary-top-row .summary-card {
  flex: 1 1 280px;
  min-width: 0;
}

.summary-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.summary-card {
  border: 1px solid rgba(12, 85, 145, 0.12);
  background: linear-gradient(
    180deg,
    rgba(247, 251, 255, 0.85) 0%,
    #ffffff 100%
  );
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-card-heading h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(12, 85, 145, 0.85);
}

.form-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 1rem;
  border: 1px solid rgba(12, 85, 145, 0.12);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(247, 251, 255, 0.85) 0%,
    #ffffff 100%
  );
  box-shadow: 0 10px 26px rgba(12, 85, 145, 0.08);
}

.form-detail {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(12, 85, 145, 0.6);
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-navy-blue);
  word-break: break-word;
}

.form-extra-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(12, 85, 145, 0.75);
  justify-content: space-around;
}

.form-extra-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-align: justify;
}

.period-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(12, 85, 145, 0.12);
  background: rgba(12, 85, 145, 0.05);
  border-left: 4px solid rgba(12, 85, 145, 0.25);
  box-shadow: 0 4px 12px rgba(12, 85, 145, 0.08);
}

.period-status-banner .status-icon {
  background: rgba(81, 134, 177, 0.18);
  color: var(--background-light);
  padding: 8px;
  border-radius: 8px;
  font-size: 1rem;
  flex-shrink: 0;
}
.period-status-banner .status-content h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--background-light);
}

.period-status-banner .status-content p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--background-light);
  line-height: 1.35;
}

.period-status-banner.ongoing,
.period-status-banner.grace_period {
  border-left-color: var(--bright-golden-yellow);
  background: rgba(231, 192, 29, 0.12);
}

.period-status-banner.paused,
.period-status-banner.paused_grace_period {
  border-left-color: rgba(231, 192, 29, 0.85);
  background: rgba(231, 192, 29, 0.16);
}

.period-status-banner.closed {
  border-left-color: rgba(12, 85, 145, 0.42);
  background: rgba(12, 85, 145, 0.08);
}

@media (max-width: 1024px) {
  .clearance-status-summary {
    padding: 16px 18px;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .summary-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .summary-header small {
    margin-left: 2px;
  }

  .summary-top-row {
    gap: 12px;
    flex-direction: column;
  }

  .summary-top-row .summary-card,
  .summary-top-row .summary-selector {
    flex: 1 1 100%;
  }

  .summary-grid {
    gap: 16px;
  }

  .form-extra-meta {
    flex-direction: column;
    gap: 4px;
  }

  /* Compact period banner on tablets/phones */
  .period-status-banner {
    padding: 8px 10px;
    gap: 8px;
  }
  .period-status-banner .status-icon {
    padding: 6px;
    font-size: 0.95rem;
  }
  .period-status-banner .status-content h4 {
    font-size: 0.9rem;
  }
  .period-status-banner .status-content p {
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .form-summary {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .clearance-status-summary {
    padding: 14px 16px;
  }

  .summary-title {
    font-size: 1.02rem;
  }

  /* Extra compact on small phones */
  .period-status-banner {
    padding: 8px;
  }
  .period-status-banner .status-content h4 {
    font-size: 0.88rem;
  }
  .period-status-banner .status-content p {
    font-size: 0.78rem;
  }
}
@media (max-width: 360px) {
  .summary-title {
    gap: 6px;
    font-size: 0.95rem;
  }

  .summary-top-row {
    gap: 10px;
  }

  .summary-selector {
    padding: 10px 12px;
  }

  .summary-selector select {
    font-size: 0.9rem;
  }

  .summary-card {
    padding: 14px 15px;
  }

  .form-detail {
    flex: 1 1 100%;
  }
}

/* Clearance Form Banner Styles */
.clearance-form-banner {
  background: linear-gradient(
    135deg,
    var(--deep-navy-blue),
    var(--medium-muted-blue)
  );
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--bright-golden-yellow);
}

.clearance-form-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.clearance-form-banner .banner-icon {
  background: rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 8px;
  font-size: 1.5rem;
}

.clearance-form-banner .banner-text {
  flex: 1;
}

.clearance-form-banner .banner-text h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.clearance-form-banner .banner-text p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
}

.clearance-form-banner .banner-period {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .clearance-form-banner .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .clearance-form-banner .banner-text h3 {
    font-size: 1rem;
  }

  .clearance-form-banner .banner-text p {
    font-size: 1.1rem;
  }

  .clearance-form-banner .banner-period {
    font-size: 0.85rem;
  }
}

@media (max-width: 320px) {
  .stat-card {
    padding: 0.5rem;
  }

  .stat-icon {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
  }

  .stat-content h3 {
    font-size: 0.8rem;
  }

  .stat-number {
    font-size: 0.7rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .action-container {
    padding: 0.75rem;
  }

  .btn-large {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .action-description {
    font-size: 0.8rem;
  }

  .quick-actions-section h3 {
    font-size: 1rem;
  }

  .action-card {
    padding: 0.5rem;
  }

  .action-card .card-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .action-card .card-content h4 {
    font-size: 0.8rem;
  }

  .action-card .card-content p {
    font-size: 0.7rem;
  }

  .recent-activity-section,
  .notifications-section {
    padding: 0.5rem;
  }

  .recent-activity-section .section-header h3,
  .notifications-section .section-header h3 {
    font-size: 0.9rem;
  }

  .activity-marker {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }

  .activity-content h4 {
    font-size: 0.75rem;
  }

  .activity-content p {
    font-size: 0.7rem;
  }

  .notification-item {
    padding: 0.4rem;
  }

  .notification-icon {
    width: 25px;
    height: 25px;
    font-size: 0.75rem;
  }

  .notification-content h4 {
    font-size: 0.75rem;
  }

  .notification-content p {
    font-size: 0.7rem;
  }
}

/* Signatory Override Styles */
.override-modal {
  max-width: 600px;
  width: 90%;
}

.override-modal .modal-content {
  max-height: 70vh;
  overflow-y: auto;
}

.position-selection-section h4 {
  color: var(--deep-navy-blue);
  margin-bottom: 15px;
  font-size: 18px;
}

.position-selector {
  margin-bottom: 20px;
}

.position-selector select,
.position-selector input {
  margin-bottom: 10px;
}

.custom-position-input {
  margin-top: 10px;
}

.position-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.position-warning i {
  color: #856404;
  font-size: 16px;
}

.position-warning span {
  color: #856404;
  font-weight: 500;
}

.pending-clearances-preview {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
}

.pending-clearances-preview h5 {
  color: var(--deep-navy-blue);
  margin-bottom: 10px;
  font-size: 16px;
}

.clearances-preview-list {
  max-height: 150px;
  overflow-y: auto;
}

.preview-item {
  padding: 8px 12px;
  background-color: white;
  border-radius: 4px;
  margin-bottom: 5px;
  font-size: 14px;
  border-left: 3px solid var(--medium-muted-blue);
}

/* Override Session Interface */
.override-session {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--very-light-off-white);
  z-index: 1000;
  overflow-y: auto;
}

.override-header {
  background-color: var(--deep-navy-blue);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.override-status {
  display: flex;
  align-items: center;
  gap: 15px;
}

.override-status i {
  font-size: 18px;
}

.session-timer {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.override-search-filters {
  background-color: white;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}

.search-section {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.search-section input {
  flex: 1;
}

.filter-section {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-section select {
  flex: 1;
  min-width: 150px;
}

.override-bulk-actions {
  background-color: white;
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.override-bulk-actions .bulk-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.override-bulk-actions .bulk-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.override-stats {
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--deep-navy-blue);
}

/* Rejection Remarks Modal Styles */
.rejection-remarks-modal {
  max-width: 600px;
  width: 90%;
}

.rejection-remarks-modal .modal-content-area {
  padding: 20px;
}

.rejection-info {
  background: var(--very-light-cool-white);
  border: 1px solid var(--light-blue-gray);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.rejection-info h4 {
  color: var(--deep-navy-blue);
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.rejection-type {
  color: var(--medium-muted-blue);
  margin: 0;
  font-size: 0.9rem;
}

.rejection-type span {
  font-weight: 600;
  color: var(--deep-navy-blue);
}

.remarks-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.remarks-section .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.remarks-section label {
  font-weight: 600;
  color: var(--deep-navy-blue);
  font-size: 0.95rem;
}

.remarks-section .form-control {
  padding: 12px;
  border: 1px solid var(--light-blue-gray);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.remarks-section .form-control:focus {
  outline: none;
  border-color: var(--medium-muted-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.remarks-section select.form-control {
  background: white;
  cursor: pointer;
}

.remarks-section textarea.form-control {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* Responsive adjustments for rejection modal */
@media (max-width: 768px) {
  .rejection-remarks-modal {
    width: 95%;
    margin: 20px;
  }

  .rejection-remarks-modal .modal-content-area {
    padding: 16px;
  }

  .remarks-section {
    gap: 16px;
  }
}

.override-clearances-list {
  padding: 20px;
}

.clearance-item {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.clearance-info h4 {
  color: var(--deep-navy-blue);
  margin-bottom: 5px;
  font-size: 16px;
}

.clearance-info p {
  color: #6c757d;
  margin-bottom: 8px;
  font-size: 14px;
}

.clearance-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.override-checkbox {
  margin-right: 10px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Responsive Design for Override Interface */
@media (max-width: 768px) {
  .override-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .override-status {
    flex-direction: column;
    gap: 5px;
  }

  .search-section {
    flex-direction: column;
  }

  .filter-section {
    flex-direction: column;
  }

  .override-bulk-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .override-bulk-actions .bulk-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .override-bulk-actions .bulk-buttons {
    justify-content: center;
  }

  .clearance-item {
    flex-direction: column;
    align-items: stretch;
  }

  .clearance-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .override-modal {
    width: 95%;
    margin: 10px;
  }

  .position-selector select,
  .position-selector input {
    font-size: 14px;
  }

  .override-header {
    padding: 10px 15px;
  }

  .override-search-filters {
    padding: 15px;
  }

  .override-bulk-actions {
    padding: 10px 15px;
  }

  .override-clearances-list {
    padding: 15px;
  }

  .clearance-item {
    padding: 12px;
  }

  .clearance-info h4 {
    font-size: 14px;
  }

  .clearance-info p {
    font-size: 12px;
  }
}

/* Clearance Period Info Styles */
.clearance-period-info {
  background: var(--very-light-cool-white);
  border: 1px solid var(--light-blue-gray);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--deep-navy-blue);
}

.clearance-period-info i {
  color: var(--bright-golden-yellow);
  font-size: 1rem;
}

/* Card Actions Styles */
.card-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--light-blue-gray);
}

.card-actions .btn {
  width: 100%;
  justify-content: center;
  gap: 6px;
}

/* Action Buttons in Table */
.action-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.action-buttons .btn {
  /* padding: 6px 12px; */
  font-size: 0.85rem;
  min-width: auto;
}

/* Apply Button States */
.apply-btn.btn-success {
  background-color: #28a745;
  color: white;
}

.apply-btn.btn-success:hover {
  background-color: #218838;
}

/* Responsive adjustments for card actions */
@media (max-width: 768px) {
  .card-actions .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .action-buttons {
    flex-direction: column;
    gap: 4px;
  }

  .action-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tab Navigation Styles */
.tab-nav {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem 0;
}
.tab-pill {
  padding: 8px 18px;
  border: 1px solid var(--medium-muted-blue);
  border-radius: 20px;
  background: transparent;
  color: var(--medium-muted-blue);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab-pill:hover {
  background: var(--very-light-cool-white);
}
.tab-pill.active {
  background: var(--medium-muted-blue);
  color: #fff;
}

.current-period-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-muted-blue, #eef3ff);
  color: var(--dark-primary, #1c3faa);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  margin: 8px 0 12px;
}
.current-period-banner .banner-icon {
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .current-period-banner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

.tab-nav-mobile {
  display: none;
  margin: 8px 0;
}
.tab-select {
  padding: 6px 12px;
  /* border: 1px solid var(--medium-muted-blue, #a0b4ff); */
  border: none;
  border-radius: 1rem;
  font-weight: 600;
  color: var(--dark-primary, #1c3faa);
  background: #fff;
  width: 16rem;
}
@media (max-width: 768px) {
  /* Hide pill-shaped tab navigation on mobile */
  .tab-nav,
  #facultyTabNav {
    display: none;
  }
  /* Show dropdown tab navigation on mobile */
  .tab-nav-mobile {
    display: block;
  }
}

.tab-banner-wrapper {
  display: flex;
  align-items: center;
  /* justify-content: space-between; nung kinomment out yung tab nav */
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
@media (max-width: 992px) {
  .tab-banner-wrapper {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  /* Hide pill nav show dropdown already handled */
  .tab-banner-wrapper {
    gap: 8px;
    flex-direction: column;
    /* align-items: flex-start; */
  }
  #currentPeriodBanner {
    align-self: flex-start;
  }
}

/* Applied state (user has applied, awaiting any approvals) */
.status-badge.clearance-applied {
  background: rgba(255, 193, 7, 0.18); /* brand-warning tint */
  color: #d39e00;
}

/* Alias for complete (ensure both spellings are styled) */
.status-badge.clearance-complete,
.status-badge.clearance-completed {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

/* Bulk Selection Styles */
.bulk-selection-filters-btn {
  margin-right: 15px;
}

.clear-selection-btn {
  margin-right: 15px;
}

.clear-selection-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Approve/Reject Button Styles */
.btn-icon.approve-btn {
  background-color: #28a745;
  color: white;
}

.btn-icon.approve-btn:hover:not(:disabled) {
  background-color: #218838;
}

.btn-icon.reject-btn {
  background-color: #dc3545;
  color: white;
}

.btn-icon.reject-btn:hover:not(:disabled) {
  background-color: #c82333;
}

.btn-icon.approve-btn:disabled,
.btn-icon.reject-btn:disabled {
  background-color: #6c757d;
  color: #fff;
  opacity: 0.6;
  cursor: not-allowed;
}

.button-status-indicator {
  color: #6c757d;
  margin-left: 5px;
  cursor: help;
}

/* Style for clear button in table header */
.checkbox-column .clear-selection-btn {
  margin: 0;
  padding: 6px 12px;
  font-size: 12px;
  min-width: auto;
}

.selection-counter-display {
  display: flex;
  align-items: center;
  /* margin-left: 15px; */
  margin-right: 20px;
  padding: 8px 20px;
  background-color: var(--very-light-cool-white, #e7eff4);
  border: none;
  border-radius: 25px;
  font-weight: 600;
  color: var(--dark-primary, #1c3faa);
  min-width: 180px;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(231, 239, 244, 0.3);
  transition: all 0.2s ease;
}

.selection-counter-display span {
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* Hover effect for subtle interactivity */
.selection-counter-display:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(231, 239, 244, 0.4);
}

/* State-based styling */
.selection-counter-display.has-selections {
  background: linear-gradient(
    135deg,
    var(--very-light-cool-white, #e7eff4),
    #f0f4f8
  );
  color: var(--medium-muted-blue, #4a6fa5);
  box-shadow: 0 2px 6px rgba(74, 111, 165, 0.15);
}

.selection-counter-display.has-selections:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 111, 165, 0.2);
}

.selection-counter-display.all-selected {
  background: linear-gradient(
    135deg,
    var(--bright-golden-yellow, #ffd700),
    #ffed4e
  );
  color: var(--dark-primary, #1c3faa);
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.selection-counter-display.all-selected:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(231, 192, 29, 0.25);
}

/* Sector Status Indicators */
.sector-status-indicators {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.sector-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--medium-muted-blue);
  border: 1px solid var(--medium-muted-blue);
  font-size: 0.9rem;
}

.sector-indicator i {
  font-size: 1rem;
}

.sector-name {
  font-weight: 600;
  color: var(--background-light);
}

.sector-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.sector-status.status-ongoing {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.sector-status.status-paused {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.sector-status.status-closed {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.sector-status.status-not-started {
  background: #e2e3e5;
  color: #6c757d;
  border: 1px solid #d6d8db;
}

/* Pill-shaped indicators */
.pill-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--medium-muted-blue);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem 0.5rem 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.pill-indicator:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pill-indicator i {
  font-size: 1rem;
}

.department-scope-info.pill-indicator {
  background: var(--medium-muted-blue);
}

.handled-sector-info.pill-indicator {
  background: var(--bright-golden-yellow);
  color: var(--dark-primary);
}

.school-scope-info.pill-indicator {
  background: var(--deep-navy-blue);
  color: white;
}

/* User Information Indicators */
.user-info-indicators {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.info-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.info-indicator:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.info-indicator i {
  font-size: 1rem;
}

.info-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.info-value {
  font-weight: 700;
}

.sector-indicator {
  background: var(--medium-muted-blue);
  color: var(--background-light);
}

.department-indicator {
  background: var(--medium-muted-blue);
  color: white;
}

.program-indicator {
  background: var(--deep-navy-blue);
  color: white;
}

/* ===========================================
   DASHBOARD COMPACT STYLES - UNIFIED WITH CLEARANCE
   Restyled to match clearance.php visual language
   =========================================== */

/* Page Header Compact - Match clearance.php .page-header */
.page-header-compact {
  margin-bottom: 1.5rem;
}

.page-header-compact h2 {
  color: var(--deep-navy-blue);
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.page-header-compact h2 i {
  color: var(--medium-muted-blue);
}

/* Card Compact - Match clearance.php .clearance-status-summary */
.card-compact {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

/* Status Header Compact - Match summary-header style */
.status-header-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-blue-gray);
}

/* Academic Info - Match summary-selector style */
.academic-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.academic-year-semester {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-navy-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.academic-year-semester i {
  color: var(--medium-muted-blue);
  font-size: 1rem;
}

.term-duration {
  font-size: 0.875rem;
  color: var(--medium-muted-blue);
  margin-top: 0.25rem;
}

/* User Identifiers - Below term duration */
.user-identifiers {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.identifier-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--soft-slate-gray);
}

.identifier-label {
  font-weight: 500;
  color: var(--soft-slate-gray);
}

.identifier-value {
  font-weight: 600;
  color: var(--medium-muted-blue);
}

/* User Context Inline - Card-based layout */
.user-context-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  background: var(--very-light-off-white);
  border-radius: 8px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--light-blue-gray);
}

.context-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.625rem 0.75rem;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--light-blue-gray);
  transition: box-shadow 0.2s ease;
}

.context-item:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.context-label {
  font-size: 0.75rem;
  color: var(--soft-slate-gray);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.context-label i {
  color: var(--medium-muted-blue);
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

.context-value {
  font-weight: 600;
  color: var(--deep-navy-blue);
  font-size: 0.9rem;
  word-break: break-word;
  line-height: 1.35;
}

.context-separator {
  display: none; /* Hide separators - using grid layout now */
}

/* Priority Action Compact - ENHANCED for visual priority */
.priority-action-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f7ff, #e3f0ff);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  /*border: 2px solid var(--medium-muted-blue);*/
  box-shadow: 0 4px 15px rgba(81, 134, 177, 0.15);
}

/* Action Status Text - Simple muted text below button */
.action-status-text {
  font-size: 0.75rem;
  color: var(--medium-muted-blue);
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 400;
  line-height: 1.4;
}

.action-status-text i {
  display: none; /* Hide icon for simplicity */
}

/* Primary Button Compact - More prominent */
.btn-primary-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-navy-blue);
  background: var(--bright-golden-yellow);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(231, 192, 29, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary-compact:hover:not(:disabled) {
  background: #f0c91f;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(231, 192, 29, 0.45);
}

.btn-primary-compact:disabled {
  background: linear-gradient(
    135deg,
    var(--darker-saturated-blue),
    var(--deep-navy-blue)
  );
  color: white;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(12, 85, 145, 0.3);
  opacity: 1;
}

.btn-primary-compact:disabled i {
  color: white;
}

.btn-primary-compact i {
  font-size: 1.1rem;
  color: inherit;
}

/* Clearance Status Inline - Simple text display */
.clearance-status-inline {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--light-blue-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.clearance-status-inline .status-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
}

.clearance-status-inline .status-label {
  color: var(--soft-slate-gray);
  font-weight: 500;
  line-height: inherit;
}

.clearance-status-inline .status-value {
  color: var(--deep-navy-blue);
  font-weight: 700;
  line-height: inherit;
}

.clearance-status-inline .status-divider {
  color: var(--light-blue-gray);
  font-size: 0.75rem;
  line-height: inherit;
  align-self: center;
  margin: 0 0.25rem;
}

/* Status Row Compact - Match summary-grid layout */
.status-row-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Status Card Compact - Match summary-card / signatory-card style */
.status-card-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--light-blue-gray);
  transition: all 0.3s ease;
}

.status-card-compact:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.status-card-compact i {
  font-size: 1.25rem;
  color: var(--medium-muted-blue);
  background: var(--very-light-off-white);
  padding: 0.6rem;
  border-radius: 8px;
}

.status-card-compact .status-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.status-card-compact .status-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-navy-blue);
}

.status-card-compact .status-label {
  font-size: 0.75rem;
  color: var(--medium-muted-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Debug Section Compact - Cleaner styling */
.debug-section-compact {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed var(--light-blue-gray);
}

.debug-section-compact h4 {
  font-size: 0.9rem;
  color: var(--soft-slate-gray);
  margin-bottom: 0.75rem;
}

.debug-section-compact button {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

#debugOutput {
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 6px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.8rem;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
}

/* ===========================================
   RESPONSIVE STYLES - DASHBOARD COMPACT
   =========================================== */

@media (max-width: 992px) {
  .status-row-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .status-card-compact {
    padding: 0.875rem;
  }

  .status-card-compact i {
    font-size: 1.1rem;
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
  .card-compact {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .page-header-compact h2 {
    font-size: 1.25rem;
  }

  .status-header-compact {
    flex-direction: column;
    gap: 0.75rem;
  }

  .academic-year-semester {
    font-size: 1rem;
  }

  .term-duration {
    font-size: 0.8rem;
  }

  .user-identifiers {
    font-size: 0.7rem;
    gap: 0.15rem;
    margin-top: 0.375rem;
  }

  .user-context-inline {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .context-item {
    padding: 0.5rem 0.625rem;
  }

  .context-label {
    font-size: 0.7rem;
  }

  .context-value {
    font-size: 0.85rem;
  }

  .priority-action-compact {
    padding: 1rem;
    gap: 0.75rem;
  }

  .action-status-text {
    font-size: 0.7rem;
    margin-top: 0.4rem;
  }

  .btn-primary-compact {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  .clearance-status-inline {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.85rem;
  }

  .clearance-status-inline .status-item {
    flex-shrink: 0;
  }

  .clearance-status-inline .status-divider {
    display: inline-block;
    margin: 0 0.15rem;
  }
}

@media (max-width: 480px) {
  .card-compact {
    padding: 0.875rem;
    border-radius: 10px;
  }

  .page-header-compact {
    margin-bottom: 1rem;
  }

  .page-header-compact h2 {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  .page-header-compact h2 i {
    font-size: 1rem;
  }

  .academic-year-semester {
    font-size: 0.9rem;
    flex-wrap: wrap;
  }

  .term-duration {
    font-size: 0.75rem;
  }

  .user-context-inline {
    padding: 0.625rem;
    gap: 0.375rem;
  }

  .context-item {
    padding: 0.4rem 0.5rem;
    gap: 0.25rem;
  }

  .context-label {
    font-size: 0.65rem;
  }

  .context-value {
    font-size: 0.8rem;
  }

  .priority-action-compact {
    padding: 0.875rem;
    gap: 0.625rem;
  }

  .action-status-text {
    font-size: 0.65rem;
    margin-top: 0.35rem;
  }

  .btn-primary-compact {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
  }

  .clearance-status-inline {
    padding: 0.5rem 0.625rem;
    font-size: 0.8rem;
    gap: 0.4rem 0.6rem;
  }

  .clearance-status-inline .status-item {
    flex-shrink: 0;
  }

  .clearance-status-inline .status-divider {
    margin: 0 0.1rem;
  }

  .debug-section-compact {
    padding: 0.75rem;
  }
}

@media (max-width: 360px) {
  .card-compact {
    padding: 0.75rem;
  }

  .page-header-compact h2 {
    font-size: 1rem;
  }

  .user-context-inline {
    padding: 0.5rem;
    gap: 0.3rem;
  }

  .context-item {
    padding: 0.35rem 0.4rem;
    gap: 0.2rem;
  }

  .context-label {
    font-size: 0.6rem;
  }

  .context-value {
    font-size: 0.7rem;
  }

  .priority-action-compact {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .action-status-text {
    font-size: 0.6rem;
    margin-top: 0.3rem;
  }

  .btn-primary-compact {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
  }

  .clearance-status-inline {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    gap: 0.35rem 0.5rem;
  }

  .clearance-status-inline .status-item {
    flex-shrink: 0;
  }

  .clearance-status-inline .status-divider {
    margin: 0 0.08rem;
    font-size: 0.7rem;
  }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .priority-action-compact {
    padding: 1.25rem;
  }

  .btn-primary-compact {
    padding: 0.875rem 1.5rem;
  }
}

/* Role Selector Styles */
.role-selector-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: white;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 15px;
  border: 1px solid var(--light-blue-gray);
}

.role-selector-container i {
  color: var(--medium-muted-blue);
  font-size: 1.1rem;
}

.role-selector-container label {
  font-weight: 600;
  color: var(--deep-navy-blue);
  margin-bottom: 0;
}

.role-selector-container .filter-select {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--light-blue-gray);
  color: var(--deep-navy-blue);
  font-size: 0.95rem;
  background-color: var(--very-light-off-white);
  cursor: pointer;
  min-width: 200px;
}

.role-selector-container .single-role-display {
  font-weight: 600;
  color: var(--darker-saturated-blue);
  padding: 6px 12px;
  background-color: var(--light-muted-blue);
  border-radius: 4px;
}
