:root {
  --sc-primary: #1a237e;
  --sc-primary-rgb: 26, 35, 126;
  --sc-secondary: #0d47a1;
  --sc-secondary-rgb: 13, 71, 161;
  --sc-accent: #ff6f00;
  --sc-accent-rgb: 255, 111, 0;
  --sc-success: #2e7d32;
  --sc-danger: #c62828;
  --sc-warning: #f9a825;
  --sc-info: #0277bd;
  --sc-light: #f8f9fa;
  --sc-dark: #1a1a2e;
  --sc-body-bg: #f5f6fa;
  --sc-card-bg: #ffffff;
  --sc-text: #212529;
  --sc-text-muted: #6c757d;
  --sc-border: #dee2e6;
  --sc-sidebar-bg: #1a237e;
  --sc-sidebar-text: #ffffff;
  --sc-sidebar-hover: rgba(255, 255, 255, 0.1);
  --sc-sidebar-active: rgba(255, 255, 255, 0.2);
  --sc-navbar-bg: rgba(255, 255, 255, 0.85);
  --sc-navbar-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --sc-gradient-primary: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
  --sc-gradient-accent: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
  --sc-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --sc-radius: 0.5rem;
  --sc-radius-lg: 1rem;
  --sc-transition: all 0.3s ease;
  --sc-font-family: 'Poppins', sans-serif;
}

[data-bs-theme="dark"] {
  --sc-body-bg: #0f0f23;
  --sc-card-bg: #1a1a2e;
  --sc-text: #e0e0e0;
  --sc-text-muted: #9e9e9e;
  --sc-border: #2a2a3e;
  --sc-navbar-bg: rgba(15, 15, 35, 0.9);
  --sc-navbar-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  --sc-sidebar-bg: #0f0f23;
  --sc-light: #1a1a2e;
}

[data-bs-theme="dark"] .card {
  background-color: var(--sc-card-bg);
  border-color: var(--sc-border);
}

[data-bs-theme="dark"] .dropdown-menu {
  background-color: #1a1a2e;
  border-color: var(--sc-border);
}

[data-bs-theme="dark"] .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .table {
  --bs-table-bg: var(--sc-card-bg);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
  color: var(--sc-text);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #16213e;
  border-color: var(--sc-border);
  color: var(--sc-text);
}

[data-bs-theme="dark"] .offcanvas {
  background-color: var(--sc-card-bg);
}

[data-bs-theme="dark"] .modal-content {
  background-color: var(--sc-card-bg);
  border-color: var(--sc-border);
}

[data-bs-theme="dark"] .bg-light {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .text-muted {
  color: var(--sc-text-muted) !important;
}

[data-bs-theme="dark"] .card .text-dark,
[data-bs-theme="dark"] .card h5,
[data-bs-theme="dark"] .card h6,
[data-bs-theme="dark"] .card .fw-semibold,
[data-bs-theme="dark"] .card .fw-bold,
[data-bs-theme="dark"] .card span,
[data-bs-theme="dark"] .card small,
[data-bs-theme="dark"] .card p,
[data-bs-theme="dark"] .card label {
  color: var(--sc-text);
}

[data-bs-theme="dark"] .card .text-primary {
  color: #5dade2 !important;
}

[data-bs-theme="dark"] .card .text-success {
  color: #58d68d !important;
}

[data-bs-theme="dark"] .card .text-info {
  color: #5dceea !important;
}

[data-bs-theme="dark"] .list-group-item {
  background-color: var(--sc-card-bg);
  border-color: var(--sc-border);
  color: var(--sc-text);
}

[data-bs-theme="dark"] .border {
  border-color: var(--sc-border) !important;
}

[data-bs-theme="dark"] .bg-white {
  background-color: var(--sc-card-bg) !important;
}

[data-bs-theme="dark"] .shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3) !important;
}

.sc-hero-float-badge {
  background: #ffffff !important;
  color: #1a1a2e !important;
}

.sc-hero-float-badge strong,
.sc-hero-float-badge .fw-bold,
.sc-hero-float-badge small {
  color: #1a1a2e !important;
}

[data-sc-theme="classic"] {
}

