/**
 * Moovian Ön Muhasebe - Premium Vanilla CSS
 */

:root {
    --bg-koyu: #111424;
    --bg-sidebar: #151933;
    --bg-acik: #f4f6fa;
    --renk-mor: #705ec8;
    --renk-mor-light: #8e75ff;
    --renk-kirmizi: #f82649;
    --renk-yesil: #2dce89;
    --renk-mavi: #1753fc;
    --yazi-ana: #333a56;
    --yazi-acik: #7a829e;
    --border-renk: #e8ebf3;
    --kart-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 8px 30px rgba(112, 94, 200, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-acik);
    color: var(--yazi-ana);
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================================================
   1. Kilit Ekranı (Lockscreen) Tasarımı
   ========================================================================== */

.kilit-sayfasi-body {
    background: linear-gradient(135deg, #e4ecf5 0%, #f1f5fa 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Yüzen Balonlar */
.balon {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.15;
    z-index: 1;
    animation: yuzme 12s infinite ease-in-out alternate;
}

.balon-1 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #705ec8, #ffc107);
    top: 10%;
    left: 15%;
}

.balon-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #f82649, #8e75ff);
    bottom: 10%;
    right: 10%;
}

.balon-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #2dce89, #1753fc);
    bottom: 20%;
    left: 8%;
    animation-duration: 8s;
}

.balon-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #705ec8, #f82649);
    top: 25%;
    right: 25%;
    animation-duration: 15s;
}

@keyframes yuzme {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    100% { transform: translateY(-40px) scale(1.1) rotate(20deg); }
}

.kilit-kapsayici {
    width: 380px;
    background-color: var(--bg-koyu);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(21, 25, 51, 0.3);
    text-align: center;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.kilit-logo {
    margin-bottom: 20px;
}

.kilit-durum {
    background-color: var(--renk-kirmizi);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.kilit-durum.basarili {
    background-color: var(--renk-yesil);
}

.kilit-durum.hatali {
    background-color: var(--renk-kirmizi);
    animation: sarsinti 0.4s ease;
}

@keyframes sarsinti {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.kilit-bilgi {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 25px;
}

.canvas-kapsayici {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

#desen-canvas {
    cursor: pointer;
    background: transparent;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    display: block;
}

.kilit-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
}


/* ==========================================================================
   2. Giriş Yap Ekranı (Login) Tasarımı
   ========================================================================== */

.giris-sayfasi-body {
    background-color: var(--bg-acik);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.giris-kapsayici {
    display: flex;
    width: 900px;
    height: 580px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.giris-sol {
    flex: 1.1;
    background-color: var(--bg-sidebar);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.gece-manzarasi {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(180deg, #100f2e 0%, #151933 100%);
}

.yildizlar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-image: 
        radial-gradient(circle, #fff 1px, transparent 1.5px),
        radial-gradient(circle, #fff 0.5px, transparent 1px);
    background-size: 80px 80px, 40px 40px;
    background-position: 0 0, 30px 10px;
    opacity: 0.3;
}

.daglar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    z-index: 2;
}

.cadir-alanı {
    position: absolute;
    bottom: 10%;
    left: 15%;
    z-index: 3;
}

.ates-isik {
    animation: ates-parlama 1.5s infinite alternate;
}

@keyframes ates-parlama {
    0% { r: 6; opacity: 0.7; }
    100% { r: 12; opacity: 0.3; }
}

.giris-sol-yazi {
    position: relative;
    z-index: 4;
    margin-top: 30px;
}

.giris-sol-yazi h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.giris-sol-yazi p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
}

.sol-footer {
    position: relative;
    z-index: 4;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.giris-sag {
    flex: 1;
    padding: 50px;
    display: flex;
    align-items: center;
}

.giris-form-kapsayici {
    width: 100%;
}

.giris-logo {
    margin-bottom: 25px;
}

.giris-sag h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--yazi-ana);
    margin-bottom: 6px;
}

.form-aciklama {
    color: var(--yazi-acik);
    font-size: 14px;
    margin-bottom: 25px;
}

.giris-hata {
    background-color: rgba(248, 38, 73, 0.1);
    color: var(--renk-kirmizi);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(248, 38, 73, 0.15);
}

.form-grup {
    margin-bottom: 20px;
}

.form-grup label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--yazi-ana);
    margin-bottom: 8px;
}

.form-grup input, .form-grup select, .form-grup textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-renk);
    border-radius: 10px;
    background-color: #fafbfc;
    font-size: 14px;
    color: var(--yazi-ana);
    transition: all 0.3s ease;
}

