/* ogretmen/stil.css */

:root {
    /* --- RENK PALETİ --- */
    --bg-body: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --bg-header: linear-gradient(135deg, #1e293b, #334155);
    --bg-card: rgba(255, 255, 255, 0.98);
    
    --text-primary: #334155;
    --text-secondary: #64748b;
    --text-white: #ffffff;
    
    --input-bg: #f8fafc;
    --border-color: #e2e8f0;
    --accent-color: #6366f1;
    
    --btn-bg: #475569;
    --btn-hover: #334155;
    
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- TEMEL AYARLAR (TAŞMAYI ÖNLER) --- */
* {
    box-sizing: border-box; /* Kritik kod: Padding taşmasını engeller */
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Yatay kaydırmayı kökten kapatır */
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-body);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    display: flex;
    justify-content: center; /* Ortala */
    align-items: flex-start;
    min-height: 100vh;
    font-size: 14px;
}

/* --- KONTEYNER (KARTLARI SARAN KUTU) --- */
.konteyner {
    width: 92%; /* Mobilde kenarlardan %4 boşluk kalsın */
    max-width: 550px; /* Masaüstünde çok yayılmasın */
    margin: 20px auto; /* Üstten alttan boşluk, yanlardan ortala */
    padding: 0; /* İç boşluğu sıfırladık, genişliği width ile yöneteceğiz */
}

.gizle { display: none !important; }

/* --- KART YAPISI --- */
.kart-izgara {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Kartlar arası boşluk */
    width: 100%;
}

.kart {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden; /* İçerik taşarsa gizle */
    border: 1px solid rgba(255,255,255,0.5);
    width: 100%;
    margin-bottom: 15px;
}

.kart-baslik-alani, .hava-ust-panel, .baslik-cubugu, .theme-header-bg {
    background: var(--bg-header);
    color: var(--text-white);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    height: 50px;
    cursor: pointer;
    user-select: none;
}

.kart h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kart-icerik { 
    padding: 15px; 
}

/* --- FORM ELEMANLARI --- */
.giris-kutusu {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    text-align: center;
    margin-top: 60px;
    width: 90%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.giris-kutusu h2 {
    background: var(--bg-header);
    color: white;
    margin: 0;
    padding: 15px;
    font-size: 1.1rem;
}

.giris-form-body { padding: 20px; }

input[type="password"], 
input[type="text"], 
input[type="time"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    max-width: 100%; /* Taşmayı engeller */
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem; 
    transition: all 0.2s ease;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: var(--btn-bg);
    transition: 0.2s;
    font-size: 1rem;
}

button:hover {
    background: var(--btn-hover);
    transform: translateY(-1px);
}

/* --- HAVA DURUMU --- */
.sol-kisim { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    flex-wrap: wrap; 
    max-width: 70%; /* Yazıların sağa taşmasını engeller */
}
.sehir-adi { font-size: 1rem; font-weight: bold; color: var(--text-white); display: flex; align-items: center; gap: 5px;}
.anlik-bilgi { display: flex; align-items: center; gap: 5px; color: var(--text-white); }

select.ozel-select {
    padding: 5px 8px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    background: #fff;
    outline: none;
    cursor: pointer;
    margin-bottom: 0;
    width: auto;
}

.yatay-scroll-alani {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 5px 2px 10px 2px;
    margin-top: 5px;
    width: 100%;
    /* Mobilde kaydırma çubuğunu gizle ama kaydırmaya izin ver */
    scrollbar-width: none; 
    -ms-overflow-style: none;  
}
.yatay-scroll-alani::-webkit-scrollbar { display: none; }

.saat-kutusu {
    background: #fff;
    min-width: 60px; /* Biraz daha daralttık */
    padding: 8px 4px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0; /* Küçülüp bozulmasın */
}
.saat-kutusu .zaman { font-size: 0.7rem; color: var(--text-secondary); font-weight: 600; }
.saat-kutusu .ikon { font-size: 1.3rem; margin: 2px 0; }
.saat-kutusu .derece { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); }

/* --- LİSTE VE TABLOLAR --- */
ul { list-style-type: none; padding: 0; margin: 0; }
li {
    padding: 12px 5px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}
li:last-child { border-bottom: none; }

/* GERİ BUTONU */
.geri-btn {
    color: var(--text-white); text-decoration: none; border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 10px; border-radius: 6px; font-size: 0.8rem; transition: 0.3s;
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.geri-btn:hover { background: rgba(255,255,255,0.2); }

/* =========================================================
   MÜZİK PLAYER EK DÜZENLEMELERİ (Orijinal Tasarımla Uyumlu)
   ========================================================= */
.music-card-body { padding: 15px; }
.mp-controls-area { 
    background: #f8fafc; 
    border-radius: 12px; 
    padding: 15px; 
    border: 1px solid #e2e8f0; 
    margin-bottom: 15px; 
    text-align: center;
}
.mp-title { font-weight: 800; color: #1e293b; font-size: 1.1rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-time { font-size: 0.8rem; color: #64748b; font-weight: 600; margin-bottom: 10px; font-variant-numeric: tabular-nums; }

.mp-prog-cont { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; font-size: 0.75rem; color: #94a3b8; font-weight: 700; position: relative; }
.mp-prog-bg { flex-grow: 1; height: 6px; background: #e2e8f0; border-radius: 3px; cursor: pointer; position: relative; }
.mp-prog-fill { height: 100%; background: #6366f1; width: 0%; border-radius: 3px; }

#mpHoverTime {
    position: absolute;
    bottom: 12px;
    background: #1e293b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    pointer-events: none;
    display: none;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
}

.mp-btns { display: flex; justify-content: center; align-items: center; gap: 20px; }
.mp-btn-s { background: none; border: none; color: #64748b; cursor: pointer; font-size: 1.1rem; padding: 5px; }
.mp-btn-main { 
    width: 55px; 
    height: 55px; 
    min-width: 55px;
    background: #1e293b; 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.3rem; 
    cursor: pointer; 
    border: none; 
    box-shadow: 0 4px 10px rgba(30,41,59,0.2); 
    flex-shrink: 0;
    padding: 0;
}

.mp-list { max-height: 250px; overflow-y: auto; border-top: 1px solid #f1f5f9; }
.mp-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid #f8fafc; cursor: pointer; transition: 0.2s; }
.mp-item:hover { background: #f8fafc; }
.mp-item.active { background: #eef2ff; border-left: 3px solid #6366f1; }
.mp-item.active .mp-name { color: #6366f1; font-weight: 700; }
.mp-name { font-size: 0.9rem; color: #334155; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-dur-txt { font-size: 0.75rem; color: #94a3b8; font-weight: 600; margin-right: 10px; min-width: 35px; text-align: right; }
.mp-acts { display: flex; gap: 5px; }
.mp-act-btn { color: #94a3b8; font-size: 0.8rem; background: none; border: none; cursor: pointer; padding: 4px; }
.mp-act-btn:hover { color: #334155; }
.mp-upload-zone { text-align: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.mp-upload-lbl { background: #e0e7ff; color: #4338ca; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.mp-prog-up { height: 3px; background: #10b981; width: 0%; margin-top: 5px; }

/* =========================================================
   KİŞİSEL TAKİP VE DİĞER MODÜLLER
   ========================================================= */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 15px; }
.menu-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px 5px; text-align: center; text-decoration: none; color: #334155; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.menu-item:hover { background: #eef2ff; border-color: #6366f1; transform: translateY(-2px); }
.menu-item i { font-size: 1.5rem; color: #6366f1; }
.menu-item span { font-size: 0.9rem; font-weight: 700; }

.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-icerik { background-color: #fff; margin: 10% auto; padding: 25px; border-radius: 12px; width: 90%; max-width: 400px; position: relative; animation: slideDownModal 0.3s ease-out; border: 1px solid #e2e8f0; }
@keyframes slideDownModal { from {opacity: 0; transform: translateY(-20px);} to {opacity: 1; transform: translateY(0);} }

.kapat-btn { position: absolute; top: 15px; right: 20px; font-size: 24px; color: #94a3b8; cursor: pointer; }
.sonuc-listesi { list-style: none; padding: 0; margin-top: 10px; max-height: 200px; overflow-y: auto; border: 1px solid #f1f5f9; display: none; }
.sonuc-listesi li { padding: 10px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.sonuc-listesi li:hover { background: #f8fafc; }

.konu-konteyner { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 25px 15px; text-align: center; flex-wrap: wrap; }
.hafta-etiketi { background: #6366f1; color: white; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.tatil-etiketi { background: #ea580c; color: white; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
.konu-metni { font-size: 1.1rem; font-weight: 600; color: #334155; line-height: 1.4; }

.save-btn { width: 100%; padding: 12px; background: #1e293b; color: #fff; border: none; border-radius: 8px; margin-top: 15px; cursor: pointer; font-weight: bold; transition: background 0.2s; }
.save-btn:hover { background: #0f172a; }
.card-footer-btn { display: block; margin-top: 12px; padding: 10px; background: #f1f5f9; color: #475569; text-align: center; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; border: 1px solid #e2e8f0; }
.card-footer-btn:hover { background: #e2e8f0; color: #1e293b; border-color: #cbd5e1; }
.card-footer-btn i { margin-right: 6px; }

/* =========================================================
   YÖNETİM PANELİ EK DÜZENLEMELERİ (TABLAR VE SORTABLE)
   ========================================================= */
.tabs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}
.tab-btn {
    padding: 10px 15px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
    transition: 0.2s;
}
.tab-btn.active {
    color: var(--accent-color);
    background-color: var(--bg-card);
    border-bottom: 3px solid var(--accent-color);
}
.tab-content {
    display: none;
    animation: slideDownModal 0.4s ease-out;
}
.tab-content.active {
    display: block;
}

#sortable-list { list-style: none; padding: 0; margin: 0; }
#sortable-list li { padding: 12px; margin-bottom: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; cursor: move; display: flex; align-items: center; font-weight: 600; color: #334155; }
#sortable-list li i { margin-right: 12px; color: #94a3b8; }

.schedule-grid {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    gap: 8px;
    overflow-x: auto;
}
.grid-header {
    font-weight: bold;
    text-align: center;
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
}
.grid-cell {
    padding: 5px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
}
.grid-cell-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    background-color: var(--border-color);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}
.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

/* --- MOBİL İÇİN ÖZEL DÜZELTMELER --- */
@media (max-width: 480px) {
    .konteyner {
        width: 94%; /* Mobilde kenar boşluğu %3 sağ %3 sol */
        margin: 15px auto;
    }
    
    .kart-baslik-alani, .hava-ust-panel, .theme-header-bg {
        padding: 10px;
    }
    
    .kart h2 { font-size: 0.9rem; }
    
    /* Uzun şehir isimleri taşmasın diye */
    .sehir-adi {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .anlik-bilgi { font-size: 0.9rem; }
    
    /* Tablolarda yazı küçültme */
    li span { font-size: 0.85rem; }
}

/* --- AKORDEON İÇERİK --- */
.accordion-content {
    display: none;
}
.accordion-content.open {
    display: block !important;
}
/* Akordeon açıkken kısayolları gizle */
.kart:has(.accordion-content.open) .header-shortcuts {
    display: none !important;
}

/* --- KART VE HESAP CÜZDANI MODAL TASARIMLARI --- */
.wallet-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.wallet-container::-webkit-scrollbar {
    width: 6px;
}
.wallet-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.wallet-item {
    position: relative;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
    overflow: hidden;
}
.wallet-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Kredi Kartı Teması */
.credit-card-view {
    background: linear-gradient(135deg, #1e1e2f 0%, #0a0a14 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}
.credit-card-view::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.card-chip-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.card-chip {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 6px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.1);
}
.card-chip::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 8px;
    width: 20px;
    height: 18px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
}
.card-brand {
    font-size: 1.8rem;
    opacity: 0.9;
    color: #fff;
}

.card-number-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4rem;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: color 0.15s;
    justify-content: center;
}
.card-number-display:hover {
    color: #818cf8;
}
.card-number-display.masked .num-chunk:nth-child(-n+3) {
    letter-spacing: 1px;
}

.card-holder-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.card-lbl {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.card-val {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-actions, .iban-actions {
    display: flex;
    gap: 6px;
}
.wallet-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.1s;
}
.wallet-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}
.wallet-btn:active {
    transform: scale(0.95);
}

/* IBAN Cüzdan Teması */
.iban-view {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #10b981;
    color: #1e293b;
}
.iban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.bank-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bank-holder {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
}
.iban-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.iban-text-display {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #334155;
    cursor: pointer;
    transition: color 0.15s;
    flex: 1;
}
.iban-text-display:hover {
    color: #10b981;
}
.iban-view .wallet-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}
.iban-view .wallet-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* TOAST BİLDİRİMİ (Kopyalandı Uyarısı - Mobilde Üstte En Üst Katmanda Görünür) */
.toast-notice {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #10b981;
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(16,185,129,0.4);
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
}
.toast-notice.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mobil Tek Satır Kart ve IBAN Ayarları */
@media (max-width: 480px) {
    .toast-notice {
        top: 15px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .wallet-card-number-box span {
        font-size: clamp(0.7rem, 3.3vw, 0.85rem) !important;
        letter-spacing: 0px !important;
    }
}


/* --- KART BAŞLIĞINDAKİ KISAYOL BUTONLARI --- */
.header-shortcuts {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
    margin-right: 15px;
}
.header-shortcuts a {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s, transform 0.1s;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.header-shortcuts a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}
.header-shortcuts a:active {
    transform: translateY(0);
}

/* Akordeon açıkken kısayolları gizle */
.kart:has(.accordion-content.open) .header-shortcuts {
    display: none !important;
}


