/* === Ana Kapsayıcı === */
#oso-hedef-kayit {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Giriş Alanları === */
#oso-hedef-kayit input[type="password"],
#oso-hedef-kayit input[type="text"],
#oso-hedef-kayit textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border 0.3s;
}

#oso-hedef-kayit input:focus,
#oso-hedef-kayit textarea:focus {
    border-color: #2185d0;
    outline: none;
}

/* === Genel Butonlar === */
#oso-hedef-kayit button {
    background-color: #c30d0d;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    margin: 8px 0;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, transform 0.1s;
}

#oso-hedef-kayit button:hover {
    background-color: #810909;
    transform: scale(1.02);
}

/* === Öğrenci - Modül - Hedef Butonları === */
#ogrenci-listesi {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

/* 👦 Öğrenci, 📘 Modül, 🎯 Hedef Butonları */
#ogrenci-listesi button {
    display: inline-block;
    margin: 5px;
    padding: 10px 16px;
    background-color: #e0f7fa;
    border: 1px solid #00acc1;
    border-radius: 5px;
    color: #004d40;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#ogrenci-listesi button:hover {
    background-color: #b2ebf2;
}

#ogrenci-listesi .oso-student-empty {
    width: 100%;
    padding: 12px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    color: #475569;
    background: #f8fafc;
    text-align: center;
}

/* Seçili Butonlar */
.ogrenci-btn.selected{
    background-color: #00acc1 !important;
    color: white;
    border-color: #007c91;
}

#hedef-butonlari {
    
}



/* ✅ Bilgi Alanı */
#bilgi-alani {
    background-color: #f3fffc;
    border: 3px dashed #07ff8c;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}

#bilgi-alani h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
    font-size: 18px;
}

#bilgi-alani p {
    margin: 6px 0;
    font-size: 15px;
}

#ogrenci-ara {
    width: 95% !important;

}


#ogretmen-notu {
    width: 95% !important;
    height: 195px !important; /* önceki tahmini ~80px idi */
    resize: vertical;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}


/* ❌ Seçim İptal Butonu */
.iptal-ogrenci {
    background-color: #fff;
    color: red;
    font-weight: bold;
    margin-left: 10px;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 50%;
    border: 1px solid red;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.iptal:hover {
    background-color: #f5f5f5;
}

/* 💾 Kaydet Butonu */
#hedef-kaydet {
    background-color: #28a745 !important;
}
#hedef-kaydet:hover {
    background-color: #218838 !important;
}

/* 📋 Kayıt Sonucu */
#kayit-sonuc {
    margin-top: 15px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

/* ✅ Responsive Tablolar */
table.oso-admin-table,
table.widefat {
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
}

/* 💡 Mobil Uyumlu */
@media screen and (max-width: 600px) {
    #oso-hedef-kayit {
        padding: 15px;
    }
    #ogrenci-listesi,
    #modul-butonlari,
    #hedef-butonlari {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    button {
        width: 100% !important;
        font-size: 16px;
    }
}

/* 🔐 Şifre Giriş Alanı */
#sifre-giris-alani {
    max-width: 400px;
    margin: 0 auto;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    background: white;
    text-align: center;
    box-sizing: border-box;
}
#sifre-giris-alani input {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
}
#sifre-giris-alani button {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
    background-color: #22a34f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
#sifre-giris-alani button:hover {
    background-color: #1c8942;
}

/* ✨ Her bir kutu çerçevesi */
#ogrenci-secim, #modul-alani, #hedef-alani, #not-alani {
    border: 3px solid #ff8888;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

 #not-alani{
    border: 3px solid #9d8cff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#modul-alani {

     border: 3px solid #a4f5ee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#modul-butonlari button {
    background-color: #ffffc3;
    border: 1px solid #ccc;
    color: #444;
}

#modul-butonlari button:hover {
    background-color: #f3f372;
}

.dinamik-modul-btn.selected {
    background-color: #d1d1b8 !important;
    border-color: #aaa !important;
    color: #222 !important;
}



/* hedefffff */
#hedef-alani {

    border: 3px solid #ffec08;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#hedef-butonlari button {
    background-color: #ffeaea;
    border: 1px solid #ffaaaa;
    color: #a60000;
}

#hedef-butonlari button:hover {
    background-color: #ffd6d6;
}

.hedef-btn.selected {
    background-color: #ffbcbc !important;
    border-color: #e68a8a !important;
    color: #800000 !important;
}

#hedef-davranis-alani {
    border: 3px solid #b8b5ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    background: #fbfbff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#hedef-davranis-butonlari {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#hedef-davranis-butonlari .hedef-davranis-btn {
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #9a96e8;
    border-radius: 7px;
    background: #f0efff;
    color: #312e81;
    font: inherit;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

#hedef-davranis-butonlari .hedef-davranis-btn:hover {
    border-color: #6d67d8;
    background: #e5e3ff;
}