.form-grup input:focus, .form-grup select:focus, .form-grup textarea:focus {
    outline: none;
    border-color: var(--renk-mor);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(112, 94, 200, 0.1);
}

.giris-buton {
    width: 100%;
    padding: 14px;
    background-color: var(--renk-kirmizi);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(248, 38, 73, 0.2);
}

.giris-buton:hover {
    background-color: #e01b3c;
    box-shadow: 0 6px 18px rgba(248, 38, 73, 0.3);
    transform: translateY(-1px);
}

.giris-linkler {
    margin-top: 25px;
    text-align: center;
}

.kilit-don-link {
    color: var(--yazi-acik);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.kilit-don-link:hover {
    color: var(--renk-mor);
}


/* ==========================================================================
   3. Dashboard & Ana Arayüz (Layout)
   ========================================================================== */

.panel-kapsayici {
    display: flex;
    min-height: 100vh;
}

/* Dikey Sidebar */
.panel-sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-ust {
    padding: 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-menu a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sidebar-menu li.aktif a, .sidebar-menu a:hover {
    color: #fff;
    background-color: rgba(112, 94, 200, 0.15);
}

.sidebar-menu li.aktif a {
    border-left: 4px solid var(--renk-mor);
}

.sidebar-menu li.aktif a svg, .sidebar-menu a:hover svg {
    opacity: 1;
}

.sidebar-alt {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Ana İçerik Alanı */
.panel-icerik-kapsayici {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Üst Header */
.panel-header {
    height: 70px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-renk);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 9;
}

.header-sol {
    display: flex;
    align-items: center;
}

.sayfa-baslik {
    font-size: 18px;
    font-weight: 700;
    color: var(--yazi-ana);
}

.header-sag {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kullanici-kart {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.kullanici-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--renk-mor);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
}

.kullanici-bilgi {
    text-align: left;
}

.kullanici-bilgi .ad {
    font-size: 13px;
    font-weight: 600;
    color: var(--yazi-ana);
}

.kullanici-bilgi .rol {
    font-size: 11px;
    color: var(--yazi-acik);
}

.cikis-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid var(--border-renk);
    color: var(--yazi-acik);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cikis-link:hover {
    color: var(--renk-kirmizi);
    background-color: rgba(248, 38, 73, 0.05);
    border-color: rgba(248, 38, 73, 0.2);
}

/* Ana Gövde */
.panel-govde {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

/* Widget Özet Kutuları (Dashboard) */
.widget-satir {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.widget-kart {
    background-color: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--kart-shadow);
    border: 1px solid var(--border-renk);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget-kart:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.widget-kart.renkli {
    background: linear-gradient(135deg, var(--renk-mor) 0%, var(--renk-mor-light) 100%);
    color: #fff;
    border: none;
}

.widget-icerik .deger {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.widget-icerik .baslik {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
}

.widget-kart.renkli .widget-icerik .baslik {
    color: rgba(255, 255, 255, 0.8);
}

.widget-kart .widget-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--renk-mor);
    background-color: rgba(112, 94, 200, 0.1);
}

.widget-kart.renkli .widget-icon {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.widget-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Paneller ve Tablolar */
.panel-kart {
    background-color: #fff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: var(--kart-shadow);
    border: 1px solid var(--border-renk);
    margin-bottom: 30px;
}

.panel-kart-ust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-renk);
}

.panel-kart-ust h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--yazi-ana);
}

/* Butonlar */
.buton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.buton-mor {
    background-color: var(--renk-mor);
    color: #fff;
}

.buton-mor:hover {
    background-color: #5c4eb5;
}

.buton-yesil {
    background-color: var(--renk-yesil);
    color: #fff;
}

.buton-yesil:hover {
    background-color: #24b87a;
}

.buton-mavi {
    background-color: var(--renk-mavi);
    color: #fff;
}

.buton-mavi:hover {
    background-color: #1245d6;
}

.buton-kirmizi {
    background-color: var(--renk-kirmizi);
    color: #fff;
}

.buton-kirmizi:hover {
    background-color: #dd1f3f;
}

.buton-gri {
    background-color: #fff;
    color: var(--yazi-ana);
    border-color: var(--border-renk);
}

.buton-gri:hover {
    background-color: #fafbfc;
}

.buton svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Tablo Stilleri */
.tablo-kapsayici {
    overflow-x: auto;
    width: 100%;
}

.tablo {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tablo th, .tablo td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-renk);
}

.tablo th {
    font-weight: 600;
    color: var(--yazi-acik);
    font-size: 12px;
    text-transform: uppercase;
    background-color: #fafbfc;
}