[data-sc-theme="ocean"] {
  --sc-primary: #006064;
  --sc-primary-rgb: 0, 96, 100;
  --sc-secondary: #00838f;
  --sc-secondary-rgb: 0, 131, 143;
  --sc-accent: #ff6d00;
  --sc-accent-rgb: 255, 109, 0;
  --sc-gradient-primary: linear-gradient(135deg, #006064 0%, #00838f 100%);
  --sc-gradient-accent: linear-gradient(135deg, #ff6d00 0%, #ff9100 100%);
  --sc-gradient-dark: linear-gradient(135deg, #004d40 0%, #00695c 100%);
  --sc-sidebar-bg: #006064;
}

[data-sc-theme="forest"] {
  --sc-primary: #1b5e20;
  --sc-primary-rgb: 27, 94, 32;
  --sc-secondary: #2e7d32;
  --sc-secondary-rgb: 46, 125, 50;
  --sc-accent: #ff8f00;
  --sc-accent-rgb: 255, 143, 0;
  --sc-gradient-primary: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  --sc-gradient-accent: linear-gradient(135deg, #ff8f00 0%, #ffa000 100%);
  --sc-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #1b3a1b 100%);
  --sc-sidebar-bg: #1b5e20;
}

[data-sc-theme="royal"] {
  --sc-primary: #4a148c;
  --sc-primary-rgb: 74, 20, 140;
  --sc-secondary: #6a1b9a;
  --sc-secondary-rgb: 106, 27, 154;
  --sc-accent: #ffc107;
  --sc-accent-rgb: 255, 193, 7;
  --sc-gradient-primary: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
  --sc-gradient-accent: linear-gradient(135deg, #ffc107 0%, #ffd54f 100%);
  --sc-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #2d1a4e 100%);
  --sc-sidebar-bg: #4a148c;
}

[data-sc-theme="crimson"] {
  --sc-primary: #b71c1c;
  --sc-primary-rgb: 183, 28, 28;
  --sc-secondary: #c62828;
  --sc-secondary-rgb: 198, 40, 40;
  --sc-accent: #00bcd4;
  --sc-accent-rgb: 0, 188, 212;
  --sc-gradient-primary: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
  --sc-gradient-accent: linear-gradient(135deg, #00bcd4 0%, #26c6da 100%);
  --sc-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #2e1a1a 100%);
  --sc-sidebar-bg: #b71c1c;
}

* {
  font-family: var(--sc-font-family);
}

body {
  background-color: var(--sc-body-bg);
  color: var(--sc-text);
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sc-body-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--sc-primary-rgb), 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--sc-primary-rgb), 0.5);
}

.sc-accent-line {
  height: 2px;
  background: linear-gradient(90deg, var(--sc-primary), var(--sc-accent), var(--sc-secondary));
}

.sc-promo-banner {
  background: var(--sc-gradient-accent);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  z-index: 1041;
  width: 100%;
  display: flex;
  align-items: center;
}

.sc-promo-banner .sc-marquee-wrap {
  flex: 1;
  overflow: hidden;
  margin-right: 40px;
}

.sc-promo-banner .sc-marquee {
  display: inline-flex;
  animation: sc-marquee 20s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.sc-promo-banner .sc-marquee span {
  display: inline-block;
  padding: 0 3rem;
  flex-shrink: 0;
}

@keyframes sc-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sc-promo-banner .btn-close {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  transform: none;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  z-index: 2;
  padding: 8px 14px;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 0;
  flex-shrink: 0;
}

.sc-promo-banner .btn-close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

.sc-navbar {
  background: var(--sc-navbar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--sc-navbar-shadow);
  transition: var(--sc-transition);
  padding: 0.5rem 0;
  z-index: 1040;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.sc-navbar .container {
  max-width: 100%;
}
.sc-navbar .navbar-collapse .d-flex {
  gap: 0.35rem !important;
}

.sc-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--sc-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sc-navbar .navbar-brand i {
  font-size: 1.6rem;
  color: var(--sc-accent);
}

.sc-navbar .nav-link {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--sc-text);
  padding: 0.5rem 0.6rem !important;
  border-radius: var(--sc-radius);
  transition: var(--sc-transition);
  position: relative;
  white-space: nowrap;
}

.sc-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--sc-accent);
  transition: var(--sc-transition);
  transform: translateX(-50%);
}

.sc-navbar .nav-link:hover::after,
.sc-navbar .nav-link.active::after {
  width: 60%;
}

.sc-navbar .nav-link:hover,
.sc-navbar .nav-link.active {
  color: var(--sc-primary);
}

.sc-theme-toggle,
.sc-lang-toggle {
  border: none;
  background: rgba(var(--sc-primary-rgb), 0.08);
  color: var(--sc-text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--sc-transition);
  font-size: 0.9rem;
}

.sc-theme-toggle:hover,
.sc-lang-toggle:hover {
  background: rgba(var(--sc-primary-rgb), 0.15);
  transform: scale(1.05);
}

.sc-lang-toggle {
  width: auto;
  border-radius: var(--sc-radius);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-sc-primary {
  background: var(--sc-gradient-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--sc-radius);
  font-weight: 500;
  transition: var(--sc-transition);
  box-shadow: 0 4px 6px rgba(var(--sc-primary-rgb), 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-sc-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(var(--sc-primary-rgb), 0.45), 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.btn-sc-accent {
  background: var(--sc-gradient-accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--sc-radius);
  font-weight: 500;
  transition: var(--sc-transition);
  box-shadow: 0 4px 6px rgba(var(--sc-accent-rgb), 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-sc-accent:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(var(--sc-accent-rgb), 0.45), 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.btn-sc-outline {
  border: 2px solid var(--sc-primary);
  color: var(--sc-primary);
  padding: 0.45rem 1.5rem;
  border-radius: var(--sc-radius);
  font-weight: 500;
  background: transparent;
  transition: var(--sc-transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.btn-sc-outline:hover {
  background: var(--sc-primary);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(var(--sc-primary-rgb), 0.35);
}

.sc-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  transition: var(--sc-transition);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
}

.sc-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.sc-stat-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--sc-radius-lg);
  padding: 1.5rem;
  transition: var(--sc-transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sc-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--sc-gradient-primary);
}

.sc-stat-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(var(--sc-primary-rgb), 0.15);
  border-color: rgba(var(--sc-primary-rgb), 0.2);
}

.sc-stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--sc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.sc-stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sc-primary);
}

.sc-stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--sc-text-muted);
}

.sc-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35em 0.75em;
  border-radius: 50rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-badge-primary {
  background: rgba(var(--sc-primary-rgb), 0.1);
  color: var(--sc-primary);
}

.sc-badge-accent {
  background: rgba(var(--sc-accent-rgb), 0.1);
  color: var(--sc-accent);
}

.sc-badge-success {
  background: rgba(46, 125, 50, 0.1);
  color: var(--sc-success);
}

.sc-badge-danger {
  background: rgba(198, 40, 40, 0.1);
  color: var(--sc-danger);
}

.sc-badge-info {
  background: rgba(21, 101, 192, 0.1);
  color: #1565c0;
}

.sc-footer {
  background: linear-gradient(180deg, #0a0e1f 0%, #060912 100%);
  color: #b0b8c9;
  padding-top: 0;
  position: relative;
}

.sc-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--sc-primary), var(--sc-accent), var(--sc-secondary), var(--sc-accent), var(--sc-primary));
}