#hedef-davranis-butonlari .hedef-davranis-btn.selected {
    border-color: #4338ca;
    background: #4338ca;
    color: #fff;
}

#hedef-davranis-butonlari .hedef-davranis-btn.is-completed {
    order: 2;
    border-style: dashed;
    border-color: #b8b6c9;
    background: #f2f2f5;
    color: #77758a;
    opacity: .58;
}

#hedef-davranis-butonlari .hedef-davranis-btn.is-completed small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #8a879b;
}

#hedef-davranis-butonlari .hedef-davranis-btn.is-completed.selected {
    border-color: #c24141;
    background: #fff0f0;
    color: #991b1b;
    opacity: 1;
}

.oso-hedef-davranis-hata {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fef2f2;
    color: #b91c1c;
}

.oso-required-mark {
    color: #dc2626;
}

.oso-hedef-tamamlandi-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 16px;
    padding: 13px 14px;
    border: 1px solid #b9e5cf;
    border-radius: 8px;
    background: #f1fbf6;
    color: #174b35;
    cursor: pointer;
    user-select: none;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.oso-hedef-tamamlandi-toggle:hover {
    border-color: #62c995;
    background: #e9f8f0;
}

.oso-hedef-tamamlandi-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.oso-hedef-tamamlandi-kutu {
    position: relative;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border: 2px solid #54ae7f;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.oso-hedef-tamamlandi-toggle input:checked + .oso-hedef-tamamlandi-kutu {
    border-color: #198754;
    background: #198754;
}

.oso-hedef-tamamlandi-toggle input:checked + .oso-hedef-tamamlandi-kutu::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 7px;
    height: 13px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.oso-hedef-tamamlandi-toggle input:focus-visible + .oso-hedef-tamamlandi-kutu {
    box-shadow: 0 0 0 3px rgba(25,135,84,.2);
}

.oso-hedef-tamamlandi-metin {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.oso-hedef-tamamlandi-metin strong {
    font-size: 14px;
}

.oso-hedef-tamamlandi-metin small {
    font-size: 12px;
    color: #527563;
}

.oso-hedef-tamamlandi-toggle.is-removal {
    border-color: #f0a8a8;
    background: #fff2f2;
    color: #991b1b;
}

.oso-hedef-tamamlandi-toggle.is-removal:hover {
    border-color: #dc6b6b;
    background: #ffe9e9;
}

.oso-hedef-tamamlandi-toggle.is-removal .oso-hedef-tamamlandi-kutu {
    border-color: #dc4c4c;
}

.oso-hedef-tamamlandi-toggle.is-removal input:checked + .oso-hedef-tamamlandi-kutu {
    border-color: #c92f2f;
    background: #c92f2f;
}

.oso-hedef-tamamlandi-toggle.is-removal .oso-hedef-tamamlandi-metin small {
    color: #9f4b4b;
}
/* --- Modern tarih seçimi --- */
.oso-date-wrap{
  margin: 14px 0 18px;
  padding: 14px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(16,185,129,.10));
  border: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(8px);
}

.oso-date-label{
  display:block;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: .2px;
}

.oso-date-control{
  display:flex;
  gap:10px;
  align-items:center;
}

