/* public/assets/css/index.css */

/* Import Google Fonts - Outfit & Inter */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap");

:root {
  --edu-primary: #0f4c81; /* Educative Premium Blue */
  --edu-primary-hover: #0a355a;
  --edu-secondary: #f4b400; /* Warm Gold / Yellow */
  --edu-accent: #00a896; /* Teal accent */
  --edu-dark: #1e293b; /* Charcoal text/dark bg */
  --edu-light: #f8fafc; /* Soft grey bg */
  --edu-card-shadow: 0 10px 30px -10px rgba(15, 76, 129, 0.1);
  --edu-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: "Be Vietnam Pro", sans-serif;
  --font-body: "Inter", sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--edu-light);
  color: #334155;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--edu-dark);
  font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Header & Navigation */
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.navbar-brand img {
  max-height: 50px;
}
.nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569 !important;
  transition: var(--edu-transition);
  border-bottom: 2px solid transparent;
}
.nav-link:hover,
.nav-link.active {
  color: var(--edu-primary) !important;
  border-bottom-color: var(--edu-primary);
}

.top-bar {
  background-color: var(--edu-primary);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 6px 0;
}
.top-bar a {
  color: white;
  text-decoration: none;
  transition: var(--edu-transition);
}
.top-bar a:hover {
  color: var(--edu-secondary);
}

/* Banner Slider */
.carousel-item {
  height: 480px;
  background-color: var(--edu-dark);
  position: relative;
}
.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 1;
}
.carousel-caption {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 20px;
  max-width: 520px;
  margin: 0 auto;
  bottom: 8% !important;
  top: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.carousel-caption h5 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}
.carousel-caption p {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.6rem;
  margin-bottom: 0;
}

/* Cards & Components */
.edu-card {
  border: 1px solid transparent;
  border-radius: 16px;
  background: white;
  box-shadow: var(--edu-card-shadow);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease, border-color 0.3s ease;
  overflow: hidden;
  height: 100%;
}
.edu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(15, 76, 129, 0.25);
  border-color: rgba(15, 76, 129, 0.18);
}
.edu-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.edu-card:hover .card-img-top {
  transform: scale(1.08);
}
.edu-badge {
  background-color: rgba(15, 76, 129, 0.1);
  color: var(--edu-primary);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  display: inline-block;
  text-transform: uppercase;
}

/* Section Title */
.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 35px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 700;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55px;
  height: 4px;
  background-color: var(--edu-primary);
  border-radius: 2px;
}
.section-title-center {
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 700;
}
.section-title-center::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--edu-primary);
  border-radius: 2px;
}

/* Buttons */
.btn-edu {
  background-color: var(--edu-primary);
  color: white;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  transition: var(--edu-transition);
}
.btn-edu:hover {
  background-color: var(--edu-primary-hover);
  color: white;
  transform: translateY(-2px);
}
.btn-edu-secondary {
  background-color: white;
  color: var(--edu-primary);
  border: 2px solid var(--edu-primary);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  transition: var(--edu-transition);
}
.btn-edu-secondary:hover {
  background-color: var(--edu-primary);
  color: white;
}

/* Footer */
footer {
  background-color: var(--edu-dark);
  color: #94a3b8;
  font-size: 0.95rem;
}
footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
}
footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--edu-transition);
}
footer a:hover {
  color: white;
  padding-left: 4px;
}
footer .footer-bottom {
  border-top: 1px solid #334155;
  padding: 20px 0;
  font-size: 0.85rem;
}

/* Pagination */
.pagination .page-link {
  color: var(--edu-primary);
  border: 1px solid #e2e8f0;
  margin: 0 3px;
  border-radius: 8px;
  transition: var(--edu-transition);
}
.pagination .page-item.active .page-link {
  background-color: var(--edu-primary);
  border-color: var(--edu-primary);
  color: white;
}
.pagination .page-link:hover {
  background-color: #f1f5f9;
}

/* Image Preview Lightbox Helper */
.img-previewable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.img-previewable:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  filter: brightness(1.05);
}

