/* ************************* */
/* * Begin: Diklat classes * */
/* ************************* */
.card-diklat {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  /* background: var(--bs-primary) */
}

.card-diklat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-diklat-image {
  width: 100%;
  height: 156px;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: linear-gradient(135deg, #073C64 0%, #0a5a8a 100%);
}

.:hover .card-diklat-image img {
  transform: scale(1.1);
}

.card-diklat .badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.badge-webinar {
  background-color: #F8D057;
  color: #000;
}

.badge-pelatihan {
  --bs-badge-background: #FEFAEE;
  --bs-badge-color: #705E27;
}

.badge-workshop {
  --bs-badge-background: #E6ECF0;
  --bs-badge-color: #073C64;
}

.card-diklat .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-diklat .card-footer {
  padding: 0px 16px 16px 16px;
}

.card-diklat .title {
  font-size: 18px;
  font-weight: 500;
  color: #141414;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: calc(18px * 1.4 * 2);
}

.meta-diklat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* margin-bottom: 16px; */
  flex-grow: 1;
}

.meta-diklat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #141414;
}

.meta-diklat-item i {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  color: var(--bs-primary);
}

.footer-diklat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  margin-top: auto;
}

.badge-internal {
  background-color: #e6f8ed;
  color: #57D283;
}

.badge-external {
  background-color: #fef3e6;
  color: #f1a90a;
}

.badge-both {
  background-color: #e3f2fd;
  color: #2196f3;
}

/* Filter Section */
#btnFilter {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 8px 20px;
}

#btnFilter:hover {
  background-color: #f8f9fa;
}

.form-check-input:checked {
  background-color: #073C64;
  border-color: #073C64;
}

/* Responsive */
@media (max-width: 768px) {
  .title-diklat {
    font-size: 14px;
  }

  .meta-diklat-item {
    font-size: 12px;
  }

  .card-diklat-image {
    height: 150px;
  }
}
/* ************************* */
/* * End: Diklat classes * */
/* ************************* */

/* *************************** */
/* * Begin: Kelola Diklat * */
/* *************************** */

/* Navigation Tabs */
.nav-tabs {
  border-bottom: 2px solid #e0e0e0;
}

.nav-tabs .nav-link {
  border: none;
  color: #6c757d;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  border-bottom: 3px solid #073C64;
  color: #073C64;
}

.nav-tabs .nav-link.active {
  background-color: #fff;
  color: #073C64;
  border-bottom: 3px solid #073C64;
  font-weight: 600;
}

/* Statistics Cards */
.stats-card {
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Table Styling */
.table-borderless thead {
  border-bottom: 2px solid #e0e0e0;
}

.table-borderless tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.table-borderless tbody tr:hover {
  background-color: #f8f9fa;
}

/* Badge Styles for Training List */
.badge-webinar {
  background-color: #F8D057;
  color: #000;
  font-weight: 500;
}

.badge-pelatihan {
  background-color: #FEFAEE;
  color: #705E27;
  font-weight: 500;
}

.badge-workshop {
  background-color: #E6ECF0;
  color: #073C64;
  font-weight: 500;
}

/* Pagination */
.pagination .page-link {
  border-radius: 50%;
  margin: 0 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  color: #073C64;
}

.pagination .page-item.active .page-link {
  background-color: #073C64;
  border-color: #073C64;
  color: #fff;
}

.pagination .page-link:hover {
  background-color: #f8f9fa;
}

/* Buttons */
.btn-outline-secondary {
  border-color: #dee2e6;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
}

/* Search Input */
.input-group .form-control:focus {
  border-color: #dee2e6;
  box-shadow: none;
}

.input-group-text {
  border-right: 0;
}

/* Card Shadow */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Responsive Design for Kelola Diklat */
@media (max-width: 768px) {
  .nav-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 14px;
  }

  .stats-card h2 {
    font-size: 1.5rem;
  }

  .table-responsive {
    font-size: 14px;
  }
}

/* *************************** */
/* * End: Kelola Diklat * */
/* *************************** */