.oso-date-input{
  flex: 1 1 auto;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
  outline: none;
  font-size: 14px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.oso-date-input:focus{
  border-color: rgba(99,102,241,.55);
  box-shadow: 0 10px 26px rgba(99,102,241,.15);
  transform: translateY(-1px);
}

.oso-date-today{
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
  cursor:pointer;
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.oso-date-today:hover{
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.oso-date-hint{
  margin-top: 8px;
  font-size: 12px;
  opacity: .8;
}

/* [oso_ogrenci_arama] → Bölümler paneli */
#dk-bolumler-section { border-left:4px solid #16a34a; }
#dk-bolumler-wrap{ background:#f9fafb; border:1px solid #e5e7eb; border-radius:14px; padding:14px; }

.dk-grup{ margin-top:12px; border-left:4px solid #2563eb20; padding-left:10px; }
.dk-grup-baslik{ margin:0 0 6px 0; font-weight:700; color:#0f172a; font-size:16px; }
.dk-grup-list{ margin:0; padding:0 0 0 14px; }
.dk-item{ margin:4px 0; color:#374151; font-size:15px; line-height:1.6; }

.oso-upload-card {
  margin-top: 14px;
  margin-bottom: 22px;
}

.oso-upload-card input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.oso-upload-label {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  border: 1.5px dashed #9d8cff;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfaff, #f4f8ff);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.oso-upload-label:hover {
  border-color: #6d5df5;
  box-shadow: 0 12px 28px rgba(109, 93, 245, .12);
  transform: translateY(-1px);
}

.oso-upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #6d5df5;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  flex: 0 0 auto;
}

.oso-upload-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.oso-upload-text strong {
  color: #182033;
  font-size: 15px;
  line-height: 1.2;
}

.oso-upload-text small {
  color: #667085;
  font-size: 12.5px;
  line-height: 1.45;
}

.oso-upload-file {
  margin-top: 7px;
  color: #475467;
  font-size: 12px;
  word-break: break-word;
}

@media screen and (max-width: 600px) {
  .oso-upload-label {
    align-items: flex-start;
    padding: 13px;
  }

  .oso-upload-icon {
    width: 38px;
    height: 38px;
  }
}
/* Ders saati ve ogrenci secimi */
.oso-time-select {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #cbdde0;
}

.oso-time-title {
    margin-bottom: 9px;
    color: #26334d;
    font-size: 15px;
    font-weight: 800;
}

.oso-required-mark {
    color: #d92d20;
}

.oso-time-buttons {
    display: flex;
    min-height: 40px;
    flex-wrap: wrap;
    gap: 8px;
}

#oso-hedef-kayit .oso-time-button {
    min-width: 70px;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid #83cbd1;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 79, 91, .08);
    color: #174754;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

#oso-hedef-kayit .oso-time-button:hover {
    border-color: #0798a8;
    background: #eefcfd;
}

#oso-hedef-kayit .oso-time-button.selected {
    border-color: #087f8c;
    background: #087f8c;
    box-shadow: 0 4px 10px rgba(8, 127, 140, .2);
    color: #fff;
}

.oso-time-message {
    align-self: center;
    color: #667085;
    font-size: 13px;
}

.oso-time-message.is-error {
    color: #b42318;
}

.oso-student-select-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.oso-student-select-head > label:first-child {
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

/* Grup dersi secimi */
.oso-grup-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid #bde7df;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4fffc, #ecfffe);
    color: #0f5f56;
    font-weight: 800;
    cursor: pointer;
}
.oso-grup-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #0aa88f;
}

@media screen and (max-width: 520px) {
    .oso-student-select-head {
        gap: 8px;
    }

    .oso-student-select-head > label:first-child {
        font-size: 15px;
    }

    .oso-grup-toggle {
        gap: 6px;
        padding: 7px 9px;
        border-radius: 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    #oso-hedef-kayit .oso-time-button {
        width: auto !important;
        min-width: 64px;
        padding: 9px 10px;
        font-size: 14px;
    }
}
.oso-grup-summary {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f0fffe;
    border: 1px solid #c8f1ec;
    color: #17443f;
    line-height: 1.45;
}
.oso-grup-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.oso-grup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .56);
}
.oso-grup-dialog {
    position: relative;
    width: min(92vw, 620px);
    max-height: 82vh;
    margin: 8vh auto 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}
.oso-grup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #e6edf5;
    background: linear-gradient(135deg, #f7fffd, #eef8ff);
}
.oso-grup-head strong,
.oso-grup-head span {
    display: block;
}
.oso-grup-head strong {
    color: #102a43;
    font-size: 18px;
}
.oso-grup-head span {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}
#oso-hedef-kayit .oso-grup-close {
    width: 38px !important;
    height: 38px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background: #eaf2f8;
    color: #102a43;
    font-size: 24px;
    line-height: 1;
}
.oso-grup-list {
    display: grid;
    gap: 10px;
    max-height: 52vh;
    overflow: auto;
    padding: 16px 20px;
}
#oso-hedef-kayit .oso-grup-student {
    width: 100% !important;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #dbe8ef;
    border-radius: 14px;
    background: #f8fbfd;
    color: #102a43;
    text-align: left;
    box-shadow: none;
}
#oso-hedef-kayit .oso-grup-student strong,
#oso-hedef-kayit .oso-grup-student span {
    display: block;
}
#oso-hedef-kayit .oso-grup-student span {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}
#oso-hedef-kayit .oso-grup-student.is-selected {
    border-color: #0aa88f;
    background: #e9fffb;
    color: #075f52;
}
#oso-hedef-kayit .oso-grup-student:hover {
    border-color: #dbe8ef;
    background: #f8fbfd;
    color: #102a43;
    transform: none;
}
#oso-hedef-kayit .oso-grup-student.is-selected:hover {
    border-color: #0aa88f;
    background: #e9fffb;
    color: #075f52;
    transform: none;
}
.oso-grup-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 20px 18px;
    border-top: 1px solid #e6edf5;
}
.oso-grup-no-common {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #f2d48a;
    border-radius: 14px;
    background: #fff8e6;
    color: #6f4e00;
}
.oso-grup-loading,
.oso-grup-empty {
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

@media screen and (max-width: 600px) {
    .oso-grup-dialog {
        width: 94vw;
        margin-top: 5vh;
        max-height: 88vh;
    }
    .oso-grup-actions {
        flex-direction: column;
    }
}