/* Admin Sidebar Layout & Fixed Viewport System */
@media (min-width: 768px) {
  html.admin-page, body.admin-body {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    margin: 0;
    padding: 0;
  }
  .admin-wrapper {
    display: flex;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
  }
  .admin-sidebar {
    width: 260px;
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    background-color: #161C24 !important;
    color: #919EAB;
    flex-shrink: 0 !important;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: width, opacity;
    position: relative;
    z-index: 100;
    border-right: 1px solid rgba(145, 158, 171, 0.12);
  }
  .admin-sidebar .list-group-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 10px 14px !important;
    margin: 3px 10px !important;
    border-radius: 10px !important;
    color: #919EAB !important;
    font-weight: 500;
    font-size: 0.88rem;
    white-space: nowrap !important;
    background: transparent !important;
    border: none !important;
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out !important;
  }
  .admin-sidebar .list-group-item:hover {
    color: #FFFFFF !important;
    background-color: rgba(145, 158, 171, 0.08) !important;
  }
  .admin-sidebar .list-group-item.active {
    color: #00AB55 !important;
    background-color: rgba(0, 171, 85, 0.08) !important;
    font-weight: 700 !important;
  }
  .admin-sidebar .sidebar-icon {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .admin-sidebar .sidebar-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
  }
  .admin-sidebar .submenu-arrow,
  .submenu-arrow {
    font-size: 0.72rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 8px;
    margin-right: 8px !important;
  }
  .admin-sidebar .sidebar-footer {
    flex-shrink: 0 !important;
    background-color: #161C24 !important;
    border-top: 1px solid rgba(145, 158, 171, 0.12) !important;
    padding: 8px 14px 14px 14px !important;
  }
  .admin-sidebar .sidebar-logout-btn {
    background-color: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 7px 12px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    transition: all 0.25s ease-in-out !important;
  }
  .admin-sidebar .sidebar-logout-btn:hover {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
    transform: translateY(-1px);
  }
  .admin-sidebar .sidebar-logout-btn:hover .sidebar-icon,
  .admin-sidebar .sidebar-logout-btn:hover .sidebar-text,
  .admin-sidebar .sidebar-logout-btn:hover i {
    color: #ffffff !important;
  }

  .admin-sidebar-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #637381;
    padding: 16px 20px 6px 20px;
    white-space: nowrap !important;
  }

  /* Slim Custom Scrollbar for Sidebar */
  .admin-sidebar #adminSidebarMenu::-webkit-scrollbar,
  .admin-sidebar::-webkit-scrollbar {
    width: 4px !important;
  }
  .admin-sidebar #adminSidebarMenu::-webkit-scrollbar-track,
  .admin-sidebar::-webkit-scrollbar-track {
    background: transparent !important;
  }
  .admin-sidebar #adminSidebarMenu::-webkit-scrollbar-thumb,
  .admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(145, 158, 171, 0.25) !important;
    border-radius: 10px !important;
  }
  .admin-sidebar #adminSidebarMenu::-webkit-scrollbar-thumb:hover,
  .admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(145, 158, 171, 0.45) !important;
  }
  .admin-sidebar #adminSidebarMenu,
  .admin-sidebar {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(145, 158, 171, 0.25) transparent !important;
  }

  /* Page Preloader Overlay */
  .admin-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f8fafc;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
  }
  .admin-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  html.sidebar-is-collapsed .admin-wrapper .admin-sidebar,
  .admin-wrapper.sidebar-collapsed .admin-sidebar {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    overflow-x: hidden !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  html.sidebar-is-collapsed .admin-wrapper .admin-sidebar .sidebar-logo-text,
  .admin-wrapper.sidebar-collapsed .admin-sidebar .sidebar-logo-text {
    display: none !important;
  }
  html.sidebar-is-collapsed .admin-wrapper .admin-sidebar .sidebar-logo-mini,
  .admin-wrapper.sidebar-collapsed .admin-sidebar .sidebar-logo-mini {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .admin-wrapper.sidebar-collapsed .admin-sidebar .sidebar-text,
  .admin-wrapper.sidebar-collapsed .admin-sidebar .badge {
    display: none !important;
  }
  .admin-wrapper.sidebar-collapsed .admin-sidebar [data-bs-toggle="collapse"] {
    position: relative !important;
  }
  .admin-wrapper.sidebar-collapsed .admin-sidebar .submenu-arrow {
    display: inline-block !important;
    font-size: 0.52rem !important;
    position: absolute !important;
    right: 3px !important;
    bottom: 4px !important;
    top: auto !important;
    transform: none !important;
    opacity: 0.7 !important;
    transition: transform 0.25s ease !important;
  }
  .admin-wrapper.sidebar-collapsed .admin-sidebar [data-bs-toggle="collapse"]:not(.collapsed) .submenu-arrow {
    transform: rotate(180deg) !important;
  }
  .admin-wrapper.sidebar-collapsed .admin-sidebar .admin-sidebar-section-title {
    display: block !important;
    font-size: 0 !important;
    padding: 10px 14px 6px 14px !important;
    margin: 0 !important;
    height: auto !important;
    text-align: center !important;
  }
  .admin-wrapper.sidebar-collapsed .admin-sidebar .admin-sidebar-section-title::after {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    background-color: rgba(145, 158, 171, 0.18) !important;
    margin: 0 auto !important;
  }
  .admin-wrapper.sidebar-collapsed .admin-sidebar .admin-sidebar-section-title:first-child {
    display: none !important;
  }
  .admin-wrapper.sidebar-collapsed .admin-sidebar .list-group-item {
    justify-content: center !important;
    padding: 9px 0 !important;
    margin: 3px 10px !important;
    width: calc(100% - 20px) !important;
    gap: 0 !important;
    text-align: center !important;
  }
  .admin-wrapper.sidebar-collapsed .admin-sidebar .sidebar-icon {
    margin: 0 !important;
    font-size: 1.15rem !important;
  }
  .admin-wrapper.sidebar-collapsed .admin-sidebar .sidebar-footer {
    padding: 10px 10px 14px 10px !important;
  }
  .admin-wrapper.sidebar-collapsed .admin-sidebar .sidebar-logout-btn {
    justify-content: center !important;
    padding: 9px 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

/* Floating Sidebar Tooltip Badge */
.sidebar-hover-tooltip {
  position: fixed;
  z-index: 99999;
  background-color: #161C24;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(145, 158, 171, 0.24);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.sidebar-hover-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

  .admin-content {
    flex: 1;
    min-width: 0;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex;
    flex-direction: column;
    background-color: #F4F6F8 !important;
    padding: 0.75rem 1.25rem 0.5rem 1.25rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .admin-navbar {
    flex-shrink: 0;
    margin-bottom: 0.75rem !important;
    padding: 0.5rem 1.25rem !important;
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(145, 158, 171, 0.12) !important;
    box-shadow: 0 0 2px 0 rgba(145, 158, 171, 0.2), 0 8px 16px -4px rgba(145, 158, 171, 0.1) !important;
    border-radius: 14px !important;
    position: relative !important;
    z-index: 1040 !important;
  }
  .admin-navbar .dropdown-menu {
    z-index: 1050 !important;
  }
  .admin-main-viewport {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .admin-main-viewport > * {
    flex-shrink: 0 !important;
  }

/* Welcome Banner Premium Gradient */
.bg-gradient-premium {
  background: linear-gradient(135deg, #161C24 0%, #007B55 100%) !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(0, 171, 85, 0.18) !important;
}

  .admin-table-card {
    flex: 0 0 auto !important;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    display: flex;
    flex-direction: column;
    border-radius: 16px !important;
    padding: 1rem 1.25rem !important;
    background-color: #FFFFFF !important;
    border: 1px solid rgba(145, 158, 171, 0.12) !important;
    box-shadow: 0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12) !important;
  }
  .admin-main-viewport .table-responsive,
  .admin-table-card .table-responsive {
    flex: 0 0 auto !important;
    min-height: auto !important;
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: auto !important;
    position: relative;
    border: none !important;
    box-shadow: none !important;
  }
  .admin-main-viewport table thead th,
  .admin-table-card table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #F4F6F8 !important;
    color: #637381;
    font-weight: 600;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #DFE3E8 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
  }
  .admin-card-footer {
    flex-shrink: 0;
    margin-top: 0.4rem !important;
    padding-top: 0.4rem !important;
  }
  .admin-footer {
    flex-shrink: 0;
    margin-top: 0.25rem !important;
    padding: 0.15rem 0 !important;
  }
}

/* Minimal Soft Pill Badges */
.badge-soft-primary {
  background-color: rgba(0, 171, 85, 0.12) !important;
  color: #007B55 !important;
  font-weight: 700;
}
.badge-soft-secondary {
  background-color: rgba(51, 102, 255, 0.12) !important;
  color: #1939B7 !important;
  font-weight: 700;
}
.badge-soft-success {
  background-color: rgba(54, 179, 126, 0.12) !important;
  color: #1B806A !important;
  font-weight: 700;
}
.badge-soft-warning {
  background-color: rgba(255, 171, 0, 0.16) !important;
  color: #B76E00 !important;
  font-weight: 700;
}
.badge-soft-danger {
  background-color: rgba(255, 86, 48, 0.12) !important;
  color: #B71D18 !important;
  font-weight: 700;
}

/* Unified Compact Table Row Styling */
.admin-table-card table td,
.admin-main-viewport table td {
  padding: 0.45rem 0.55rem !important;
  font-size: 0.82rem;
  vertical-align: middle;
}
.admin-table-card table th,
.admin-main-viewport table th {
  padding: 0.55rem 0.6rem !important;
}
.admin-table-card table tbody tr {
  transition: background-color 0.12s ease-in-out;
}
.admin-table-card table tbody tr:hover {
  background-color: #f8fafc !important;
}

/* Compact Action Buttons Hover Styling */
.btn-action-sm {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.88rem !important;
  border-radius: 8px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  background-color: rgba(145, 158, 171, 0.08) !important;
}
.btn-action-sm:hover i,
.btn-action-sm:hover svg {
  color: #FFFFFF !important;
}
.btn-action-sm.text-primary {
  color: #00AB55 !important;
  background-color: rgba(0, 171, 85, 0.08) !important;
}
.btn-action-sm.text-primary:hover {
  background-color: #00AB55 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(0, 171, 85, 0.4) !important;
}
.btn-action-sm.text-success {
  color: #00AB55 !important;
  background-color: rgba(0, 171, 85, 0.08) !important;
}
.btn-action-sm.text-success:hover {
  background-color: #00AB55 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(0, 171, 85, 0.4) !important;
}
.btn-action-sm.text-danger {
  color: #FF4842 !important;
  background-color: rgba(255, 72, 66, 0.08) !important;
}
.btn-action-sm.text-danger:hover {
  background-color: #FF4842 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(255, 72, 66, 0.4) !important;
}
.btn-action-sm.text-warning {
  color: #FFC107 !important;
  background-color: rgba(255, 193, 7, 0.12) !important;
}
.btn-action-sm.text-warning:hover {
  background-color: #FFB500 !important;
  color: #161C24 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(255, 181, 0, 0.4) !important;
}
.btn-action-sm.text-warning:hover i {
  color: #161C24 !important;
}
.btn-action-sm.text-info {
  color: #1890FF !important;
  background-color: rgba(24, 144, 255, 0.08) !important;
}
.btn-action-sm.text-info:hover {
  background-color: #1890FF !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(24, 144, 255, 0.4) !important;
}

.admin-sidebar .sidebar-heading {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  padding: 10px 16px !important;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-bottom: 1px solid rgba(145, 158, 171, 0.12) !important;
  background-color: #161C24 !important;
  color: white;
}
.admin-sidebar .list-group-item {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 14px 20px;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: var(--edu-transition);
}
.admin-sidebar .list-group-item:hover,
.admin-sidebar .list-group-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-left-color: var(--edu-secondary);
}
.admin-navbar {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Dashboard Stat Cards */
.stat-card {
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: var(--edu-transition);
}
.stat-card:hover {
  transform: translateY(-4px);
}

/* Responsive adjust */
@media (max-width: 767.98px) {
  .admin-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-bottom: 1px solid #334155;
  }
  .admin-content {
    padding: 15px 10px;
  }
  .carousel-item {
    height: 220px;
  }
  .carousel-caption h5 {
    font-size: 1.1rem;
  }
  .table-responsive {
    border: none !important;
    box-shadow: none !important;
  }
  .btn-edu {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  .btn-edu-secondary {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

/* Hover to open dropdown menu on desktop */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    margin-top: 0;
  }
}

/* Padding and hover effect for dropdown menu items */
.dropdown-menu .dropdown-item {
  padding-top: 10px;
  padding-bottom: 10px;
  transition: var(--edu-transition);
}
.dropdown-menu .dropdown-item:hover {
  background-color: rgba(15, 76, 129, 0.05);
  color: var(--edu-primary) !important;
  padding-left: 20px; /* Micro-animation sliding right */
}

/* Dropdown animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeIn 0.25s ease forwards;
}

/* Boxed Layout Styles */
.boxed-layout {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Admin Sidebar Collapsible Submenu Arrow */
.admin-sidebar [data-bs-toggle="collapse"]:not(.collapsed) .submenu-arrow {
  transform: rotate(180deg);
}
.admin-sidebar .submenu-arrow {
  transition: transform 0.2s ease-in-out;
}

/* Multi-line Text Truncation */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Announcements Ticker */
.announcements-card {
  box-shadow: var(--edu-card-shadow);
  border: none;
  transition: var(--edu-transition);
}

.announcement-ticker {
  position: relative;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 76, 129, 0.2) transparent;
  user-select: none;
  cursor: grab;
}

.announcement-ticker::-webkit-scrollbar {
  width: 4px;
}

.announcement-ticker::-webkit-scrollbar-track {
  background: transparent;
}

.announcement-ticker::-webkit-scrollbar-thumb {
  background: rgba(15, 76, 129, 0.2);
  border-radius: 4px;
}

.announcement-ticker::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 76, 129, 0.4);
}

.announcement-image-wrapper {
  width: 90px;
  height: 68px;
  min-width: 90px;
  overflow: hidden;
  border-radius: 8px;
  transition: var(--edu-transition);
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.announcement-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.announcement-image-wrapper .placeholder-bg {
  background: linear-gradient(
    135deg,
    var(--edu-secondary) 0%,
    var(--edu-primary) 100%
  );
}

.announcement-image-wrapper .placeholder-bg i {
  font-size: 1.1rem;
  opacity: 0.8;
}

.ticker-item:hover .announcement-image-wrapper img {
  transform: scale(1.1);
}

.hover-primary {
  transition: color 0.2s ease;
}

.hover-primary:hover {
  color: var(--edu-primary) !important;
}

/* Custom Ticker Item hover transition */
.ticker-item {
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 8px;
}
.announcement-ticker .ticker-item:hover {
  background-color: rgba(15, 76, 129, 0.05) !important;
  transform: translateX(6px);
}
.document-ticker .ticker-item:hover {
  background-color: rgba(40, 167, 69, 0.05) !important;
  transform: translateX(6px);
}
.ticker-item:hover .announcement-image-wrapper {
  box-shadow: 0 6px 12px rgba(15, 76, 129, 0.15);
}

.news-list-item {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 6px;
  padding: 4px 6px !important;
  margin-top: 1px;
  margin-bottom: 1px;
}
.news-list-item:hover {
  background-color: rgba(15, 76, 129, 0.05);
  transform: translateX(4px);
}
.news-list-item img {
  transition: transform 0.35s ease;
}
.news-list-item:hover img {
  transform: scale(1.08);
}

/* Document Ticker styling */
.document-ticker {
  height: 240px !important;
}
.document-ticker .ticker-item {
  height: 80px !important;
  display: flex;
  align-items: center;
  padding: 6px 4px !important;
}
.document-ticker .doc-icon-wrapper {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  margin-right: 10px !important;
}
.document-ticker .doc-icon-wrapper i {
  font-size: 1.05rem !important;
}
@media (max-width: 767.98px) {
  .document-ticker {
    height: 210px !important;
  }
  .document-ticker .ticker-item {
    height: 70px !important;
    padding: 6px 4px !important;
  }
  .document-ticker .doc-icon-wrapper {
    width: 34px;
    height: 34px;
    margin-right: 8px !important;
  }
  .document-ticker .doc-icon-wrapper i {
    font-size: 0.95rem !important;
  }
}

/* Sidebar Header & Button styling for 992px - 1400px screen widths */
@media (min-width: 992px) and (max-width: 1400px) {
  .col-lg-4 .section-title {
    font-size: 1.02rem !important;
    white-space: nowrap !important;
  }
}

/* Desktop Ticker Heights (Show items matching news slider height) */
@media (min-width: 992px) {
  .announcement-ticker {
    height: 240px !important;
  }
  .announcement-ticker .ticker-item {
    height: 80px !important;
    display: flex;
    align-items: center;
    padding-top: 2px;
    padding-bottom: 2px;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .announcement-ticker {
    height: 380px !important;
  }
  .announcement-ticker .ticker-item {
    height: 95px !important;
    display: flex;
    align-items: center;
    padding-top: 2px;
    padding-bottom: 2px;
  }
}

/* Mobile Ticker Heights (Show 3 items, each 60px, with image, 1-line title, time) */
@media (max-width: 767.98px) {
  .announcement-ticker {
    height: 200px !important;
  }

  .announcement-ticker .ticker-item {
    height: auto !important;
    min-height: 60px !important;
    display: flex;
    align-items: center;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .announcement-ticker .announcement-image-wrapper {
    width: 64px !important;
    height: 48px !important;
    min-width: 64px !important;
    border-radius: 6px !important;
  }

  .announcement-ticker .announcement-image-wrapper .placeholder-bg i {
    font-size: 0.85rem;
  }

  .announcement-ticker .ticker-item h6 {
    margin-bottom: 1px !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    width: 100% !important;
  }

  .announcement-ticker .ticker-item .text-muted.small {
    font-size: 0.68rem !important;
    margin-top: 1px !important;
  }
}

/* Mobile Menu Optimizations (Screens < 992px) */
@media (max-width: 991.98px) {
  /* Thin, elegant mobile navbar */
  .navbar {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    min-height: auto !important;
  }

  /* Sleek, smaller hamburger icon without default borders - Prominent Style */
  .navbar-toggler {
    border: none !important;
    padding: 8px 10px !important;
    font-size: 0.85rem !important;
    color: #ffffff !important;
    background-color: var(--edu-primary) !important;
    box-shadow: 0 4px 10px rgba(15, 76, 129, 0.2) !important;
    transition: var(--edu-transition);
    border-radius: 8px;
  }

  .navbar-toggler:focus,
  .navbar-toggler:active {
    outline: none !important;
    box-shadow: 0 4px 12px rgba(10, 53, 90, 0.3) !important;
    background-color: var(--edu-primary-hover, #0a355a) !important;
  }

  .navbar-toggler-icon {
    width: 0.85rem !important;
    height: 0.85rem !important;
    filter: invert(1) !important;
  }

  /* Floating card style for expanded mobile menu collapse */
  .navbar-collapse {
    background-color: #ffffff;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Menu item list layout and link items spacing */
  .navbar-nav .nav-item {
    margin-bottom: 4px;
  }

  .navbar-nav .nav-link {
    padding: 10px 14px !important;
    border-radius: 8px;
    border-bottom: none !important; /* Remove desktop bottom borders */
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #334155 !important;
    transition: var(--edu-transition);
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: rgba(15, 76, 129, 0.05) !important;
    color: var(--edu-primary) !important;
  }

  /* Styled dropdown submenus with clear left border hierarchy indicator */
  .navbar-collapse .dropdown-menu {
    border: none !important;
    background-color: #f8fafc !important; /* Nested soft grey bg */
    box-shadow: none !important;
    margin: 4px 0 8px 0 !important;
    padding: 6px !important;
    border-left: 3px solid var(--edu-primary) !important;
    border-radius: 8px !important;
  }

  .navbar-collapse .dropdown-item {
    padding: 8px 16px !important;
    font-size: 0.86rem !important;
    font-weight: 500;
    color: #475569 !important;
    border-radius: 6px;
    transition: var(--edu-transition);
  }

  .navbar-collapse .dropdown-item:hover,
  .navbar-collapse .dropdown-item.active {
    background-color: rgba(15, 76, 129, 0.08) !important;
    color: var(--edu-primary) !important;
    padding-left: 20px !important; /* Micro-animation sliding right */
  }
}

/* Homepage 2-Column Mobile News Card Optimizations */
@media (max-width: 575.98px) {
  .col-6 .edu-card .card-img-top {
    height: 110px !important;
  }

  .col-6 .edu-card .card-body {
    padding: 10px !important;
  }

  .col-6 .edu-card .card-title {
    font-size: 0.82rem !important;
    height: 36px !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
  }

  .col-6 .edu-card .card-text {
    display: none !important;
  }

  .col-6 .edu-card .border-top {
    padding-top: 6px !important;
    margin-top: auto !important;
  }

  .col-6 .edu-card .border-top a,
  .col-6 .edu-card .border-top small {
    font-size: 0.7rem !important;
  }
}

/* Mobile About Section Quick Stats Optimizations */
@media (max-width: 575.98px) {
  .school-stats-row .col-6 .d-flex {
    flex-wrap: nowrap !important;
  }
  .school-stats-row .col-6 .d-flex .bg-opacity-10 {
    padding: 6px !important;
    margin-right: 8px !important;
  }
  .school-stats-row .col-6 .d-flex .fa-2x {
    font-size: 1.25rem !important;
  }
  .school-stats-row .col-6 .d-flex h6 {
    font-size: 0.85rem !important;
    white-space: nowrap;
    margin-bottom: 0 !important;
  }
  .about-more-btn {
    margin-top: 12px !important;
    font-size: 0.78rem !important;
    padding: 4px 10px !important;
  }
}

/* Homepage 2-Column Mobile Resource Card Optimizations */
@media (max-width: 575.98px) {
  .edu-resource-card {
    padding: 15px !important;
    border-radius: 12px !important;
  }

  .edu-resource-card .icon-wrapper {
    margin-bottom: 8px !important;
  }

  .edu-resource-card .icon-wrapper i {
    font-size: 2.2rem !important;
  }

  .edu-resource-card h6 {
    font-size: 0.8rem !important;
    height: 36px !important;
    margin-bottom: 0 !important;
    line-height: 1.35 !important;
  }

  .edu-resource-card p {
    display: none !important;
  }

  .edu-resource-card .btn-container {
    margin-top: 10px !important;
  }

  .edu-resource-card .btn-container .btn {
    font-size: 0.75rem !important;
    padding: 5px 8px !important;
  }

  .edu-resource-card .meta-footer {
    display: none !important;
  }
}

/* ==========================================
   INTEGRATED SCHOOL HEADER NAVBAR STYLE
   ========================================== */

.school-header-navbar {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: var(--edu-transition);
  padding: 0 !important;
}

/* Desktop Styles (min-width: 992px) - Restore original clean white sticky navbar */
@media (min-width: 992px) {
  .school-header-navbar {
    background-image: none !important;
    background-color: #ffffff !important;
    height: auto !important;
    position: sticky !important;
    top: 0;
    z-index: 1020;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* Mobile Styles (max-width: 991.98px) */
@media (max-width: 991.98px) {
  .school-header-navbar {
    /* Scale height dynamically to maintain the exact 1140:150 (7.6:1) aspect ratio of the banner image */
    height: calc(100vw * 150 / 1140) !important;
    max-height: 150px;
    background-size: 100% 100% !important; /* Fits the full image perfectly with 0% cropping */
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    position: sticky !important;
    top: 0;
    z-index: 1020;
  }

  .school-header-navbar .container {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: relative !important;
  }

  /* Reposition hamburger menu toggler vertically centered */
  .school-header-navbar .navbar-toggler {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 1050 !important;
  }

  /* Absolute position the expanded mobile dropdown card so it overlays neatly below the dynamic navbar */
  .school-header-navbar .navbar-collapse {
    position: absolute !important;
    top: 100% !important; /* Align exactly at the bottom edge of the dynamic navbar */
    margin-top: 8px !important; /* Floating gap */
    left: 15px !important;
    right: 15px !important;
    width: calc(100% - 30px) !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    z-index: 1040 !important;
  }

  .school-header-navbar .navbar-nav .nav-link {
    color: #334155 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .school-header-navbar .navbar-nav .nav-link:hover,
  .school-header-navbar .navbar-nav .nav-link.active {
    background-color: rgba(15, 76, 129, 0.05) !important;
    color: var(--edu-primary) !important;
  }
}

/* Mobile Section Titles Optimizations */
@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.2rem !important;
    padding-bottom: 8px !important;
    margin-bottom: 20px !important;
  }

  .section-title::after {
    width: 40px !important;
    height: 3px !important;
  }

  .section-title-center {
    font-size: 1.35rem !important;
    padding-bottom: 8px !important;
    margin-bottom: 25px !important;
  }

  .section-title-center::after {
    width: 50px !important;
    height: 3px !important;
  }
}

/* Hide breadcrumbs on mobile and tablet screens to save space */
@media (max-width: 767.98px) {
  body:not(.admin-body) .school-breadcrumb-wrapper,
  body:not(.admin-body) div:has(> .container > nav[aria-label="breadcrumb"]),
  body:not(.admin-body) div:has(> nav[aria-label="breadcrumb"]),
  body:not(.admin-body) nav[aria-label="breadcrumb"],
  body:not(.admin-body) .breadcrumb {
    display: none !important;
  }
}

/* Mobile Category Horizontal Scroll */
.school-category-scroll {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.school-category-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
.school-category-scroll .badge {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease;
}

/* Mobile 2-column News Card Optimizations */
@media (max-width: 767.98px) {
  /* Keep all content but scale down spacing, images, and fonts to fit 2-column grid neatly */
  .col-6 .edu-card {
    border-radius: 12px !important;
  }

  .col-6 .edu-card .card-img-top {
    height: 110px !important;
  }

  .col-6 .edu-card .card-body {
    padding: 10px !important;
  }

  /* Stack badge and date vertically to prevent overlapping */
  .col-6 .edu-card .card-body > .d-flex.justify-content-between {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
  }

  .col-6 .edu-card .edu-badge {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    margin-bottom: 0 !important;
  }

  .col-6 .edu-card .text-muted {
    font-size: 0.65rem !important;
  }

  /* Title font and height scaling */
  .col-6 .edu-card .card-title {
    font-size: 0.82rem !important;
    height: 36px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  /* Description text font and height scaling (essential: must NOT be hidden) */
  .col-6 .edu-card .card-text {
    font-size: 0.72rem !important;
    height: 48px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
  }

  /* Footer border and button sizing */
  .col-6 .edu-card .border-top {
    padding-top: 6px !important;
    margin-top: auto !important;
  }

  .col-6 .edu-card .border-top a {
    font-size: 0.72rem !important;
  }

  .col-6 .edu-card .border-top small {
    font-size: 0.65rem !important;
  }
}

/* Mobile Schedule Page Optimizations */
@media (max-width: 767.98px) {
  /* Make the grade switcher/filter card super compact */
  .school-grade-switcher {
    padding: 12px !important;
    margin-bottom: 20px !important;
    border-radius: 12px !important;
  }
  .school-grade-switcher h5 {
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
  }
  .school-grade-switcher .d-flex {
    gap: 6px !important;
  }
  .school-grade-switcher .btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    border-radius: 8px !important;
  }

  /* Slightly optimize schedule cards padding on mobile to save vertical scrolling space */
  .school-schedule-card {
    padding: 16px !important;
    border-radius: 12px !important;
  }
  .school-schedule-card .border-top {
    margin-top: 15px !important;
    padding-top: 10px !important;
  }
}

/* Mobile Typography & Layout Optimizations for Resource Pages */
@media (max-width: 767.98px) {
  /* Main Title and Header Description */
  .col-lg-9 h1.text-primary {
    font-size: 1.35rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }
  .col-lg-9 p.text-muted {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.25rem !important;
  }

  /* Compact Search Input inside Mobile Header */
  .school-mobile-resource-header .form-control {
    font-size: 0.82rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  .school-mobile-resource-header .form-control::placeholder {
    font-size: 0.78rem !important;
  }
  .school-mobile-resource-header .btn {
    font-size: 0.82rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Resources and Exams Mobile List Cards */
  .col-lg-9 .d-block.d-md-none .card {
    padding: 12px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-left: 3px solid #0d6efd !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
  }
  .col-lg-9 .d-block.d-md-none .card h6 {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }
  .col-lg-9 .d-block.d-md-none .card p.text-muted {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }
  .col-lg-9 .d-block.d-md-none .card .badge {
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
  }
  .col-lg-9 .d-block.d-md-none .card small {
    font-size: 0.68rem !important;
  }
  .col-lg-9 .d-block.d-md-none .card .btn-sm {
    font-size: 0.72rem !important;
    padding: 3px 10px !important;
  }

  /* Photo Library Cards on Mobile */
  .photo-card {
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
  }
  .photo-card .card-body {
    padding: 8px !important;
  }
  .photo-card .badge {
    font-size: 0.62rem !important;
    padding: 2px 5px !important;
    margin-bottom: 3px !important;
  }
  .photo-card .card-title {
    font-size: 0.78rem !important;
    margin-bottom: 3px !important;
    line-height: 1.3 !important;
  }
  .photo-card small {
    font-size: 0.65rem !important;
  }

  /* Video Library Cards on Mobile */
  .video-card {
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
  }
  .video-card .card-body {
    padding: 10px !important;
  }
  .video-card .badge {
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
    margin-bottom: 6px !important;
  }
  .video-card h6 {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    height: 32px !important; /* Adjusted for 2 lines of smaller font */
    margin-bottom: 4px !important;
  }
  .video-card p.text-muted {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
    height: 28px !important; /* Adjusted for 2 lines of smaller font */
    margin-bottom: 4px !important;
  }
  .video-card .border-top {
    margin-top: 6px !important;
    padding-top: 6px !important;
    font-size: 0.68rem !important;
  }
  .video-card .play-btn-circle {
    width: 45px !important;
    height: 45px !important;
  }
  .video-card .play-btn-circle i {
    font-size: 0.9rem !important;
    margin-left: 3px !important;
  }

  /* Documents Mobile List Cards & Metadata */
  .school-document-mobile-card {
    padding: 12px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-left: 3px solid #0d6efd !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
  }
  .school-document-mobile-card h6 {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }
  .school-document-mobile-card p.text-muted {
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }
  .school-document-mobile-card .badge {
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
  }
  .school-document-mobile-card small {
    font-size: 0.68rem !important;
  }
  .school-document-mobile-card .btn-sm {
    font-size: 0.72rem !important;
    padding: 3px 10px !important;
  }
  .school-doc-metadata {
    padding: 8px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    font-size: 0.68rem !important;
    line-height: 1.4 !important;
  }
  .school-doc-metadata div {
    margin-bottom: 3px !important;
  }
  .school-doc-metadata div:last-child {
    margin-bottom: 0 !important;
  }

  /* Filter Status Alert Box on Mobile */
  .col-lg-9 .alert-info {
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
    margin-bottom: 15px !important;
    border-radius: 10px !important;
  }
  .col-lg-9 .alert-info .btn-outline-secondary {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
  }
}

/* Fix Bootstrap Dropdown clipping inside .table-responsive */
@media (min-width: 768px) {
  .table-responsive {
    overflow: visible !important;
  }
}

/* Document & Exam Cards on Home Page */
.edu-tabs {
  background: #f1f5f9;
  padding: 4px;
  border-radius: 30px;
  display: inline-flex;
}
.edu-tabs .nav-item {
  margin: 0;
}
.edu-tabs .nav-link {
  border: none !important;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b !important;
  background: transparent;
  transition: all 0.25s ease;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-bottom: none !important;
}
.edu-tabs .nav-link:hover {
  color: var(--edu-primary) !important;
  border-bottom: none !important;
}
.edu-tabs .nav-link.active {
  background-color: var(--edu-primary) !important;
  color: #ffffff !important;
  border-bottom: none !important;
  box-shadow: 0 4px 10px rgba(15, 76, 129, 0.15);
}

.edu-doc-vertical-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 16px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.03),
    0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.edu-doc-vertical-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 12px 20px -8px rgba(15, 76, 129, 0.15),
    0 4px 6px -2px rgba(15, 76, 129, 0.05) !important;
  border-color: rgba(15, 76, 129, 0.18) !important;
}
.edu-doc-vertical-card .doc-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.edu-doc-vertical-card:hover .doc-icon-badge {
  transform: scale(1.1) rotate(5deg);
}

/* Badge mapping */
.doc-type-badge {
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 500;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
}
.doc-ext-badge {
  font-weight: 700;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ext-pdf {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
}
.ext-doc,
.ext-docx {
  background-color: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.15);
}
.ext-xls,
.ext-xlsx {
  background-color: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.15);
}
.ext-ppt,
.ext-pptx {
  background-color: rgba(249, 115, 22, 0.08);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.15);
}
.ext-zip,
.ext-rar {
  background-color: rgba(168, 85, 247, 0.08);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.15);
}
.ext-txt {
  background-color: rgba(100, 116, 139, 0.08);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.15);
}

/* Color Badge Containers */
.icon-pdf {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}
.icon-word {
  background-color: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
}
.icon-excel {
  background-color: rgba(34, 197, 94, 0.08);
  color: #22c55e;
}
.icon-powerpoint {
  background-color: rgba(249, 115, 22, 0.08);
  color: #f97316;
}
.icon-archive {
  background-color: rgba(168, 85, 247, 0.08);
  color: #a855f7;
}
.icon-text {
  background-color: rgba(100, 116, 139, 0.08);
  color: #64748b;
}

.doc-title-link {
  display: block;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--edu-dark);
  font-weight: 600;
  transition: all 0.2s ease;
}
.doc-title-link:hover {
  color: var(--edu-primary) !important;
}

.border-top-dashed {
  border-top: 1px dashed #e2e8f0;
}

.btn-outline-primary {
  color: var(--edu-primary);
  border-color: var(--edu-primary);
}
.btn-outline-primary:hover {
  background-color: var(--edu-primary);
  color: white;
}
.btn-primary {
  background-color: var(--edu-primary);
  border-color: var(--edu-primary);
}
.btn-primary:hover {
  background-color: var(--edu-primary-hover);
  border-color: var(--edu-primary-hover);
}

/* Slider wrappers and navigation buttons */
.slider-wrapper {
  position: relative;
}
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--edu-primary);
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.slider-nav-btn:hover {
  background: var(--edu-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.35);
  border-color: var(--edu-primary);
}
.prev-btn {
  left: 5px;
}
.next-btn {
  right: 5px;
}
.hide-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
.scroll-smooth {
  scroll-behavior: smooth;
}

/* Two-row grid horizontal slider for News & Events */
.news-grid-slider {
  display: grid;
  grid-template-rows: 1fr;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - 8px);
  gap: 16px;
}
@media (max-width: 767.98px) {
  .news-grid-slider {
    grid-auto-columns: 100%;
    gap: 12px;
  }
}
.news-slider-item {
  width: 100%;
  scroll-snap-align: start;
}

/* File size badge inside document/exam cards */
.doc-size-badge {
  font-size: 0.68rem;
  padding: 3px 6px;
  font-weight: 500;
  border-radius: 4px;
  background-color: var(--bs-light);
  color: #6c757d;
  border: 1px solid #dee2e6;
  white-space: nowrap;
}

/* Custom scrollable vertical news list styling */
.news-scroll-list {
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f1f1;
}
.news-scroll-list::-webkit-scrollbar {
  width: 6px;
}
.news-scroll-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}
.news-scroll-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
.news-scroll-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.news-scroll-list .border-bottom:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Hover style for white text on themed primary background cards */
.hover-light-blue {
  transition: color 0.15s ease-in-out;
}
.hover-light-blue:hover {
  color: #93c5fd !important;
}

@media (max-width: 767.98px) {
  .news-slider-item .card-img-top {
    height: 180px !important;
  }
  .news-scroll-list {
    max-height: 380px !important;
  }
}

@media (min-width: 768px) {
  .news-grid-slider {
    height: 450px !important;
  }
  .news-scroll-list {
    height: 450px !important;
    max-height: none !important;
  }
  .news-slider-item .card-img-top {
    height: 210px !important;
  }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.blink-text {
  animation: blink 1s ease-in-out infinite;
}

/* Responsive explorer sidebar tree height */
.explorer-sidebar-card {
  min-height: auto !important;
}
@media (min-width: 992px) {
  .explorer-sidebar-card {
    min-height: 75vh !important;
  }
}

/* Custom glowing pulse animations for new indicators */
@keyframes pulseRed {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 8, 68, 0.7); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 5px rgba(255, 8, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 8, 68, 0); }
}
@keyframes pulseOrange {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 175, 25, 0.7); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 5px rgba(245, 175, 25, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 175, 25, 0); }
}
@keyframes pulseGreen {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 239, 125, 0.7); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 5px rgba(56, 239, 125, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 239, 125, 0); }
}