.sc-footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sc-footer h5 {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.sc-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--sc-accent);
  border-radius: 2px;
}

.sc-footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--sc-transition);
  display: inline-block;
  position: relative;
}

.sc-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sc-accent);
  transition: var(--sc-transition);
}

.sc-footer a:hover {
  color: var(--sc-accent);
  padding-left: 5px;
}

.sc-footer a:hover::after {
  width: 100%;
}

.sc-footer .footer-link-list li {
  padding: 0.4rem 0;
}

.sc-footer .footer-link-list li i {
  font-size: 0.55rem;
  margin-right: 0.5rem;
  color: var(--sc-accent);
  opacity: 0.7;
  transition: var(--sc-transition);
}

.sc-footer .footer-link-list li:hover i {
  opacity: 1;
}

.sc-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sc-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: #9ca3af;
  font-size: 0.9rem;
}

.sc-footer-contact li a {
  color: #9ca3af;
}

.sc-footer-contact-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: rgba(var(--sc-accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-accent);
  font-size: 0.8rem;
}

.sc-social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  margin-right: 0.4rem;
  transition: var(--sc-transition);
  font-size: 0.9rem;
}

.sc-social-icons a::after {
  display: none;
}

.sc-social-icons a:hover {
  background: var(--sc-accent);
  border-color: var(--sc-accent);
  color: #fff;
  transform: translateY(-3px);
  padding-left: 0;
  box-shadow: 0 4px 15px rgba(var(--sc-accent-rgb), 0.3);
}

.sc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.2rem 0;
  font-size: 0.85rem;
  color: #6b7280;
  background: rgba(0, 0, 0, 0.2);
}

.sc-footer .newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--sc-radius) 0 0 var(--sc-radius);
  font-size: 0.85rem;
}

.sc-footer .newsletter-form .form-control:focus {
  border-color: var(--sc-accent);
  box-shadow: 0 0 0 2px rgba(var(--sc-accent-rgb), 0.15);
}

.sc-footer .newsletter-form .form-control::placeholder {
  color: #6b7280;
}

.sc-footer .newsletter-form .btn {
  border-radius: 0 var(--sc-radius) var(--sc-radius) 0;
}

.sc-sidebar {
  width: 260px;
  height: 100vh;
  background: var(--sc-sidebar-bg);
  color: var(--sc-sidebar-text);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1045;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sc-sidebar::-webkit-scrollbar {
  width: 4px;
}

.sc-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.sc-sidebar .sidebar-brand {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 56px;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 2;
}

.sc-sidebar .sidebar-brand i {
  font-size: 1.3rem;
  color: var(--sc-accent);
}

.sc-sidebar .sidebar-brand span {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  letter-spacing: 0.2px;
}

.sc-sidebar .sidebar-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  padding: 0.35rem;
  cursor: pointer;
  margin-left: auto;
  line-height: 1;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sc-sidebar .sidebar-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.sc-sidebar .sidebar-profile {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.sc-sidebar .sidebar-profile-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.sc-sidebar .sidebar-profile .avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  flex-shrink: 0;
}

.sc-sidebar .sidebar-profile .avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  flex-shrink: 0;
}

.sc-sidebar .sidebar-profile-info {
  min-width: 0;
  flex: 1;
}

.sc-sidebar .sidebar-profile .user-name {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-sidebar .sidebar-profile .user-role {
  font-size: 0;
  line-height: 1;
}

.sc-sidebar .sidebar-profile .role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sc-sidebar .sidebar-nav {
  padding: 0.35rem 0;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.sc-sidebar .sidebar-nav::-webkit-scrollbar {
  width: 3px;
}

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

.sc-sidebar .nav-item {
  list-style: none;
  margin: 0 0.5rem;
}

.sc-sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.84rem;
  transition: all 0.2s ease;
  border-left: none;
  border-radius: 8px;
  gap: 0;
  white-space: nowrap;
  margin-bottom: 1px;
}

.sc-sidebar .nav-link i {
  width: 20px;
  margin-right: 0.65rem;
  font-size: 0.85rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.8;
}

.sc-sidebar .nav-link span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sc-sidebar .nav-link:hover i {
  opacity: 1;
}

.sc-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 500;
}

