/**
 * ============================================================
 *  e-Pelatihan — Style (Academic Navy, single file)
 *  Palette : Navy #1E3A8A
 *  Merged  : style.css + theme-academic-navy.css → one file
 *  No external theme override needed.
 * ============================================================
 */


/* ============================================================
   SECTION A — CSS Custom Properties (Academic Navy Palette)
   ============================================================ */
:root {
  /* Primary Palette */
  --eplth-primary:             #1E3A8A;  /* Navy 700  */
  --eplth-primary-dark:        #162E75;  /* Navy 900  */
  --eplth-primary-light:       #2E56B4;  /* Navy 600  */
  --eplth-primary-xlight:      #6B92D6;  /* Navy 400  */
  --eplth-primary-bg:          #EDF1FA;  /* Navy 50   */

  /* Accent tokens */
  --eplth-accent:              #6B92D6;  /* Navy 400  */
  --eplth-accent-strong:       #1E3A8A;  /* Navy 700  */
  --eplth-accent-soft:         #EDF1FA;  /* Navy 50   */
  --eplth-page-title:          #162E75;  /* Navy 900  */

  /* Sidebar tokens */
  --eplth-sidebar-bg:          #0D1B4B;
  --eplth-sidebar-text:        #A0BAE8;
  --eplth-sidebar-hover:       #ffffff;
  --eplth-sidebar-active-bg:   rgba(30, 58, 138, 0.30);
  --eplth-sidebar-active-text: #6B92D6;

  /* Shared sidebar tokens */
  --sidebar-bg:          var(--eplth-sidebar-bg);
  --sidebar-text:        var(--eplth-sidebar-text);
  --sidebar-text-hover:  var(--eplth-sidebar-hover);
  --sidebar-active-bg:   var(--eplth-sidebar-active-bg);
  --sidebar-active-text: var(--eplth-sidebar-active-text);

  /* Sidebar compact rail width */
  --eplth-sidebar-rail-width: 72px;

  /* Landing-page inline vars */
  --primary:       #1E3A8A;
  --primary-light: #2E56B4;
  --accent:        #6B92D6;
  --bg:            #EDF1FA;
  --card:          #ffffff;
  --shadow:        0 12px 32px rgba(30, 58, 138, 0.15);
  --gray:          #666;

  /* Bootstrap 5 token override */
  --bs-primary:                    #1E3A8A;
  --bs-primary-rgb:                30, 58, 138;
  --bs-link-color:                 #1E3A8A;
  --bs-link-color-rgb:             30, 58, 138;
  --bs-link-hover-color:           #162E75;
  --bs-link-hover-color-rgb:       22, 46, 117;
  --bs-btn-bg:                     #1E3A8A;
  --bs-btn-border-color:           #1E3A8A;
  --bs-btn-hover-bg:               #162E75;
  --bs-btn-hover-border-color:     #162E75;
  --bs-btn-active-bg:              #162E75;
  --bs-btn-active-border-color:    #162E75;
  --bs-btn-disabled-bg:            #1E3A8A;
  --bs-btn-disabled-border-color:  #1E3A8A;
  --bs-focus-ring-color:           rgba(30, 58, 138, 0.25);
}


/* ============================================================
   SECTION B — Bootstrap Class Overrides
   (!important required — Bootstrap CDN specificity)
   ============================================================ */

/* --- Buttons shape & weight (structural, always wins) --- */
.btn {
  border-radius:  0.5rem !important;
  padding-left:   1rem   !important;
  padding-right:  1rem   !important;
  font-weight:    500    !important;
}

.btn-primary {
  background-color: #1E3A8A !important;
  border-color:     #1E3A8A !important;
  color:            #fff    !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: #162E75 !important;
  border-color:     #162E75 !important;
  color:            #fff    !important;
}
.btn-primary:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.4) !important;
}

.btn-outline-primary {
  color:        #1E3A8A !important;
  border-color: #1E3A8A !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: #1E3A8A !important;
  color:            #fff    !important;
}

/* --- Text & Links --- */
.text-primary {
  color: #1E3A8A !important;
}
a {
  color: #1E3A8A;
}
a:hover {
  color: #162E75;
}

