/**
 * Mobil bottom-sheet select (oe-tp-mobile-select-sheet.js).
 * Ön yüz yönetici (#oe-af-app) sayfalarında teacher-panel.css yüklenmediği için ayrı dosya.
 * z-index: yarışma modalları (.oe-quiz-modal 999999) ve bilgi yarışması modalının üstünde kalmalı.
 */
.oe-tp-mobile-select-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  -webkit-tap-highlight-color: transparent;
}

.oe-tp-mobile-select-backdrop.is-open {
  display: flex;
}

.oe-tp-mobile-select-sheet {
  width: 100%;
  max-width: 100%;
  max-height: min(72vh, 560px);
  box-sizing: border-box;
  background: var(--oe-tp-card-bg, #fff);
  color: var(--oe-tp-text, #111827);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.18);
  padding: 12px 0 max(12px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  animation: oe-tp-mobile-select-sheet-in 0.22s ease-out;
}

@keyframes oe-tp-mobile-select-sheet-in {
  from {
    transform: translateY(12px);
    opacity: 0.92;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.oe-tp-mobile-select-sheet__title {
  padding: 8px 20px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--oe-tp-muted, #6b7280);
  border-bottom: 1px solid var(--oe-tp-border, #e5e7eb);
  flex-shrink: 0;
}

.oe-tp-mobile-select-sheet__list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(60vh, 480px);
}

.oe-tp-mobile-select-optgroup {
  padding: 14px 20px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--oe-tp-muted, #6b7280);
  background: var(--oe-tp-page-bg, #eef1f6);
}

.oe-tp-mobile-select-option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 20px;
  min-height: 48px;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  color: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--oe-tp-border, #e5e7eb);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.oe-tp-mobile-select-option:last-child {
  border-bottom: none;
}

.oe-tp-mobile-select-option:hover,
.oe-tp-mobile-select-option:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.oe-tp-mobile-select-option.is-selected {
  font-weight: 700;
  color: var(--oe-tp-accent, #2563eb);
  background: rgba(37, 99, 235, 0.06);
}

.oe-tp-mobile-select-option--disabled {
  padding: 14px 20px;
  min-height: 44px;
  font-size: 0.95rem;
  color: var(--oe-tp-muted, #6b7280);
  border-bottom: 1px solid var(--oe-tp-border, #e5e7eb);
  opacity: 0.85;
}