/* Custom premium glowing badges */
.badge-new-ann {
  background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  color: #fff !important;
  font-size: 0.65rem !important;
  font-weight: 800;
  padding: 3px 6px !important;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pulseRed 2s infinite ease-in-out;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(255, 8, 68, 0.3);
  border: none;
}
.badge-new-news {
  background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
  color: #fff !important;
  font-size: 0.65rem !important;
  font-weight: 800;
  padding: 3px 6px !important;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pulseOrange 2s infinite ease-in-out;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(245, 175, 25, 0.3);
  border: none;
}
.badge-new-doc {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff !important;
  font-size: 0.65rem !important;
  font-weight: 800;
  padding: 3px 6px !important;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pulseGreen 2s infinite ease-in-out;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(56, 239, 125, 0.3);
  border: none;
}

/* Document Icon Custom themed gradients styling */
.doc-icon-wrapper {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ticker-item:hover .doc-icon-wrapper {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.doc-icon-pdf {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c62828;
  border: 1px solid rgba(198, 40, 40, 0.15);
}
.doc-icon-word {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  border: 1px solid rgba(21, 101, 192, 0.15);
}
.doc-icon-excel {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.15);
}
.doc-icon-zip {
  background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
  color: #f57f17;
  border: 1px solid rgba(245, 127, 23, 0.15);
}
.doc-icon-other {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  color: #00838f;
  border: 1px solid rgba(0, 131, 143, 0.15);
}

/* Luxury Card Hover Actions System */
.folder-card, .video-card, .photo-card, .exam-card, .file-card, .resource-card {
  position: relative !important;
  overflow: visible !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.folder-card:hover, .video-card:hover, .photo-card:hover, .exam-card:hover, .file-card:hover, .resource-card:hover {
  border-color: rgba(0, 171, 85, 0.4) !important;
  box-shadow: 0 8px 20px -4px rgba(145, 158, 171, 0.24) !important;
  transform: translateY(-2px);
}
.folder-actions, 
.video-actions, 
.photo-actions, 
.exam-actions, 
.file-actions, 
.resource-actions,
.card-hover-actions {
  position: absolute !important;
  bottom: -8px !important;
  right: -8px !important;
  top: auto !important;
  transform: scale(0.85) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(6px) !important;
  padding: 3px 5px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
  border: 1px solid rgba(145, 158, 171, 0.25) !important;
}
.folder-card:hover > .folder-actions, 
.video-card:hover > .video-actions, 
.photo-card:hover > .photo-actions, 
.exam-card:hover > .exam-actions, 
.file-card:hover > .file-actions, 
.resource-card:hover > .resource-actions,
.file-card:hover > .resource-actions,
.file-card:hover > .exam-actions,
.card:hover > .folder-actions,
.card:hover > .video-actions,
.card:hover > .photo-actions,
.card:hover > .exam-actions,
.card:hover > .file-actions,
.card:hover > .resource-actions {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}
.btn-folder-action {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  font-size: 0.72rem !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
.btn-folder-action-edit {
  background-color: rgba(24, 119, 242, 0.1) !important;
  color: #1877F2 !important;
}
.btn-folder-action-edit:hover {
  background-color: #1877F2 !important;
  color: #FFFFFF !important;
  transform: scale(1.12) !important;
}
.btn-folder-action-delete {
  background-color: rgba(255, 72, 66, 0.1) !important;
  color: #FF4842 !important;
}
.btn-folder-action-delete:hover {
  background-color: #FF4842 !important;
  color: #FFFFFF !important;
  transform: scale(1.12) !important;
}
.btn-folder-action-view {
  background-color: rgba(0, 171, 85, 0.1) !important;
  color: #00AB55 !important;
}
.btn-folder-action-view:hover {
  background-color: #00AB55 !important;
  color: #FFFFFF !important;
  transform: scale(1.12) !important;
}
.btn-folder-action-download {
  background-color: rgba(0, 184, 217, 0.1) !important;
  color: #00B8D9 !important;
}
.btn-folder-action-download:hover {
  background-color: #00B8D9 !important;
  color: #FFFFFF !important;
  transform: scale(1.12) !important;
}

/* Luxury Dynamic File Chip System for all file types */
.btn-file-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px 4px 5px !important;
  border-radius: 20px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  max-width: 220px !important;
  white-space: nowrap !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-file-chip:hover {
  color: #FFFFFF !important;
  transform: translateY(-1px);
}
.btn-file-chip .file-icon-box {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-size: 0.75rem !important;
  transition: all 0.25s ease !important;
}
.btn-file-chip:hover .file-icon-box {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}
.btn-file-chip .file-name {
  max-width: 130px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.76rem !important;
}

/* PDF - Red */
.btn-file-chip-pdf, .btn-pdf-chip {
  background: rgba(255, 72, 66, 0.08) !important;
  color: #FF4842 !important;
  border: 1px solid rgba(255, 72, 66, 0.25) !important;
}
.btn-file-chip-pdf .file-icon-box, .btn-pdf-chip .pdf-icon-box {
  background-color: rgba(255, 72, 66, 0.16) !important;
  color: #FF4842 !important;
}
.btn-file-chip-pdf:hover, .btn-pdf-chip:hover {
  background: #FF4842 !important;
  border-color: #FF4842 !important;
  box-shadow: 0 4px 12px -2px rgba(255, 72, 66, 0.4) !important;
}

/* WORD - Blue */
.btn-file-chip-word {
  background: rgba(24, 119, 242, 0.08) !important;
  color: #1877F2 !important;
  border: 1px solid rgba(24, 119, 242, 0.25) !important;
}
.btn-file-chip-word .file-icon-box {
  background-color: rgba(24, 119, 242, 0.16) !important;
  color: #1877F2 !important;
}
.btn-file-chip-word:hover {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
  box-shadow: 0 4px 12px -2px rgba(24, 119, 242, 0.4) !important;
}

/* EXCEL - Green */
.btn-file-chip-excel {
  background: rgba(34, 197, 94, 0.08) !important;
  color: #16A34A !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
}
.btn-file-chip-excel .file-icon-box {
  background-color: rgba(34, 197, 94, 0.16) !important;
  color: #16A34A !important;
}
.btn-file-chip-excel:hover {
  background: #16A34A !important;
  border-color: #16A34A !important;
  box-shadow: 0 4px 12px -2px rgba(34, 197, 94, 0.4) !important;
}

/* POWERPOINT - Orange */
.btn-file-chip-ppt {
  background: rgba(249, 115, 22, 0.08) !important;
  color: #EA580C !important;
  border: 1px solid rgba(249, 115, 22, 0.25) !important;
}
.btn-file-chip-ppt .file-icon-box {
  background-color: rgba(249, 115, 22, 0.16) !important;
  color: #EA580C !important;
}
.btn-file-chip-ppt:hover {
  background: #EA580C !important;
  border-color: #EA580C !important;
  box-shadow: 0 4px 12px -2px rgba(249, 115, 22, 0.4) !important;
}

/* ZIP / ARCHIVE - Amber */
.btn-file-chip-zip {
  background: rgba(234, 179, 8, 0.08) !important;
  color: #CA8A04 !important;
  border: 1px solid rgba(234, 179, 8, 0.25) !important;
}
.btn-file-chip-zip .file-icon-box {
  background-color: rgba(234, 179, 8, 0.16) !important;
  color: #CA8A04 !important;
}
.btn-file-chip-zip:hover {
  background: #CA8A04 !important;
  border-color: #CA8A04 !important;
  box-shadow: 0 4px 12px -2px rgba(234, 179, 8, 0.4) !important;
}

/* IMAGE - Purple */
.btn-file-chip-image {
  background: rgba(147, 51, 234, 0.08) !important;
  color: #9333EA !important;
  border: 1px solid rgba(147, 51, 234, 0.25) !important;
}
.btn-file-chip-image .file-icon-box {
  background-color: rgba(147, 51, 234, 0.16) !important;
  color: #9333EA !important;
}
.btn-file-chip-image:hover {
  background: #9333EA !important;
  border-color: #9333EA !important;
  box-shadow: 0 4px 12px -2px rgba(147, 51, 234, 0.4) !important;
}

/* OTHER - Slate */
.btn-file-chip-other {
  background: rgba(100, 116, 139, 0.08) !important;
  color: #475569 !important;
  border: 1px solid rgba(100, 116, 139, 0.25) !important;
}
.btn-file-chip-other .file-icon-box {
  background-color: rgba(100, 116, 139, 0.16) !important;
  color: #475569 !important;
}
.btn-file-chip-other:hover {
  background: #475569 !important;
  border-color: #475569 !important;
  box-shadow: 0 4px 12px -2px rgba(100, 116, 139, 0.4) !important;
}

/* Custom Emerald DataTables Styling */
.dataTables_wrapper {
  padding: 0 !important;
  margin: 0 !important;
}
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 0.75rem !important;
}
.dataTables_wrapper .dataTables_length {
  margin-bottom: 0.75rem !important;
  font-size: 0.82rem !important;
  color: #637381 !important;
}
.dataTables_wrapper .dataTables_paginate {
  margin-top: 0.75rem !important;
  display: flex !important;
  justify-content: flex-end !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.active .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
  background-color: #00AB55 !important;
  border-color: #00AB55 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 10px -2px rgba(0, 171, 85, 0.4) !important;
  border-radius: 8px !important;
}
.dataTables_wrapper .dataTables_paginate .page-link {
  border-radius: 8px !important;
  margin: 0 2px !important;
  color: #637381 !important;
  font-weight: 600 !important;
  border: 1px solid rgba(145, 158, 171, 0.2) !important;
  font-size: 0.8rem !important;
  padding: 4px 10px !important;
}
.dataTables_wrapper .dataTables_filter input {
  border-radius: 8px !important;
  padding: 4px 12px !important;
  border: 1px solid rgba(145, 158, 171, 0.24) !important;
  outline: none !important;
  font-size: 0.82rem !important;
  margin-left: 6px !important;
}
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #00AB55 !important;
  box-shadow: 0 0 0 3px rgba(0, 171, 85, 0.16) !important;
}
.dataTables_wrapper .dataTables_length select {
  border-radius: 8px !important;
  padding: 4px 28px 4px 12px !important;
  min-width: 65px !important;
  border: 1px solid rgba(145, 158, 171, 0.24) !important;
  font-size: 0.82rem !important;
  margin: 0 6px !important;
  cursor: pointer !important;
  background-position: right 8px center !important;
}
.dataTables_wrapper .dataTables_info {
  font-size: 0.78rem !important;
  color: #637381 !important;
  padding-top: 0.5rem !important;
}

/* Remove all outer border frames around tables */
.table-responsive,
.dataTables_wrapper table.dataTable,
.dataTables_wrapper .table,
table.dataTable.no-footer {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Minimal Soft Table Row Borders & Optimized Padding System */
.table th,
.table td,
table.dataTable th,
table.dataTable td,
.admin-main-viewport table th,
.admin-main-viewport table td {
  padding: 0.7rem 0.85rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(145, 158, 171, 0.12) !important;
  border-top: none !important;
}

table.dataTable.no-footer,
.table > tbody > tr:last-child > td,
.table > tbody > tr:last-child > th,
table.dataTable tbody tr:last-child td {
  border-bottom: none !important;
}

.table thead th,
table.dataTable thead th {
  padding: 0.7rem 1.75rem 0.7rem 0.85rem !important;
  background-color: #F4F6F8 !important;
  color: #637381 !important;
  border-bottom: 1px solid rgba(145, 158, 171, 0.2) !important;
  font-weight: 600 !important;
  font-size: 0.76rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.table tbody tr {
  transition: background-color 0.15s ease-in-out !important;
}

.table tbody tr:hover {
  background-color: rgba(145, 158, 171, 0.04) !important;
}

/* Smooth Table Rendering & Skeleton Lazy Loading */
.table-responsive,
.dataTables_wrapper,
.table {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-responsive.table-loaded,
.dataTables_wrapper.table-loaded,
.table.table-loaded,
.table-loaded {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes tableSkeletonShimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

.table-skeleton-cell {
  background: #f6f7f8;
  background: linear-gradient(to right, #f6f7f8 8%, #edeef0 18%, #f6f7f8 33%);
  background-size: 800px 104px;
  animation: tableSkeletonShimmer 1.5s infinite linear;
  border-radius: 4px;
  height: 20px;
}

/* Premium Custom UI Tooltip Badge Styling */
.tooltip {
  pointer-events: none !important;
  z-index: 10090 !important;
}

.tooltip .tooltip-inner {
  background-color: #161C24 !important;
  color: #FFFFFF !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 16px -4px rgba(22, 28, 36, 0.28), 0 0 2px 0 rgba(22, 28, 36, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  letter-spacing: 0.02em !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #161C24 !important;
}
.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #161C24 !important;
}
.tooltip.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #161C24 !important;
}
.tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #161C24 !important;
}