/* --- Form Controls --- */
.form-control:focus,
.form-select:focus {
  border-color: #6B92D6;
  box-shadow:   0 0 0 0.25rem rgba(30, 58, 138, 0.2);
}
.form-check-input:checked {
  background-color: #1E3A8A;
  border-color:     #1E3A8A;
}
.form-check-input:focus {
  border-color: #6B92D6;
  box-shadow:   0 0 0 0.25rem rgba(30, 58, 138, 0.2);
}

/* --- Progress Bar --- */
.progress-bar {
  background-color: #1E3A8A !important;
}

/* --- Badges (Bootstrap native) --- */
.badge.bg-primary:not([class*="-subtle"]):not([class*="opacity"]):not([class*="soft"]),
.badge.badge-primary:not([class*="-subtle"]):not([class*="opacity"]):not([class*="soft"]) {
  background-color: #1E3A8A !important;
  color: #fff !important;
}
.badge.bg-primary.bg-opacity-10,
.badge.bg-primary[class*="opacity-10"] {
  background-color: rgba(30, 58, 138, 0.1) !important;
  color: #1E3A8A !important;
}
.badge.bg-info:not([class*="-subtle"]):not([class*="opacity"]):not([class*="soft"]),
.badge.badge-info:not([class*="-subtle"]):not([class*="opacity"]):not([class*="soft"]) {
  background-color: #6B92D6 !important;
  color: #fff !important;
}

/* --- Nav / Tabs --- */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #1E3A8A;
  color: #fff;
}
.nav-tabs .nav-link.active {
  color:        #1E3A8A;
  border-color: #1E3A8A #1E3A8A #fff;
}
.nav-link {
  color: #1E3A8A;
}
.nav-link:hover,
.nav-link:focus {
  color: #162E75;
}

/* --- Pagination --- */
.page-link {
  color: #1E3A8A;
}
.page-link:hover {
  color: #162E75;
}
.page-item.active .page-link {
  background-color: #1E3A8A;
  border-color:     #1E3A8A;
  color: #fff;
}

/* --- Dropdown --- */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #1E3A8A;
}

/* --- List Group --- */
.list-group-item.active {
  background-color: #1E3A8A;
  border-color:     #1E3A8A;
}


/* ============================================================
   SECTION C — Layout & Structure (neutral colors)
   ============================================================ */

.required::after {
  content: " *";
  color: red;
}

/* --- Card Styles --- */
.card-main {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 1rem;
  overflow: hidden;
  padding: 1.5rem;
}

.pelatihan-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}

.pelatihan-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.hover-card-effect {
  transition: all 0.3s ease;
}

.hover-card-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15) !important;
  background-color: #f8f9fa !important;
}

.hover-card-effect .card-img-top {
  transition: transform 0.5s ease;
}

.hover-card-effect:hover .card-img-top {
  transform: scale(1.05);
}

/* --- Card Stats --- */
.card-stat {
  border: none;
  border-radius: 12px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  padding: 1.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.card-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-stat .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.card-stat .stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.4;
}