.sc-sidebar .nav-link.active i {
  color: var(--sc-accent);
  opacity: 1;
}

.sc-sidebar .nav-link .sc-collapse-icon {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
  margin-right: 0;
  width: auto;
  opacity: 0.5;
}

.sc-sidebar .nav-link[aria-expanded="true"] .sc-collapse-icon {
  transform: rotate(180deg);
}

.sc-sidebar .nav-section-title {
  padding: 0.85rem 0.75rem 0.3rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.4;
  font-weight: 700;
  list-style: none;
  margin: 0 0.5rem;
}

.sc-sidebar .nav-section-title:first-child {
  margin-top: 0;
  padding-top: 0.5rem;
}

.sc-sidebar .sidebar-footer {
  padding: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  bottom: 0;
  background: inherit;
  z-index: 2;
}

.sc-sidebar .sidebar-footer .nav-link {
  padding: 0.45rem 0.75rem;
  border-left: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  border-radius: 8px;
  margin-bottom: 1px;
}

.sc-sidebar .sidebar-footer .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sc-sidebar .sidebar-footer .nav-link.text-danger-subtle {
  color: rgba(255, 120, 120, 0.75);
}

.sc-sidebar .sidebar-footer .nav-link.text-danger-subtle:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.sc-sidebar .collapse .nav-link,
.sc-sidebar .nav-link.sub-link {
  padding-left: 2.75rem;
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0;
  border-radius: 6px;
}

.sc-sidebar .collapse .nav-link:hover,
.sc-sidebar .nav-link.sub-link:hover {
  opacity: 1;
}

.sc-sidebar .collapse .nav-link.active,
.sc-sidebar .nav-link.sub-link.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.sc-main-content {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--sc-body-bg);
  transition: var(--sc-transition);
}

.sc-topbar {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sc-topbar .breadcrumb {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.sc-topbar .breadcrumb-item.active {
  color: var(--sc-primary);
  font-weight: 500;
}

.sc-topbar .user-menu .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--sc-text);
  text-decoration: none;
}

.sc-topbar .user-menu .dropdown-toggle::after {
  display: none;
}

.sc-topbar .user-menu .avatar-sm {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.sc-topbar .user-menu .avatar-sm-placeholder {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--sc-gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.sc-content-area {
  padding: 1.5rem;
}

.sc-global-search {
  position: relative;
}

.sc-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sc-search-input-wrap .sc-search-icon {
  position: absolute;
  left: 10px;
  color: var(--sc-text-muted);
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 2;
}

.sc-search-input-wrap .form-control {
  padding-left: 32px;
  padding-right: 36px;
  width: 260px;
  font-size: 0.82rem;
  border-radius: var(--sc-radius);
  background: var(--sc-body-bg);
  border: 1px solid var(--sc-border);
  transition: var(--sc-transition);
}

.sc-search-input-wrap .form-control:focus {
  width: 320px;
  background: var(--sc-card-bg);
}

.sc-search-kbd {
  position: absolute;
  right: 8px;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--sc-body-bg);
  border: 1px solid var(--sc-border);
  color: var(--sc-text-muted);
  font-family: monospace;
  pointer-events: none;
}

.sc-search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 1050;
}

.sc-search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
  color: var(--sc-text);
  border-bottom: 1px solid var(--sc-border);
  transition: background 0.15s ease;
}

.sc-search-result-item:last-child {
  border-bottom: none;
}

.sc-search-result-item:hover {
  background: rgba(var(--sc-primary-rgb), 0.05);
  color: var(--sc-text);
}

.sc-search-result-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--sc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sc-search-result-info {
  flex: 1;
  min-width: 0;
}

.sc-search-result-title {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-search-result-subtitle {
  font-size: 0.72rem;
  color: var(--sc-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-search-result-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sc-text-muted);
  font-weight: 600;
  flex-shrink: 0;
}

.sc-search-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  color: var(--sc-text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .sc-search-input-wrap .form-control {
    width: 160px;
  }
  .sc-search-input-wrap .form-control:focus {
    width: 200px;
  }
  .sc-search-results-dropdown {
    min-width: 260px;
    right: auto;
  }
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sc-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--sc-primary-rgb), 0.15);
}

.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: var(--sc-success);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: var(--sc-danger);
}

.sc-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sc-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--sc-accent);
  border-radius: 50%;
  animation: sc-spin 0.8s linear infinite;
}

@keyframes sc-spin {
  to { transform: rotate(360deg); }
}

.sc-spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.sc-back-to-top {
  position: fixed;
  bottom: 7rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sc-gradient-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--sc-transition);
  z-index: 1040;
  box-shadow: 0 4px 15px rgba(var(--sc-primary-rgb), 0.3);
}

.sc-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.sc-back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--sc-primary-rgb), 0.4);
}

table.dataTable thead th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sc-text-muted);
  border-bottom: 2px solid var(--sc-border) !important;
}

table.dataTable tbody td {
  font-size: 0.9rem;
  vertical-align: middle;
  padding: 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--sc-gradient-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--sc-radius);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(var(--sc-primary-rgb), 0.1) !important;
  color: var(--sc-primary) !important;
  border: 1px solid transparent !important;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: var(--sc-radius);
  border: 1px solid var(--sc-border);
  padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: var(--sc-radius);
  border: 1px solid var(--sc-border);
}

