/* MEDIT: mentorun ogrenci bilgilerini duzenlemesi + sifre baglantisi (public/mentor-student.php, mentor-students.php) */
.medit-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
/* Ogrenci ayrintisi hero'sunda dugmeler cogaldi: sigmayinca alt satira insin, ad sutunu ezilmesin */
.mt-hero-inner:has(.medit-actions) { flex-wrap: wrap; }
.mt-hero-inner:has(.medit-actions) .mt-hero-text { flex: 1 1 260px; }
/* Ogrenci ayrintisi: tum hero dugmeleri tek grupta (.mt-hero-actions), adin altinda duzenli sira; dar ekranda 2 sutun, mesaj tam satir */
.mt-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.mt-hero-actions .medit-actions { display: contents; }
.mt-hero-actions .mt-btn { flex: 0 0 auto; }
@media (max-width: 900px) {
    .mt-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mt-hero-actions .mt-btn { width: 100%; min-width: 0; padding: 8px 14px; white-space: normal; text-align: center; line-height: 1.25; }
    .mt-hero-actions .mt-btn-primary { grid-column: 1 / -1; }
}
.medit-btn { white-space: normal; text-align: center; line-height: 1.25; }
.medit-btn.is-ok { border-color: #9fd9c1; background: #e3f6ee; color: #0a7250; }
.medit-pw-btn { justify-content: center; min-width: 44px; border: 0; cursor: pointer; font: inherit; font-size: 14px; }
.medit-pw-btn:focus-visible, .medit-btn:focus-visible, .medit-x:focus-visible { outline: 2px solid var(--primary, #1a73e8); outline-offset: 2px; }
.medit-pw-btn.is-ok { background: #e3f6ee; color: #0a7250; }
.medit-pw-btn[aria-busy="true"], .medit-btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* Bildirim seridi (alt orta) */
.medit-msg { position: fixed; inset-inline: 16px; bottom: 20px; z-index: 1200; max-width: 520px; margin-inline: auto; padding: 12px 16px; border-radius: 12px; background: #14213d; color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.4; box-shadow: 0 10px 30px rgba(20,33,61,0.25); }
.medit-msg.is-ok { background: #0a7250; }
.medit-msg.is-bad { background: #a4262c; }

/* Duzenleme penceresi */
.medit-dialog { position: fixed; inset: 0; margin: auto; width: min(640px, 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: auto; }
.medit-dialog::backdrop { background: rgba(20,33,61,0.55); }
.medit-form { display: grid; gap: 14px; padding: 20px 22px 22px; }
.medit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.medit-head h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.medit-x { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--hm-paper, #f3f5f9); color: inherit; font-size: 18px; cursor: pointer; }
.medit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.medit-grid label { display: grid; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; }
.medit-grid input, .medit-grid select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid rgba(20,33,61,0.2); border-radius: 10px; background: var(--white, #fff); color: inherit; font: inherit; font-weight: 400; }
.medit-grid input:focus, .medit-grid select:focus { outline: 2px solid var(--primary, #1a73e8); outline-offset: 0; border-color: transparent; }
.medit-grid input[readonly] { background: var(--hm-paper, #f3f5f9); color: var(--hm-muted, #6b7280); }
.medit-wide { grid-column: 1 / -1; }
.medit-hint { font-size: 12.5px; font-weight: 400; color: var(--hm-muted, #6b7280); line-height: 1.4; }
.medit-note { margin: 0; font-size: 13.5px; color: var(--hm-muted, #6b7280); }
.medit-note i { margin-inline-end: 6px; }
.medit-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: #a4262c; font-size: 14px; font-weight: 600; }
.medit-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
    .medit-actions { flex-basis: 100%; }
    .medit-actions .medit-btn { flex: 1 1 0; }
    .mt-hero-inner:has(.medit-actions) > .mt-btn { flex: 1 1 auto; }
}
@media (max-width: 640px) {
    .medit-actions .medit-btn { flex: 1 1 100%; }
    .medit-grid { grid-template-columns: 1fr; }
    .medit-form { padding: 16px; }
    .medit-foot .mt-btn { flex: 1 1 0; }
}
@media (hover: none) {
    .medit-x:hover { background: var(--hm-paper, #f3f5f9); }
}