/* --- Content Boxes --- */
.content-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* --- Typography (neutral) --- */
.header-title {
  font-weight: 800;
  font-size: 1.75rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.header-period {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.content-text {
  color: #444;
  line-height: 1.7;
  font-size: 1rem;
}

.card-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #333;
  float: none;
}

.card-date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stats-label {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.2;
}

/* --- Page Headers --- */
.page-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* --- Images --- */
.info-image-container {
  border-radius: 12px;
  overflow: hidden;
  height: 280px;
  position: relative;
  cursor: zoom-in;
  background-color: #000;
}

.info-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.info-image-container:hover .info-image {
  transform: scale(1.1);
  opacity: 0.7;
}

.info-image-container::after {
  content: '\f00e';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.info-image-container:hover::after {
  opacity: 1;
}

.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .card-img-wrapper {
    height: 100%;
    min-height: 220px;
  }
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Badge overlay container (structural) --- */
.badge-overlay-container {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

/* --- Modals (structural) --- */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1.2rem 1.5rem;
}

.modal-title {
  font-weight: 800;
}

.upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: 0.2s;
}

/* --- Search & Filter (structural) --- */
.search-row-container {
  padding: 10px 0;
}

.search-input-wrapper {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 2px 15px;
  position: relative;
}

.search-input {
  border: none;
  box-shadow: none;
  height: 38px;
  padding-left: 35px;
  font-size: 0.95rem;
}

.search-input:focus {
  box-shadow: none;
  background-color: transparent;
}

.search-icon {
  position: absolute;
  left: 0;
  top: 10px;
  color: #6c757d;
  font-size: 1rem;
}

.filter-btn {
  border-radius: 6px !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  margin-left: 8px;
  border: 1px solid #dee2e6;
  color: #495057;
  background: #fff;
  height: 38px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

/* --- Containers --- */
.content-wrapper {
  background-color: #f1f4f6 !important;
}

.pelatihan-detail-container {
  padding: 20px;
  padding-bottom: 3rem;
}

/* --- Custom Switch (BS4 style emulation for BS5) --- */
.custom-switch {
  padding-left: 2.25rem;
  position: relative;
}

.custom-switch .custom-control-input {
  position: absolute;
  left: 0;
  z-index: -1;
  width: 1rem;
  height: 1.25rem;
  opacity: 0;
}

.custom-switch .custom-control-label {
  position: relative;
  margin-bottom: 0;
  vertical-align: top;
}

.custom-switch .custom-control-label::before {
  position: absolute;
  top: 0.25rem;
  left: -2.25rem;
  display: block;
  width: 1.75rem;
  height: 1rem;
  pointer-events: none;
  content: "";
  background-color: #adb5bd;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-switch .custom-control-label::after {
  position: absolute;
  top: calc(0.25rem + 2px);
  left: calc(-2.25rem + 2px);
  display: block;
  width: calc(1rem - 4px);
  height: calc(1rem - 4px);
  content: "";
  background-color: #fff;
  border-radius: 0.5rem;
  transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  border-color:     #1E3A8A;
  background-color: #1E3A8A;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
  background-color: #fff;
  transform: translateX(0.75rem);
}


/* ============================================================
   SECTION D — Sidebar (Academic Navy)
   (!important overrides AdminLTE which still loads)
   ============================================================ */

/* Custom Sleek Scrollbar (Dark Mode Sidebar) */
.sidebar,
.sidebar-nav,
.main-sidebar,
.app-sidebar,
.sidebar-nav-wrapper {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar,
.main-sidebar::-webkit-scrollbar,
.app-sidebar::-webkit-scrollbar,
.sidebar-nav-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.sidebar::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-track,
.main-sidebar::-webkit-scrollbar-track,
.app-sidebar::-webkit-scrollbar-track,
.sidebar-nav-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb,
.main-sidebar::-webkit-scrollbar-thumb,
.app-sidebar::-webkit-scrollbar-thumb,
.sidebar-nav-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-nav::-webkit-scrollbar-thumb:hover,
.main-sidebar::-webkit-scrollbar-thumb:hover,
.app-sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-nav-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Sidebar background gradient */
.main-sidebar,
.app-sidebar {
  background: linear-gradient(180deg, #0D1B4B 0%, #1E3A8A 100%) !important;
}

/* Brand/logo area */
.brand-link,
.sidebar-brand,
.app-sidebar .sidebar-brand {
  background: rgba(0, 0, 0, 0.2) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Nav link base */
.sidebar .nav-sidebar > .nav-item > .nav-link,
.sidebar .nav-link,
.app-sidebar .nav-link {
  color: #A0BAE8 !important;
  border-radius: 6px;
  margin: 1px 6px;
  padding: 0.375rem 0.75rem;
}

/* Nav link hover */
.sidebar .nav-sidebar > .nav-item > .nav-link:hover,
.sidebar .nav-link:hover,
.app-sidebar .nav-link:hover {
  background-color: rgba(30, 58, 138, 0.22) !important;
  color: #fff !important;
}

/* Nav link active */
.sidebar .nav-sidebar > .nav-item > .nav-link.active,
.sidebar .nav-link.active,
.app-sidebar .nav-link.active {
  background-color: #1E3A8A !important;
  color:            #fff     !important;
  border-left:      3px solid #6B92D6 !important;
  font-weight:      600;
}

/* Separator / heading text */
.nav-header,
.sidebar-heading {
  color: rgba(107, 146, 214, 0.65) !important;
}

/* Sidebar icons */
.nav-icon,
.sidebar .nav-icon {
  color: #6B92D6 !important;
}
.sidebar .nav-link:hover .nav-icon,
.sidebar .nav-link.active .nav-icon {
  color: #fff !important;
}

/* Desktop sidebar compact rail */
@media (min-width: 992px) {
  /* ponytail: override root token --sidebar-width saat compact agar seluruh turunan layout sinkron */
  html.eplth-sidebar-compact {
    --sidebar-width: var(--eplth-sidebar-rail-width);
  }

  html.eplth-sidebar-compact #sidebar.sidebar {
    width: var(--eplth-sidebar-rail-width) !important;
    min-width: var(--eplth-sidebar-rail-width);
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1050;
    transform: none;
  }

  html.eplth-sidebar-compact #mainContent,
  html.eplth-sidebar-compact .main-content {
    margin-left: var(--eplth-sidebar-rail-width) !important;
    transition: margin-left 0.22s ease;
  }

  html.eplth-sidebar-compact #sidebar.sidebar .sidebar-brand span {
    display: none;
  }

  html.eplth-sidebar-compact #sidebar.sidebar .sidebar-brand {
    justify-content: center;
    gap: 0;
    padding-inline: 0;
  }

  html.eplth-sidebar-compact #sidebar.sidebar .sidebar-brand img.me-2 {
    margin-right: 0 !important;
  }

  html.eplth-sidebar-compact #sidebar.sidebar .sidebar-separator {
    display: none;
  }

  html.eplth-sidebar-compact #sidebar.sidebar .sidebar-link span {
    display: none;
  }

  html.eplth-sidebar-compact #sidebar.sidebar .sidebar-link {
    justify-content: center;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  html.eplth-sidebar-compact #sidebar.sidebar .sidebar-header {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  html.eplth-sidebar-compact #sidebar.sidebar .sidebar-header .btn-close {
    display: none !important;
  }
}


