:root {
  --selcuk-blue: #1c458b;
  --selcuk-blue-dark: #15366d;
  --selcuk-blue-light: #e8eef7;
  --page-bg: #f4f7fb;
  --card-shadow: 0 2px 12px rgba(28, 69, 139, 0.08);
  --border-radius: 8px;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  padding: 0;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.iframe-embed {
  background: transparent;
}

/* Select2 */
.select2-container .select2-choice {
  height: 42px !important;
  line-height: 40px !important;
  border: 1px solid #ced4da !important;
  border-radius: var(--border-radius) !important;
  background: #fff !important;
}

/* Fakülte / Bölüm — büyük filtre alanları */
.filter-card .filter-label {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  letter-spacing: 0.05em;
}

.filter-card .filter-field {
  position: relative;
}

.filter-card .filter-field select.select2-offscreen {
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.filter-card .filter-field > .select2-container ~ .select2-container {
  display: none !important;
}

.filter-card .select2-container {
  width: 100% !important;
}

.filter-card .select2-container .select2-choice {
  height: 40px !important;
  line-height: 38px !important;
  padding-left: 12px !important;
}

.filter-card .select2-container .select2-choice > .select2-chosen {
  font-size: 0.95rem;
  line-height: 38px;
  margin-right: 36px;
}

.filter-card .select2-container .select2-choice .select2-arrow {
  width: 32px;
  border-left: 1px solid #ced4da;
  background: #f8f9fa;
  background-image: none;
}

/* Ok ikonu — 54px yükseklikte sprite bozulmasın diye sabit boyut */
.filter-card .select2-container .select2-choice .select2-arrow b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 20px;
  margin: 0;
  transform: translate(-50%, -50%);
  background: url("https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.1/select2.png") no-repeat 0 1px;
}

.filter-card .select2-dropdown-open .select2-choice .select2-arrow b {
  background-position: -18px 1px;
}

.select2-drop.filter-card-drop,
.select2-drop {
  font-size: 0.95rem;
}

.select2-results .select2-result-label {
  padding: 8px 12px;
  font-size: 0.95rem;
}

.select2-container-active .select2-choice,
.select2-container-active .select2-choices {
  border-color: var(--selcuk-blue) !important;
}

.select2-drop-active {
  border-color: var(--selcuk-blue) !important;
}

.select2-results .select2-highlighted {
  background-color: var(--selcuk-blue) !important;
}

/* Page */
.erasmus-page {
  max-width: 100%;
  margin: 0;
  padding: 0.5rem;
}

.page-header {
  margin-bottom: 1.75rem;
}

.page-header h1 {
  color: var(--selcuk-blue);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.page-header p {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Filter card */
.filter-card {
  background: #fff;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}

.filter-card .card-body {
  padding: 1.25rem 1.5rem;
}

.filter-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--selcuk-blue);
  text-transform: uppercase;
}

.btn-selcuk {
  background-color: var(--selcuk-blue);
  border-color: var(--selcuk-blue);
  color: #fff;
  font-weight: 600;
  border-radius: var(--border-radius);
  padding: 0.4rem 0.85rem;
  height: 40px;
  font-size: 0.95rem;
  width: 100%;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-selcuk:hover,
.btn-selcuk:focus {
  background-color: var(--selcuk-blue-dark);
  border-color: var(--selcuk-blue-dark);
  color: #fff;
}

.btn-selcuk:active {
  transform: scale(0.98);
}

/* Table card */
.table-card {
  background: #fff;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.table-card .card-header {
  background: var(--selcuk-blue-light);
  border-bottom: 2px solid var(--selcuk-blue);
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: var(--selcuk-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-card .badge-count {
  background-color: var(--selcuk-blue);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.35em 0.75em;
  border-radius: 20px;
}

.ders-table {
  margin-bottom: 0;
}

.ders-table thead th {
  background-color: var(--selcuk-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.ders-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-top: 1px solid #e9ecef;
  font-size: 0.95rem;
}

.ders-table tbody tr:hover {
  background-color: var(--selcuk-blue-light);
}

.ders-table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

.ders-table tbody tr:nth-child(even):hover {
  background-color: var(--selcuk-blue-light);
}

.ders-table .col-fakulte {
  font-weight: 500;
  color: var(--selcuk-blue);
}

.empty-state {
  padding: 3rem 1.5rem !important;
  text-align: center;
  color: #6c757d;
}

.empty-state i {
  font-size: 2.5rem;
  color: #ced4da;
  margin-bottom: 0.75rem;
  display: block;
}

@media (max-width: 767px) {
  .erasmus-page {
    padding: 1rem 0;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .btn-selcuk {
    margin-top: 0.5rem;
  }

  .ders-table thead th,
  .ders-table tbody td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
}