.sc-page-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--sc-text);
  margin-bottom: 1.5rem;
}

.sc-section-title {
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.sc-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--sc-gradient-accent);
  border-radius: 3px;
}

.sc-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--sc-text);
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .sc-navbar .nav-link {
    font-size: 0.8rem;
    padding: 0.5rem 0.45rem !important;
  }
  .sc-navbar .navbar-brand {
    font-size: 1.2rem;
  }
}

@media (max-width: 991.98px) {
  .sc-navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .sc-card,
  .sc-stat-card,
  .sc-badge,
  .sc-sidebar,
  .sc-topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .sc-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .sc-sidebar.show {
    transform: translateX(0);
  }

  .sc-main-content {
    margin-left: 0;
  }

  .sc-topbar {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .sc-topbar .d-flex.align-items-center.gap-3 {
    gap: 0.5rem !important;
  }

  .sc-topbar .sc-gtranslate-wrap {
    display: none;
  }

  .sc-topbar .breadcrumb {
    font-size: 0.8rem;
  }

  .sc-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(var(--sc-primary-rgb), 0.08);
  }

  .sc-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1044;
    display: none;
  }

  .sc-sidebar-overlay.show {
    display: block;
    animation: fadeIn 0.2s ease;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 767.98px) {
  .sc-content-area {
    padding: 1rem;
  }

  .sc-stat-card {
    padding: 1rem;
  }

  .sc-stat-card .stat-value {
    font-size: 1.4rem;
  }
}

.sc-bottom-bar {
  display: none;
}