/* ============================================================
   SECTION E — Gradient Utilities & Semantic Colors
   ============================================================ */

.bg-gradient-primary {
  background: linear-gradient(135deg, #1E3A8A 0%, #162E75 100%);
}

.bg-gradient-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.bg-gradient-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
}


/* ============================================================
   SECTION F — e-Pelatihan Components (navy palette)
   ============================================================ */

/* --- Content highlight --- */
.section-deskripsi {
  background-color: #EDF1FA;
  border-left: 5px solid #6B92D6;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* --- Typography (brand colors) --- */
.section-label {
  font-weight: 800;
  font-size: 1rem;
  color: #1E3A8A;
  margin-bottom: 0.5rem;
  display: block;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 5px;
}

.page-header-title {
  font-weight: 800;
  color: #162E75;
  border-bottom: 2px solid #adadad;
  padding-bottom: 0.5rem;
  display: inline-block;
  margin-bottom: 0;
  font-size: 1.5rem;
}

/* --- Badges (e-Pelatihan custom) --- */
.info-badge,
.info-badge-overlay {
  background-color: #1E3A8A;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
}

.info-badge-overlay {
  padding: 5px 12px;
  margin-right: 0;
  margin-bottom: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Neutral/semantic variants */
.info-badge.badge-grey,
.info-badge.badge-daftar,
.info-badge.badge-tag {
  background-color: #6c757d;
  padding: 5px 10px;
}

.info-badge.badge-daftar {
  background-color: #a0a0a0;
}

.info-badge-overlay.badge-success {
  background-color: #28a745;
}

.info-badge-overlay.badge-secondary {
  background-color: #6c757d;
}

/* --- Quota Box --- */
.quota {
  font-size: 13px;
  background: #EDF1FA;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #A0BAE8;
}

/* --- Pelatihan Stats Card --- */
.pelatihan-stats-card {
  background-color: #EDF1FA;
  border: 1px solid #A0BAE8;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  height: 100%;
  color: #162E75;
}

/* --- Modal section title --- */
.modal-section-title {
  color: #1E3A8A;
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Custom Buttons --- */
.btn-daftar {
  background-color: #1E3A8A;
  border-color:     #1E3A8A;
  color: white;
  font-weight: 700;
  padding: 0.5rem 2rem;
  border-radius: 8px;
  font-size: 1.05rem;
  transition: all 0.2s;
  text-align: center;
}

.btn-daftar:hover {
  background-color: #162E75;
  color: white;
  transform: translateY(-1px);
}

.btn-daftar:disabled {
  background-color: #adb5bd;
  border-color: #adb5bd;
  transform: none;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 1px solid #e9ecef;
  color: #666;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.btn-back:hover {
  background-color: #f8f9fa;
  color: #1E3A8A;
  text-decoration: none;
  border-color: #1E3A8A;
}

.btn-back i {
  margin-right: 8px;
  font-size: 1rem;
}

.btn-detail {
  background-color: #1E3A8A;
  color: white;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 5px;
}

.btn-detail:hover {
  background-color: #162E75;
  color: white;
  text-decoration: none;
}

/* --- Search & Filter (colors) --- */
.filter-btn:hover {
  background: #f8f9fa;
  color: #1E3A8A;
}

.filter-btn.active {
  background-color: #1E3A8A;
  color: white;
  border-color: #1E3A8A;
}

.btn-filter-main {
  background-color: #1E3A8A;
  color: white;
  border: none;
}

.btn-filter-main:hover {
  background-color: #162E75;
  color: white;
}

/* --- Upload area (hover color) --- */
.upload-area:hover {
  border-color:     #1E3A8A;
  background-color: #EDF1FA;
}

/* --- Avatar / Initial --- */
.avatar-initial,
.user-avatar,
[class*="avatar-"] {
  background-color: var(--eplth-sidebar-bg) !important;
  color: #fff;
}

/* --- Security / info panels --- */
.security-panel,
.info-panel,
[class*="security"],
[class*="panel-info"] {
  background: linear-gradient(135deg, #162E75 0%, #1E3A8A 100%);
}

/* --- Counter stats --- */
.counter-card,
.stat-counter,
[class*="counter-default"] {
  color: #1E3A8A;
}


/* ============================================================
   SECTION G — Landing Page
   ============================================================ */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0D1B4B 0%, #1E3A8A 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero-section h1 {
  font-size: 42px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-btn {
  background: #fff;
  color: #1E3A8A;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
  transition: .3s;
  border: none;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  color: #1E3A8A;
}

/* Auth Card Header */
.modal-header[style*="gradient"],
.auth-header {
  background: linear-gradient(135deg, #1E3A8A 0%, #162E75 100%);
}

/* Calendar Section */
.wrapper-calendar {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

#training-list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}

#training-list::-webkit-scrollbar {
  width: 6px;
}

#training-list::-webkit-scrollbar-thumb {
  background: #cfd8dc;
  border-radius: 10px;
}

.month-grid {
  width: 42%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.month-card {
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.15);
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: .3s;
  border: 1px solid transparent;
}

.month-card:hover {
  transform: translateY(-4px);
  background: #EDF1FA;
  border-color: #1E3A8A;
}

.list-calendar {
  width: 58%;
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.15);
  text-align: left;
}

.training-item {
  background: #f8fbff;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 14px;
  border-left: 6px solid #1E3A8A;
}

.training-item p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Filter Section */
.filter {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter input,
.filter select {
  border-radius: 10px;
  border: 2px solid #e0e8f0;
  font-size: 14px;
  min-width: 200px;
}

.filter select {
  padding: 12px 16px;
}

.filter input {
  padding: 10px 16px;
}

/* Reveal Animation */
.reveal {
  opacity: 1;
}

@media (max-width: 900px) {
  .wrapper-calendar {
    flex-direction: column;
  }

  .month-grid,
  .list-calendar {
    width: 100%;
  }
}


/* ============================================================
   SECTION H — SweetAlert2 Override
   ============================================================ */

.swal2-confirm {
  background-color: #1E3A8A !important;
  border-color:     #1E3A8A !important;
}
.swal2-confirm:hover {
  background-color: #162E75 !important;
  border-color:     #162E75 !important;
}
.swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.4) !important;
}


/* ============================================================
   SECTION I — Misc
   ============================================================ */

body.eplth-notif-dismissed .notif-count-badge,
body.eplth-notif-dismissed #notifDropdownHeaderBadge {
  display: none !important;
}

/* Sidebar Header & Brand Transparent Background */
.sidebar .sidebar-header,
#sidebar .sidebar-header {
  background-color: transparent !important;
  background: transparent !important;
}

.sidebar .sidebar-brand,
#sidebar .sidebar-brand,
.sidebar .sidebar-brand span,
#sidebar .sidebar-brand span {
  background-color: transparent !important;
  color: #ffffff !important;
}