.tablo tbody tr:hover {
    background-color: rgba(112, 94, 200, 0.02);
}

.tablo td {
    color: var(--yazi-ana);
    font-size: 13px;
    vertical-align: middle;
}

/* Rozetler (Badges) */
.rozet {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.rozet-yesil { background-color: rgba(45, 206, 137, 0.1); color: var(--renk-yesil); }
.rozet-kirmizi { background-color: rgba(248, 38, 73, 0.1); color: var(--renk-kirmizi); }
.rozet-mavi { background-color: rgba(23, 83, 252, 0.1); color: var(--renk-mavi); }
.rozet-mor { background-color: rgba(112, 94, 200, 0.1); color: var(--renk-mor); }

/* Tablo İşlem Butonları */
.tablo-islemler {
    display: flex;
    gap: 8px;
}

.islem-buton {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-renk);
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--yazi-acik);
    cursor: pointer;
    transition: all 0.3s ease;
}

.islem-buton:hover {
    color: var(--renk-mor);
    border-color: var(--renk-mor);
    background-color: rgba(112, 94, 200, 0.05);
}

.islem-buton.sil:hover {
    color: var(--renk-kirmizi);
    border-color: var(--renk-kirmizi);
    background-color: rgba(248, 38, 73, 0.05);
}

.islem-buton svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Grid Layoutlar */
.panel-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 992px) {
    .panel-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Rapor Tabloları */
.rapor-satir {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dotted var(--border-renk);
}

.rapor-satir:last-child {
    border-bottom: none;
}

.rapor-satir .deger {
    font-weight: 600;
}

/* ==========================================================================
   4. Mobil Uyumluluk (Responsive Media Queries)
   ========================================================================== */

/* Mobil Menü Butonu (Header içinde) */
.mobil-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--yazi-ana);
    cursor: pointer;
    padding: 5px;
    margin-right: 15px;
}

.mobil-menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 768px) {
    /* Giriş Ekranı Mobil */
    .giris-kapsayici {
        flex-direction: column;
        width: 90%;
        height: auto;
        max-width: 450px;
    }
    .giris-sol {
        display: none; /* Sol görseli mobil girişten kaldırıp sadeleştiriyoruz */
    }
    .giris-sag {
        padding: 30px;
    }

    /* Kilit Ekranı Mobil */
    .kilit-kapsayici {
        width: 92%;
        max-width: 360px;
        padding: 15px;
    }
    
    #desen-canvas {
        max-width: 260px;
    }

    /* Ana Panel Düzeni Mobil */
    .panel-kapsayici {
        flex-direction: column;
    }

    /* Sidebar Mobil */
    .panel-sidebar {
        width: 260px;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    /* Sidebar Drawer Aktif Durumu */
    .panel-sidebar.goster {
        transform: translateX(0);
    }

    /* Mobil için Kapatma/Overlay Efekti (Sidebar açıkken) */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(21, 25, 51, 0.5);
        z-index: 990;
    }
    
    .sidebar-overlay.goster {
        display: block;
    }

    /* Header Mobil */
    .panel-header {
        position: sticky;
        top: 0;
        background-color: #fff;
        padding: 0 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        z-index: 100;
    }

    .mobil-menu-toggle {
        display: block;
    }

    .kullanici-bilgi {
        display: none; /* Mobil header'da yer kazanmak için kullanıcı adını gizle */
    }

    /* Gövde Mobil */
    .panel-govde {
        padding: 15px;
        margin-top: 5px;
    }

    /* Widget Satırı Mobil */
    .widget-satir {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .widget-kart {
        padding: 16px;
    }

    /* Kartlar Mobil */
    .panel-kart {
        padding: 15px;
        margin-bottom: 20px;
    }

    .panel-kart-ust {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .panel-kart-ust .buton {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   5. Hızlı Ekleme Popupları (Modal Dialogs)
   ========================================================================== */

.modal-kapsayici {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 25, 51, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 15px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-kapsayici.goster {
    display: flex;
}

.modal-icerik {
    background-color: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--border-renk);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-baslik {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-renk);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafbfc;
}

.modal-baslik h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--yazi-ana);
}

.modal-kapat {
    background: transparent;
    border: none;
    color: var(--yazi-acik);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.modal-kapat:hover {
    color: var(--renk-kirmizi);
}

.modal-govde {
    padding: 24px;
    max-height: 75vh;
    overflow-y: auto;
}

.modal-altlik {
    padding: 15px 24px;
    border-top: 1px solid var(--border-renk);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #fafbfc;
}