@media (max-width: 575.98px) {
  .sc-navbar .navbar-brand {
    font-size: 1.1rem;
  }

  .sc-content-area {
    padding: 0.75rem;
  }

  .sc-topbar {
    padding: 0.5rem 0.35rem;
  }

  .sc-topbar .d-flex.align-items-center.gap-3 {
    gap: 0.35rem !important;
  }

  .sc-topbar .breadcrumb {
    display: none;
  }

  .sc-topbar .sc-theme-toggle {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .sc-topbar .sc-notif-bell {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .sc-topbar .user-menu .avatar-sm,
  .sc-topbar .user-menu .avatar-sm-placeholder {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .sc-sidebar-toggle {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
  }

  .sc-promo-banner {
    font-size: 0.78rem;
  }

  .sc-promo-banner .sc-marquee span {
    padding: 0 2rem;
  }
}

@media (max-width: 991.98px) {
  .sc-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.35rem 0.25rem;
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .sc-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--sc-text-muted, #6c757d);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    min-width: 52px;
    gap: 0.15rem;
    position: relative;
  }

  .sc-bottom-item i {
    font-size: 1.15rem;
    transition: all 0.2s ease;
  }

  .sc-bottom-item span {
    line-height: 1;
    letter-spacing: 0.2px;
  }

  .sc-bottom-item.active {
    color: var(--sc-primary);
    font-weight: 600;
  }

  .sc-bottom-item.active i {
    transform: scale(1.1);
  }

  .sc-bottom-item.active::before {
    content: '';
    position: absolute;
    top: -0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--sc-primary);
    border-radius: 0 0 3px 3px;
  }

  .sc-content-area {
    padding-bottom: 80px !important;
  }

  .sc-bottom-item {
    border: none;
    background: none;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .sc-bottom-item:hover {
    color: var(--sc-primary);
  }

  .sc-more-trigger i {
    transition: transform 0.3s ease;
  }

  .sc-more-trigger.open i {
    transform: rotate(90deg);
  }
}

.sc-more-menu {
  display: none;
}

@media (max-width: 991.98px) {
  .sc-more-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1049;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .sc-more-menu.show {
    pointer-events: auto;
    opacity: 1;
  }

  .sc-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .sc-more-sheet {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    background: var(--sc-card-bg, #fff);
    border-radius: 20px 20px 0 0;
    padding: 0.5rem 1rem 1.25rem;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 65vh;
    overflow-y: auto;
  }

  .sc-more-menu.show .sc-more-sheet {
    transform: translateY(0);
  }

  .sc-more-handle {
    width: 36px;
    height: 4px;
    background: rgba(128, 128, 128, 0.3);
    border-radius: 4px;
    margin: 0.25rem auto 0.75rem;
  }

  .sc-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .sc-more-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--sc-text, #333);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .sc-more-item:hover,
  .sc-more-item:active {
    background: rgba(var(--sc-primary-rgb, 26, 35, 126), 0.06);
    color: var(--sc-primary);
    transform: scale(0.97);
  }

  .sc-more-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(var(--sc-primary-rgb, 26, 35, 126), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--sc-primary);
    transition: all 0.2s ease;
  }

  .sc-more-item:hover .sc-more-icon,
  .sc-more-item:active .sc-more-icon {
    background: rgba(var(--sc-primary-rgb, 26, 35, 126), 0.14);
    transform: scale(1.05);
  }

  .sc-more-item span {
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
  }

  .sc-more-item.sc-more-danger .sc-more-icon {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
  }

  .sc-more-item.sc-more-danger {
    color: #dc3545;
  }

  .sc-more-item.sc-more-danger:hover .sc-more-icon,
  .sc-more-item.sc-more-danger:active .sc-more-icon {
    background: rgba(220, 53, 69, 0.15);
  }
}

@media print {
  .sc-sidebar,
  .sc-topbar,
  .sc-navbar,
  .sc-promo-banner,
  .sc-footer,
  .sc-back-to-top,
  .sc-bottom-bar,
  .sc-more-menu,
  .no-print {
    display: none !important;
  }

  .sc-main-content {
    margin-left: 0 !important;
  }

  .sc-content-area {
    padding: 0 !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .certificate-view {
    border: 3px double #1a237e;
    padding: 2rem;
    margin: 1rem;
  }

  .certificate-view .cert-header {
    text-align: center;
    border-bottom: 2px solid #1a237e;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }

  .certificate-view .cert-body {
    text-align: center;
    padding: 2rem 0;
  }

  .certificate-view .cert-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    margin-top: 2rem;
  }

  @page {
    margin: 0.5in;
  }
}

.sc-theme-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sc-theme-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.sc-theme-dot:hover {
  transform: scale(1.2);
}

.sc-theme-dot.active {
  border-color: var(--sc-accent);
  box-shadow: 0 0 0 3px rgba(var(--sc-accent-rgb), 0.3);
}

.sc-theme-dot[data-theme="classic"] { background: #1a237e; }
.sc-theme-dot[data-theme="ocean"] { background: #006064; }
.sc-theme-dot[data-theme="forest"] { background: #1b5e20; }
.sc-theme-dot[data-theme="royal"] { background: #4a148c; }
.sc-theme-dot[data-theme="crimson"] { background: #b71c1c; }

.sc-offcanvas-nav .nav-link {
  padding: 0.75rem 1rem;
  font-weight: 500;
  border-radius: var(--sc-radius);
  margin-bottom: 0.25rem;
}

.sc-offcanvas-nav .nav-link:hover,
.sc-offcanvas-nav .nav-link.active {
  background: rgba(var(--sc-primary-rgb), 0.08);
  color: var(--sc-primary);
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding: 0.5rem 0;
}

@media (max-width: 767.98px) {
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_length {
    text-align: left !important;
    float: none !important;
    margin-bottom: 0.5rem;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0.25rem;
    display: block;
  }

  .dataTables_wrapper .dataTables_length select {
    margin: 0 0.25rem;
  }

  .dataTables_wrapper .dataTables_info {
    text-align: center !important;
    float: none !important;
    font-size: 0.8rem;
    padding-top: 0.5rem;
  }

  .dataTables_wrapper .dataTables_paginate {
    text-align: center !important;
    float: none !important;
    margin-top: 0.5rem;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.8rem;
  }

  .dataTables_wrapper .dt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .dataTables_wrapper .dt-buttons .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .table th,
  .table td {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
    white-space: nowrap;
  }

  .table .btn-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  table.dataTable td.child {
    padding: 0.5rem;
  }

  table.dataTable td.child ul.dtr-details {
    width: 100%;
  }

  table.dataTable td.child ul.dtr-details li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.4rem 0;
  }

  .table-responsive > .dataTables_wrapper .card-body,
  .card-body > .table-responsive {
    padding: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .table th,
  .table td {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.7rem;
  }
}

[data-bs-theme="dark"] table.dataTable td.child ul.dtr-details li {
  border-bottom-color: var(--sc-border);
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter input,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length select {
  background-color: #16213e;
  border-color: var(--sc-border);
  color: var(--sc-text);
}

.sc-notif-bell {
  position: relative;
  border: none;
  background: rgba(var(--sc-primary-rgb), 0.08);
  color: var(--sc-text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--sc-transition);
  font-size: 0.95rem;
}

.sc-notif-bell:hover {
  background: rgba(var(--sc-primary-rgb), 0.15);
  transform: scale(1.05);
}

.sc-notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--sc-danger);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.sc-notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 340px;
  max-height: 420px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--sc-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sc-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sc-border);
  font-weight: 600;
  font-size: 0.9rem;
}

.sc-notif-header button {
  background: none;
  border: none;
  color: var(--sc-primary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.sc-notif-header button:hover {
  text-decoration: underline;
}

.sc-notif-list {
  overflow-y: auto;
  flex: 1;
  max-height: 340px;
}

.sc-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--sc-border);
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: var(--sc-text);
}

.sc-notif-item:last-child {
  border-bottom: none;
}

.sc-notif-item:hover {
  background: rgba(var(--sc-primary-rgb), 0.04);
  color: var(--sc-text);
}

.sc-notif-item.unread {
  background: rgba(var(--sc-primary-rgb), 0.06);
}

.sc-notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sc-primary);
}

.sc-notif-item {
  position: relative;
}

.sc-notif-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--sc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sc-notif-icon.enrollment { background: rgba(var(--sc-primary-rgb), 0.12); color: var(--sc-primary); }
.sc-notif-icon.exam_result { background: rgba(var(--sc-accent-rgb), 0.12); color: var(--sc-accent); }
.sc-notif-icon.certificate { background: rgba(46, 125, 50, 0.12); color: var(--sc-success); }
.sc-notif-icon.live_class { background: rgba(2, 119, 189, 0.12); color: var(--sc-info); }
.sc-notif-icon.general { background: rgba(var(--sc-primary-rgb), 0.08); color: var(--sc-text-muted); }

.sc-notif-content {
  flex: 1;
  min-width: 0;
}

.sc-notif-title {
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-notif-msg {
  font-size: 0.72rem;
  color: var(--sc-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-notif-time {
  font-size: 0.65rem;
  color: var(--sc-text-muted);
  margin-top: 2px;
}

.sc-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--sc-text-muted);
  font-size: 0.85rem;
  gap: 0.5rem;
}

.sc-notif-empty i {
  font-size: 1.5rem;
  opacity: 0.5;
}

@media (max-width: 575.98px) {
  .sc-notif-dropdown {
    min-width: 280px;
    right: -60px;
  }
}

.sc-pwa-install-banner {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1090;
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 0.75rem 1rem;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 420px;
  width: calc(100% - 2rem);
}

.sc-pwa-install-banner.show {
  bottom: 80px;
}

@media (min-width: 768px) {
  .sc-pwa-install-banner.show {
    bottom: 24px;
  }
}

.sc-pwa-install-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sc-pwa-install-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--sc-radius);
  background: var(--sc-gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sc-pwa-install-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sc-pwa-install-text strong {
  font-size: 0.85rem;
  color: var(--sc-text);
}

.sc-pwa-install-text small {
  font-size: 0.72rem;
  color: var(--sc-text-muted);
}

.sc-pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.modal-content {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

.sc-footer .sc-social-icons a {
  background: rgba(255, 255, 255, 0.05);
}

.sc-footer .newsletter-form {
  position: relative;
}

[data-bs-theme="dark"] .sc-card {
  background: rgba(20, 20, 50, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-bs-theme="dark"] .sc-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .sc-stat-card {
  background: rgba(20, 20, 50, 0.55);
  border-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-bs-theme="dark"] .sc-stat-card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(var(--sc-primary-rgb), 0.25);
  border-color: rgba(var(--sc-primary-rgb), 0.3);
}

[data-bs-theme="dark"] .sc-topbar {
  background: rgba(15, 15, 35, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-bs-theme="dark"] .sc-navbar {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .sc-notif-dropdown {
  background: rgba(20, 20, 50, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

[data-bs-theme="dark"] .modal-content {
  background: rgba(20, 20, 50, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-bs-theme="dark"] .sc-badge {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .sc-glow-border {
  box-shadow: 0 0 15px rgba(var(--sc-primary-rgb), 0.5), 0 0 30px rgba(var(--sc-primary-rgb), 0.2), inset 0 0 15px rgba(var(--sc-primary-rgb), 0.05);
}

[data-bs-theme="dark"] .sc-glass {
  background: rgba(20, 20, 50, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .sc-glass-card {
  background: rgba(20, 20, 50, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991.98px) {
  [data-bs-theme="dark"] .sc-bottom-bar {
    background: rgba(15, 15, 35, 0.8);
    border-top-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  [data-bs-theme="dark"] .sc-more-sheet {
    background: #1a1a2e;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
  }

  [data-bs-theme="dark"] .sc-more-item {
    color: rgba(255, 255, 255, 0.85);
  }

  [data-bs-theme="dark"] .sc-more-icon {
    background: rgba(255, 255, 255, 0.08);
  }

  [data-bs-theme="dark"] .sc-more-item:hover .sc-more-icon,
  [data-bs-theme="dark"] .sc-more-item:active .sc-more-icon {
    background: rgba(255, 255, 255, 0.14);
  }

  [data-bs-theme="dark"] .sc-more-overlay {
    background: rgba(0, 0, 0, 0.5);
  }
}

.sc-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.sc-glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

.sc-glass-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-3d-card {
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.sc-3d-card:hover {
  transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateZ(10px);
}

.sc-3d-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sc-3d-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.sc-glow-border {
  box-shadow: 0 0 10px rgba(var(--sc-primary-rgb), 0.3), 0 0 20px rgba(var(--sc-primary-rgb), 0.1);
  animation: sc-glow-pulse 3s ease-in-out infinite;
}

.sc-gradient-text {
  background: linear-gradient(135deg, var(--sc-primary), var(--sc-accent), var(--sc-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sc-float-3d {
  animation: sc-float-3d 4s ease-in-out infinite;
}

@keyframes sc-float-3d {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.01);
  }
}

@keyframes sc-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes sc-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(var(--sc-primary-rgb), 0.3), 0 0 20px rgba(var(--sc-primary-rgb), 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(var(--sc-primary-rgb), 0.5), 0 0 40px rgba(var(--sc-primary-rgb), 0.2);
  }
}

@media (max-width: 767.98px) {
  html, body {
    overflow-x: hidden;
  }

  main,
  section,
  .container,
  .container-fluid,
  .row,
  .sc-content-area,
  .sc-main-content,
  .card,
  .card-body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .row > * {
    max-width: 100%;
  }

  .sc-stat-card {
    padding: 0.75rem;
  }

  .sc-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .sc-stat-card .stat-value {
    font-size: 1.2rem;
  }

  .sc-stat-card .stat-label {
    font-size: 0.75rem;
  }

  .sc-content-area {
    padding: 0.75rem;
  }

  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }

  .modal-lg,
  .modal-xl {
    max-width: calc(100vw - 1rem);
  }

  .modal-content {
    border-radius: 12px;
  }

  .modal-body {
    padding: 0.75rem;
  }

  .modal-header,
  .modal-footer {
    padding: 0.75rem;
  }

  .btn.px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .btn.py-3 {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
  }

  .btn-lg {
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
  }

  .sc-page-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .sc-section-title {
    font-size: 1.1rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.15rem; }

  .display-4,
  .display-5,
  .display-6 {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .dataTables_wrapper .dt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .dataTables_wrapper .dt-buttons .btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
    flex: 0 0 auto;
  }

  .sc-notif-dropdown {
    position: fixed;
    top: auto;
    bottom: 60px;
    left: 0.5rem;
    right: 0.5rem;
    min-width: unset;
    max-height: 60vh;
  }

  .card .d-flex {
    flex-wrap: wrap;
  }

  .table-responsive {
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
    width: calc(100% + 1.5rem);
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 575.98px) {
  .sc-stat-card {
    padding: 0.625rem;
  }

  .sc-stat-card .stat-value {
    font-size: 1.1rem;
  }

  .sc-stat-card .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .sc-content-area {
    padding: 0.5rem;
  }

  .modal-dialog {
    margin: 0.25rem;
    max-width: calc(100vw - 0.5rem);
  }

  .btn.px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .btn.py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .btn.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .display-4,
  .display-5,
  .display-6 {
    font-size: 1.3rem;
  }

  .fs-1 { font-size: 1.5rem !important; }
  .fs-2 { font-size: 1.3rem !important; }
  .fs-3 { font-size: 1.15rem !important; }

  .p-4 {
    padding: 1rem !important;
  }

  .p-5 {
    padding: 1.25rem !important;
  }

  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .gap-3 {
    gap: 0.75rem !important;
  }

  .gap-4 {
    gap: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .sc-sidebar {
    z-index: 1045;
  }

  .sc-global-search {
    display: none;
  }

  .sc-topbar .user-menu .dropdown-toggle span {
    display: none !important;
  }

  .sc-topbar .user-menu .dropdown-toggle .fa-chevron-down {
    display: none;
  }

  .sc-search-input-wrap .form-control {
    width: 160px;
    font-size: 0.78rem;
  }

  .sc-search-input-wrap .form-control:focus {
    width: 180px;
  }

  .sc-search-results-dropdown {
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    top: 60px;
    min-width: unset;
    max-height: 60vh;
  }

  #detailListModal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }

  #detailListModal .list-group-item {
    flex-wrap: wrap;
    gap: 0.5rem !important;
    padding: 0.5rem 0.75rem;
  }

  #detailListModal .list-group-item .d-flex.gap-1 {
    width: 100%;
    justify-content: flex-start;
    margin-left: 2.25rem;
  }

  #coursesTable th,
  #coursesTable td {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }

  .d-flex.justify-content-between.align-items-center.mb-4 {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .d-flex.justify-content-between.align-items-center.mb-4 h4 {
    font-size: 1.1rem;
  }

  .d-flex.justify-content-between.align-items-center.mb-4 .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }

  .d-flex.flex-wrap.gap-2.mb-4 .badge {
    font-size: 0.7rem;
  }

  .d-flex.flex-wrap.gap-2.mb-4 .text-muted.mx-2 {
    display: none;
  }

  .card-body .d-flex.flex-wrap.gap-2 .text-muted.mx-2 {
    display: none;
  }

  .card-body .d-flex.flex-wrap.gap-2 {
    gap: 0.35rem !important;
  }

  .card-body .d-flex.flex-wrap.gap-2 .btn-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .card-body .d-flex.flex-wrap.gap-2 .fw-semibold {
    width: 100%;
    margin-bottom: 0.15rem;
  }

  .repeater-row {
    padding: 0.5rem;
  }

  .repeater-row .row {
    margin-right: 1.5rem;
  }

  .repeater-row .btn-remove-row {
    top: 0.25rem;
    right: 0.25rem;
  }

  .repeater-row .img-upload-inline {
    flex-direction: column;
  }

  .repeater-row .img-upload-inline .img-file-input {
    max-width: 100%;
  }

  .image-preview-box {
    max-width: 100%;
  }

  .section-form .accordion-body {
    padding: 0.75rem;
  }

  #pageContentTabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #pageContentTabs .nav-link {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  .accordion-button {
    font-size: 0.85rem;
    padding: 0.625rem 0.75rem;
  }

  #courseModal .modal-body .row .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .sc-global-search {
    display: none;
  }

  #detailListModal .list-group-item {
    font-size: 0.8rem;
  }

  .repeater-row .row > div {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card .card-body.p-3 .fs-3 {
    font-size: 1.1rem !important;
  }

  .card .card-body.p-3 .rounded-circle.flex-shrink-0 {
    width: 40px !important;
    height: 40px !important;
  }

  .card .card-body.p-3 .rounded-circle.flex-shrink-0 .fs-5 {
    font-size: 0.9rem !important;
  }

  .btn-group-sm .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }
}

.sc-about-image-container {
  height: 420px;
}

@media (max-width: 767.98px) {
  .sc-about-image-container {
    height: 280px;
  }

  .sc-about-overlay-value {
    font-size: 1rem !important;
  }

  .sc-about-overlay-label {
    font-size: 0.7rem !important;
  }
}
