/* OEADD: mentor olimpiyat kaydinda "Ogrencim olmayan birini ekle" (public/mentor-olympiad.php, assets/js/oeadd.js) */
.oea-btn { background: #15803d; color: #fff; border-color: #15803d; }
.oea-btn:hover { background: #166534; border-color: #166534; color: #fff; }
.oea-btn:focus-visible, .oea-link:focus-visible, .oea-remove:focus-visible, .oea-more:focus-visible, .oea-x:focus-visible, .oea-row-del:focus-visible { outline: 2px solid #15803d; outline-offset: 2px; }

/* Baslik: "Ogrencilerim (n)" sag tarafinda buyuk yesil dugme + not; telefonda en ustte tam genislik */
.oea-head-add { display: grid; justify-items: end; gap: 4px; margin-inline-start: auto; max-width: 100%; }
.oea-head-add .oea-btn { min-height: 48px; padding: 0 22px; font-size: 15px; }
.oea-head-add small { font-size: 12.5px; color: var(--hm-muted, #64748b); text-align: end; }
.mt-empty .oea-btn { margin-top: 2px; }
.oea-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 8px 0 4px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 700; color: #15803d; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Ek kisiler listesi */
.oea-extras { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(20,33,61,0.18); }
.oea-extras-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15.5px; font-weight: 800; color: var(--hm-ink, #14213d); }
.oea-extras-title i { color: #15803d; }
.oea-extras > .mt-muted { margin: 0 0 6px; font-size: 13px; }
.oea-row { display: flex; align-items: center; gap: 6px; flex: 1 1 300px; min-width: 0; }
.oea-row > .oe-pick-row { flex: 1; min-width: 0; }
.oea-remove { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(20,33,61,0.14); border-radius: 50%; background: #fff; color: #b42318; font-size: 15px; cursor: pointer; }
.oea-remove:hover { background: #fef3f2; border-color: #b42318; }

/* Pencere */
.oea-dialog { position: fixed; inset: 0; margin: auto; width: min(720px, calc(100vw - 32px)); max-width: none; height: fit-content; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; background: var(--white, #fff); color: var(--hm-text, #1f2937); box-shadow: 0 24px 60px rgba(20,33,61,0.3); overflow: hidden; }
.oea-dialog[open] { display: flex; flex-direction: column; }
.oea-dialog::backdrop { background: rgba(20,33,61,0.55); }
body.oea-lock { overflow: hidden; }
.oea-form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 32px); }
.oea-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(20,33,61,0.1); }
.oea-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 800; color: var(--hm-ink, #14213d); }
.oea-head h2 i { color: #15803d; }
.oea-x { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--hm-paper, #f4f6fb); color: var(--hm-ink, #14213d); font-size: 18px; cursor: pointer; }
.oea-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; display: grid; gap: 14px; align-content: start; }
.oea-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--hm-muted, #64748b); }
.oea-err { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #fef3f2; color: #b42318; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.oea-err i { margin-top: 3px; }
.oea-rows { display: grid; gap: 12px; }
.oea-person { position: relative; display: grid; gap: 10px; margin: 10px 0 0; padding: 14px; border: 1px solid rgba(20,33,61,0.14); border-radius: 14px; min-width: 0; }
.oea-person.has-error { border-color: #f04438; background: #fffbfa; }
.oea-person legend { padding: 0 6px; font-size: 13.5px; font-weight: 800; color: var(--hm-ink, #14213d); }
.oea-row-del { position: absolute; top: -24px; inset-inline-end: 10px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(20,33,61,0.14); border-radius: 50%; background: var(--white, #fff); color: #b42318; cursor: pointer; }
.oea-row-del[hidden] { display: none; }
.oea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.oea-grid label { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--hm-ink, #14213d); }
.oea-grid .oea-wide { grid-column: 1 / -1; }
.oea-grid input, .oea-grid select { width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid rgba(20,33,61,0.2); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 400; color: var(--hm-text, #1f2937); }
.oea-grid input:focus, .oea-grid select:focus { outline: 2px solid #15803d; outline-offset: 0; border-color: #15803d; }
[dir="rtl"] .oea-grid input[type="email"] { text-align: right; }
.oea-more { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px dashed #15803d; border-radius: 999px; background: #f0fdf4; color: #15803d; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.oea-more:disabled { opacity: 0.5; cursor: not-allowed; }
.oea-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid rgba(20,33,61,0.1); background: var(--hm-paper, #f8fafc); }

@media (hover: none) {
    .oea-btn:hover { background: #15803d; border-color: #15803d; }
    .oea-remove:hover { background: #fff; border-color: rgba(20,33,61,0.14); }
}

@media (max-width: 900px) {
    .oea-head-add { justify-items: stretch; flex: 1 1 100%; order: -1; margin-inline-start: 0; }
    .oea-head-add .oea-btn { width: 100%; }
    .oea-head-add small { text-align: start; }
}
@media (max-width: 640px) {
    .oea-dialog { width: 100vw; max-height: 100dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
    .oea-form { max-height: 100dvh; }
    .oea-head, .oea-body, .oea-foot { padding-inline: 16px; }
    .oea-grid { grid-template-columns: minmax(0, 1fr); }
    .oea-foot .mt-btn { flex: 1 1 100%; }
    .oea-foot { flex-direction: column-reverse; }
}
