/* ===== DANH SÁCH LỚP ĐANG MỞ ===== */

.dslop-page {
  background: #f0f2f7;
  min-height: 70vh;
  padding: 24px 0 56px;
}

/* Page Banner */
.dslop-banner {
  background: #f0f2f7;
  padding: 38px 0 32px;
  text-align: center;
}
.dslop-banner h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.dslop-banner h1::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 72px; height: 4px;
  background: var(--orange);
  border-radius: 2px;
}

/* Filter Box */
.dslop-filter-wrap {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(10,31,68,0.10);
  padding: 22px 24px 18px;
  margin: 0 0 28px;
}

.dslop-filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.dslop-filter-row:last-child { margin-bottom: 0; }

.dslop-select {
  padding: 9px 14px;
  border: 1.5px solid #d8dce8;
  border-radius: 7px;
  font-size: 0.88rem;
  color: #444;
  background: #fff;
  cursor: pointer;
  outline: none;
  flex: 1;
  min-width: 140px;
  appearance: auto;
}
.dslop-select:focus { border-color: var(--orange); }
.dslop-select.dslop-select-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  min-width: 0;
  padding: 0;
  border: 0;
}

.dslop-custom-dropdown {
  position: relative;
  flex: 1;
  min-width: 140px;
}
.dslop-custom-dropdown.is-disabled .dslop-custom-trigger {
  background: #f6f8fc;
  color: #a0a7b6;
  cursor: not-allowed;
}
.dslop-custom-trigger {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid #d8dce8;
  border-radius: 7px;
  background: #fff;
  color: #24324d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dslop-custom-trigger:hover,
.dslop-custom-dropdown.is-open .dslop-custom-trigger {
  border-color: #c4cbdd;
}
.dslop-custom-dropdown.is-open .dslop-custom-trigger,
.dslop-custom-trigger:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240,124,26,0.12);
  outline: none;
}
.dslop-custom-trigger.is-disabled {
  background: #f6f8fc;
  color: #a0a7b6;
  cursor: not-allowed;
}
.dslop-custom-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.dslop-custom-icon {
  color: #5f6e8d;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.dslop-custom-dropdown.is-open .dslop-custom-icon {
  transform: rotate(180deg);
}
.dslop-custom-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid #dfe4ef;
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(15, 31, 64, 0.16);
  padding: 10px;
  display: none;
}
.dslop-custom-dropdown.is-open .dslop-custom-menu {
  display: block;
}
.dslop-custom-search-wrap {
  position: relative;
  margin-bottom: 8px;
}
.dslop-custom-search {
  width: 100%;
  border: 1px solid #d8dce8;
  border-radius: 8px;
  padding: 9px 12px 9px 34px;
  font-size: 0.85rem;
  color: #24324d;
  outline: none;
}
.dslop-custom-search:focus {
  border-color: var(--orange);
}
.dslop-custom-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c96aa;
  font-size: 0.8rem;
}
.dslop-custom-options {
  max-height: 230px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dslop-custom-option {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  font-size: 0.86rem;
  color: #2c3a56;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.dslop-custom-option:hover,
.dslop-custom-option.is-selected {
  background: rgba(240,124,26,0.1);
  color: var(--orange-dark);
}
.dslop-custom-option.is-hidden {
  display: none;
}
.dslop-custom-empty {
  display: none;
  padding: 12px;
  text-align: center;
  color: #8a93a6;
  font-size: 0.83rem;
}
.dslop-custom-empty.is-visible {
  display: block;
}

.dslop-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.btn-tim-kiem {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 22px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-tim-kiem:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-xoa-loc {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 7px;
  border: 1.5px solid #d0d4e0;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-xoa-loc:hover { border-color: var(--orange); color: var(--orange); }

/* Grid */
.dslop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

/* Class Card */
.dslop-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(10,31,68,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e7ebf3;
}
.dslop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(10,31,68,0.12);
  border-color: #d8deea;
}

/* Card Header */
.dslop-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #eef2f8;
}
.dslop-ma-lop {
  display: flex;
  flex-direction: column;
}
.dslop-ma-lop-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7e8aa5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dslop-ma-lop-code {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.5px;
}

/* Status Badge */
.dslop-status {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 118px;
  text-align: center;
  gap: 0;
  margin-left: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.dslop-status-icon {
  display: none;
}
.dslop-status-label {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}
.dslop-status-count {
  display: none;
}

/* Status colors */
.status-xep-du {
  background: var(--orange);
  color: #fff;
}
.status-nhan-ho-so {
  background: #274a8f;
  color: #fff;
}
.status-dang-nhan {
  background: #274a8f;
  color: #fff;
}
.status-da-hoc {
  background: #1e8449;
  color: #fff;
}

/* Card Body */
.dslop-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dslop-info-row {
  display: grid;
  grid-template-columns: 16px 78px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.4;
}
.dslop-info-row i {
  color: var(--orange);
  width: 16px;
  font-size: 0.85rem;
  text-align: center;
}
.dslop-info-label {
  color: #7f8aa3;
  font-weight: 700;
  white-space: nowrap;
}
.dslop-info-val {
  color: #10284f;
  font-weight: 700;
}
.dslop-hocphi-val {
  color: var(--orange);
  font-weight: 800;
}

/* Card Footer */
.dslop-card-footer {
  padding: 6px 16px 16px;
}
.dslop-btn-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 0;
  border-radius: 10px;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-weight: 800;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dslop-btn-detail:hover {
  background: var(--orange);
  color: #fff;
}

/* Pagination */
.dslop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.dslop-page-btn {
  width: 38px; height: 38px;
  border-radius: 7px;
  border: 1.5px solid #d8dce8;
  background: #fff;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
  text-decoration: none;
}
.dslop-page-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.dslop-page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.dslop-page-btn.dots {
  border: none; background: none; cursor: default; color: #888;
}
.dslop-page-btn.dots:hover { color: #888; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .dslop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .dslop-grid { grid-template-columns: repeat(2, 1fr); }
  .dslop-filter-row { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .dslop-grid { grid-template-columns: 1fr; }
  .dslop-filter-wrap { padding: 16px 14px 14px; }
  .dslop-filter-row { gap: 8px; }
  .dslop-select {
    min-width: calc(50% - 4px);
    width: calc(50% - 4px);
  }
  .dslop-custom-dropdown {
    width: calc(50% - 4px);
    min-width: calc(50% - 4px);
  }
  .dslop-custom-trigger {
    min-height: 46px;
    padding: 11px 14px;
    font-size: 0.92rem;
  }
  .dslop-custom-menu {
    left: 50%;
    right: auto;
    width: max(100%, 190px);
    min-width: 190px;
    transform: translateX(-50%);
    border-radius: 14px;
    padding: 12px;
  }
  .dslop-custom-options {
    max-height: 280px;
  }
  .dslop-custom-option {
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.45;
  }
  .dslop-filter-row > .dslop-custom-dropdown:nth-last-child(1):nth-child(odd),
  .dslop-filter-row > .dslop-select:nth-last-child(1):nth-child(odd) {
    width: 100%;
    min-width: 100%;
  }
  .dslop-card-header { align-items: flex-start; gap: 10px; }
  .dslop-status { min-width: unset; padding: 8px 12px; }
  .dslop-filter-actions { width: 100%; justify-content: stretch; }
  .btn-tim-kiem, .btn-xoa-loc { flex: 1; justify-content: center; }
  .dslop-banner{
    padding:20px 0 !important ;
  }
  .dslop-page {
    padding-top: 0 !important;
  }
}
