:root {
    --app-dark: #121F2B;
    --app-titlebar: #0F1A24;
    --app-bg: #E5E9EC;
    --panel-bg: #FFFFFF;
    --border-color: #C1C9D2;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    
    --color-success: #27AE60;
    --color-danger: #E74C3C;
    --color-primary: #2980B9;
    --color-warning: #F39C12;
    --color-purple: #8E44AD;
    --color-info: #3498DB;
    --color-secondary: #7F8C8D;
}
*, :after, :before { -moz-box-sizing: border-box;box-sizing: border-box;-webkit-box-sizing: border-box;outline: 0;box-sizing: border-box!important;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale; }

* { box-sizing: border-box; margin: 0; padding: 0;  }
a, a:hover { color: inherit; text-decoration: none; }
a { transition: all .2s ease-out; }

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 13px; background-color: var(--app-bg); overflow: hidden; color: var(--text-main); }

.desktop-app { display: flex; flex-direction: column; height: 100vh; width: 100vw; }

/* BAŞLIK VE MENÜ */
.app-titlebar { height: 35px; background-color: var(--app-titlebar); color: #FFFFFF; display: flex; justify-content: space-between; align-items: center; font-size: 12px; z-index: 1000; }
.titlebar-left { padding-left: 10px; display: flex; align-items: center; font-weight: 600; }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 16px; margin-right: 10px; cursor: pointer; }
.titlebar-center { font-weight: 500; }
.titlebar-right { display: flex; align-items: center; }
.user-info { margin-right: 15px; }

.window-controls { display: flex; }
.win-btn { width: 40px; height: 35px; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.win-btn:hover { background-color: rgba(255,255,255,0.1); }
.win-close:hover { background-color: #E81123; color: white; }

.app-body { display: grid; grid-template-columns: 220px 1fr; flex: 1; height: calc(100vh - 35px); position: relative; }

/* SOL MENÜ (SİDEBAR) */
.sidebar { background-color: var(--app-dark); color: #A6B4C2; overflow-y: auto; border-right: 1px solid var(--border-color); transition: transform 0.3s ease; }
.sidebar-menu { list-style: none; }
.sidebar-menu li { padding: 12px 15px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; }
.sidebar-menu li i { width: 25px; font-size: 14px; }
.sidebar-menu li:hover { background-color: rgba(255,255,255,0.05); }
.sidebar-menu li.active { background-color: var(--color-primary); color: #FFF; }
.sidebar-menu li a { text-decoration: none; color: inherit; display: flex; align-items: center; width: 100%; }
.sidebar-overlay { display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 900; }
.menu-header { padding: 15px 15px 5px 15px; font-size: 10px; color: #7F8C8D; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

/* ÇALIŞMA ALANI */
.workspace { padding: 15px; overflow-y: auto; background-color: var(--app-bg); display: flex; flex-direction: column; }
.page-title { font-size: 16px; font-weight: bold; margin-bottom: 15px; border-bottom: 2px solid var(--border-color); padding-bottom: 5px; }

/* KARTLAR VE DASHBOARD */
.summary-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 15px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-bottom: 15px; }

.card { background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 4px; display: flex; align-items: center; padding: 10px; box-shadow: 1px 1px 3px rgba(0,0,0,0.05); }
.card-icon { width: 45px; height: 45px; border-radius: 4px; display: flex; justify-content: center; align-items: center; font-size: 20px; margin-right: 15px; }
.card-kasa .card-icon { background: #EAFBF0; color: var(--color-success); }
.card-banka .card-icon { background: #EBF5FB; color: var(--color-primary); }
.card-net .card-icon { background: #F4ECF7; color: var(--color-purple); }
.card-label { display: block; font-size: 11px; font-weight: bold; color: var(--text-muted); }
.card-value { display: block; font-size: 18px; font-weight: bold; }

/* YENİ: KİŞİSEL KASA VE İSTATİSTİK KARTLARI */
.stat-card { background: var(--panel-bg); border: 1px solid var(--border-color); padding: 15px; border-radius: 8px; flex: 1; min-width: 180px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); border-left: 4px solid var(--text-main); }
.stat-title { font-size: 12px; color: var(--text-muted); font-weight: bold; text-transform: uppercase; margin-bottom: 5px; }
.stat-val { font-size: 20px; font-weight: bold; color: var(--text-main); }
.kisisel-nav { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; flex-wrap: wrap; }
.kisisel-nav a { padding: 8px 15px; text-decoration: none; color: var(--text-muted); font-weight: bold; border-radius: 5px; transition: 0.2s; font-size: 13px; }
.kisisel-nav a:hover { background: #F1F5F9; }
.kisisel-nav a.active { background: var(--text-main); color: #FFF; }

/* PANEL VE TABLOLAR */
.panel { background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 2px; }
.panel-header { background: #F8F9FA; padding: 8px 12px; font-weight: bold; font-size: 12px; border-bottom: 1px solid var(--border-color); }
.panel-body { padding: 10px; }

.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 250px; }
.data-table th, .data-table td { padding: 8px; border-bottom: 1px solid var(--border-color); font-size: 13px; text-align: left; }
.data-table.no-border td { border-bottom: none; }

/* METİN YARDIMCILARI VE ROZETLER */
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.fw-bold { font-weight: bold; }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-purple { color: var(--color-purple); }
.text-warning { color: var(--color-warning); }
.text-muted { color: var(--text-muted); }

.badge { display: inline-block; padding: 3px 6px; border-radius: 4px; font-size: 11px; font-weight: bold; color: #FFF; text-align: center; }

/* BUTONLAR */
.btn { padding: 8px 10px; border: 1px solid transparent; border-radius: 3px; font-size: 12px; font-weight: bold; cursor: pointer; color: #FFF; display: flex; align-items: center; justify-content: center; gap: 5px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.1); }
.btn-sm { padding: 4px 8px; font-size: 11px; }
.btn-success { background: var(--color-success); border-color: #219653; }
.btn-danger { background: var(--color-danger); border-color: #C0392B; }
.btn-primary { background: var(--color-primary); border-color: #21618C; }
.btn-info { background: var(--color-info); border-color: #2980B9; color: #FFF; }
.btn-secondary { background: var(--color-secondary); border-color: #5D6D7E; color: #FFF; }
.btn-warning { background: var(--color-warning); border-color: #D68910; color: #FFF; }

/* MODÜL ARAÇ ÇUBUĞU */
.module-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; background: #FFF; padding: 10px; border: 1px solid var(--border-color); border-radius: 2px; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
.search-box input { padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 3px; outline: none; font-size: 12px; width: 200px; }
.search-box input:focus { border-color: var(--color-primary); }
.module-footer { text-align: right; font-weight: bold; font-size: 14px; padding-top: 15px; margin-top: auto; }

/* MODAL YAPI */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 2000; }
.modal-box { background: var(--panel-bg); border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); width: 100%; max-width: 400px; display: flex; flex-direction: column; overflow: hidden; }
.modal-header { background: #1B2B3A; color: #FFF; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: bold; }
.modal-close { background: none; border: none; color: #FFF; cursor: pointer; font-size: 16px; }
.modal-close:hover { color: var(--color-danger); }
.modal-body { padding: 20px; max-height: 80vh; overflow-y: auto; }

/* FORM ELEMANLARI */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 11px; font-weight: bold; margin-bottom: 4px; color: var(--text-muted); }
.form-control { width: 100%; padding: 7px 8px; border: 1px solid var(--border-color); border-radius: 3px; font-size: 12px; outline: none; background-color: #FFF; color: var(--text-main); }
.form-control:focus { border-color: var(--color-primary); }
.form-control[disabled], .form-control[readonly] { background-color: #f4f6f8; cursor: not-allowed; }
.radio-group { display: flex; gap: 15px; padding: 5px 0; }
.radio-label, .checkbox-label { display: flex; align-items: center; gap: 5px; font-size: 12px; cursor: pointer; }
.checkbox-label { font-weight: bold; margin-top: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 15px; margin-top: 10px; border-top: 1px solid var(--border-color); }

/* YENİ: CANLI ARAMA KUTULARI (LIVE SEARCH) */
.live-search-container { position: relative; }
.live-search-results { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border-color); max-height: 180px; overflow-y: auto; z-index: 9999; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border-radius: 0 0 4px 4px; }
.live-search-item { padding: 8px 12px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 13px; }
.live-search-item:hover { background: #f4f6f8; }

/* YENİ: DETAY EKRANI BÖLMELERİ (Masaüstünde yan yana, mobilde alt alta) */
@media screen and (min-width: 992px) {
    .demirbas-detay-grid, .ogrenci-detay-grid { flex-direction: row !important; flex: 1; overflow: hidden; }
    .demirbas-detay-grid > .panel, .ogrenci-detay-grid > .panel { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
    .demirbas-detay-grid > .panel .table-responsive, .ogrenci-detay-grid > .panel .table-responsive { flex: 1; overflow-y: auto; }
}

/* --- GELİŞTİRİLMİŞ MOBİL UYUMLULUK (RESPONSIVE) --- */
@media screen and (max-width: 768px) {
    body { font-size: 13px; overflow: auto; }

    .titlebar-center, .window-controls { display: none; }
    .mobile-menu-btn { display: inline-block; }
    
    .app-body { grid-template-columns: 1fr; height: calc(100vh - 35px); overflow-y: auto; }

    .sidebar { position: fixed; top: 35px; left: 0; height: calc(100vh - 35px); width: 250px; z-index: 999; transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }

    #workspace, .workspace { width: 100vw; padding: 10px !important; height: auto !important; overflow-y: visible !important; }

    .summary-cards-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
    .dashboard-grid { display: flex !important; flex-direction: column !important; gap: 10px !important; }

    .module-toolbar { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
    .module-toolbar .btn-group { display: flex; flex-wrap: wrap; gap: 5px; }
    .module-toolbar .btn-group .btn { flex: 1; min-width: 45%; }

    .search-box, .search-box input { width: 100% !important; }

    
 

    .modal-box, #app-modal .modal-container { width: 92% !important; max-width: 100% !important; margin: auto !important; max-height: 85vh; overflow-y: auto; }
    .form-group div[style*="display:flex"] { flex-direction: column; gap: 5px; } /* Form içindeki yan yana inputları mobilde alt alta al */
}



/* ========================================================= */
/* GRUPLU SIDEBAR MENÜ SİSTEMİ                              */
/* ========================================================= */

/* Menü grubu ana kapsayıcı */
.sidebar-menu .menu-group {
    padding: 0;
    border-bottom: none;
    display: block;
}

/* Grup başlığı (tıklanabilir) */
.sidebar-menu .menu-group-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
    color: #8A9AAB;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}
.sidebar-menu .menu-group-header:hover {
    background: rgba(255,255,255,0.04);
    color: #D5DEE7;
}

/* Grup başlığı - ikon */
.sidebar-menu .menu-group-header .group-icon {
    width: 20px;
    font-size: 11px;
    opacity: 0.7;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-menu .menu-group-header .group-title {
    flex: 1;
}

/* Grup başlığı - ok işareti */
.sidebar-menu .menu-group-header .group-chevron {
    font-size: 9px;
    opacity: 0.5;
    transition: transform 0.25s ease;
}
.sidebar-menu .menu-group.open .menu-group-header .group-chevron {
    transform: rotate(0deg);
}
.sidebar-menu .menu-group:not(.open) .menu-group-header .group-chevron {
    transform: rotate(-90deg);
}

/* Grup içi link listesi */
.sidebar-menu .menu-group-items {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 1;
}
.sidebar-menu .menu-group:not(.open) .menu-group-items {
    max-height: 0;
    opacity: 0;
}

/* Grup içi linkler */
.sidebar-menu .menu-group-items li {
    padding: 0;
    border-bottom: none;
    display: block;
}
.sidebar-menu .menu-group-items li a {
    display: flex;
    align-items: center;
    padding: 9px 15px 9px 32px;
    color: #A6B4C2;
    font-size: 13px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    position: relative;
}
.sidebar-menu .menu-group-items li a:hover {
    background: rgba(255,255,255,0.05);
    color: #FFF;
    border-left-color: rgba(255,255,255,0.25);
}
.sidebar-menu .menu-group-items li a.active {
    background: rgba(41, 128, 185, 0.22);
    color: #FFF;
    border-left-color: var(--color-primary);
    font-weight: 600;
}
.sidebar-menu .menu-group-items li a.active i {
    color: var(--color-info);
}

/* Grup içi linkler - ikon */
.sidebar-menu .menu-group-items li a i {
    width: 22px;
    font-size: 13px;
    text-align: center;
    margin-right: 8px;
    opacity: 0.85;
    flex-shrink: 0;
}
.sidebar-menu .menu-group-items li a span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================================= */
/* SIDEBAR ROZETLERİ (Bildirim sayıları)                     */
/* ========================================================= */
.sidebar-menu .menu-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    color: #FFF;
    min-width: 20px;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0;
    display:flex;
    margin-left:5px;
    flex: unset !important;
}
.sidebar-menu .menu-badge.badge-danger  { background: var(--color-danger);  }
.sidebar-menu .menu-badge.badge-warning { background: var(--color-warning); }
.sidebar-menu .menu-badge.badge-info    { background: var(--color-info);    }

/* ========================================================= */
/* TEKLİ MENÜ (Ana Sayfa gibi gruplanmamış)                  */
/* ========================================================= */
.sidebar-menu .menu-single {
    padding: 0;
    border-bottom: none;
    display: block;
}
.sidebar-menu .menu-single a {
    display: flex;
    align-items: center;
    padding: 11px 15px;
    color: #A6B4C2;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}
.sidebar-menu .menu-single a:hover {
    background: rgba(255,255,255,0.05);
    color: #FFF;
}
.sidebar-menu .menu-single a.active {
    background: var(--color-primary);
    color: #FFF;
    border-left-color: var(--color-info);
    font-weight: 600;
}
.sidebar-menu .menu-single a i {
    width: 25px;
    font-size: 14px;
    text-align: center;
    margin-right: 8px;
}

/* ========================================================= */
/* GRUP RENK AKSANLARI (Sol çizgi renkleri)                  */
/* ========================================================= */
.sidebar-menu .menu-group[data-group="finans"]   .menu-group-header { border-left-color: var(--color-success); }
.sidebar-menu .menu-group[data-group="bagis"]    .menu-group-header { border-left-color: var(--color-purple);  }
.sidebar-menu .menu-group[data-group="takip"]    .menu-group-header { border-left-color: var(--color-warning); }
.sidebar-menu .menu-group[data-group="egitim"]   .menu-group-header { border-left-color: #9B59B6;              }
.sidebar-menu .menu-group[data-group="sistem"]   .menu-group-header { border-left-color: #566573;              }
.sidebar-menu .menu-group[data-group="personel"] .menu-group-header { border-left-color: #16A085;              }

/* Personel grubu için üst ayırıcı çizgi */
.sidebar-menu .menu-group-personel {
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ========================================================= */
/* MOBİL UYUMLULUK                                           */
/* ========================================================= */
@media screen and (max-width: 768px) {
    /* Mobilde tüm gruplar açık gelsin (kullanıcı elle kapatmazsa) */
    .sidebar-menu .menu-group .menu-group-items {
        max-height: 500px !important;
        opacity: 1 !important;
    }
    
    /* Mobilde chevron gizlensin, gruplar zaten açık */
    .sidebar-menu .menu-group-header .group-chevron {
        display: none;
    }
    
    /* Mobilde grup başlıkları biraz daha belirgin */
    .sidebar-menu .menu-group-header {
        padding: 10px 15px;
        cursor: default;
        pointer-events: none;
        background: rgba(0,0,0,0.15);
        border-left-width: 3px;
    }
    
    /* Mobilde linklerin padding'i biraz daha rahat */
    .sidebar-menu .menu-group-items li a {
        padding: 11px 15px 11px 28px;
        font-size: 14px;
    }
    
    /* Mobilde rozet boyutu */
    .sidebar-menu .menu-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Tablet için orta boyut */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .sidebar-menu .menu-group-items li a {
        padding: 8px 15px 8px 28px;
        font-size: 12.5px;
    }
}



.titlebar-right {
            display: flex;
            align-items: center;
            gap: 15px;
            padding-right: 15px;
        }

        /* CAMİ / PLATFORM SEÇİCİ */
        .mekan-secici { position: relative; }
        .mekan-btn {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            color: #FFFFFF;
            padding: 5px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
        }
        .mekan-btn:hover { background: rgba(255,255,255,0.2); }
        .mekan-btn i.mekan-icon { color: #F39C12; }
        .mekan-btn i.chevron { font-size: 9px; opacity: 0.7; }
        
        .mekan-btn.platform-modu {
            background: rgba(243, 156, 18, 0.2);
            border-color: #F39C12;
        }
        .mekan-btn.platform-modu i.mekan-icon { color: #F39C12; }
        
        .mekan-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: #FFFFFF;
            border-radius: 6px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.25);
            min-width: 250px;
            max-height: 400px;
            overflow-y: auto;
            z-index: 2000;
            padding: 6px 0;
        }
        .mekan-dropdown.show { display: block; }
        .mekan-dropdown-item {
            padding: 9px 14px;
            font-size: 12px;
            color: #2C3E50;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.15s;
            text-decoration: none;
        }
        .mekan-dropdown-item:hover { background: #F4F6F8; color: #2980B9; }
        .mekan-dropdown-item.active { background: #E8F4FD; color: #2980B9; font-weight: 600; }
        .mekan-dropdown-item i { color: #27AE60; width: 14px; text-align: center; }
        .mekan-dropdown-item i.platform-icon { color: #F39C12; }
        .mekan-dropdown-header {
            padding: 8px 14px;
            font-size: 10px;
            text-transform: uppercase;
            color: #95A5A6;
            font-weight: 700;
            letter-spacing: 0.5px;
            border-bottom: 1px solid #ECF0F1;
            margin-bottom: 4px;
        }
        .mekan-dropdown-divider {
            height: 1px;
            background: #ECF0F1;
            margin: 4px 0;
        }
        
        .platform-banner {
            background: linear-gradient(90deg, #F39C12 0%, #E67E22 100%);
            color: #fff;
            padding: 8px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            font-weight: 600;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .platform-banner i { margin-right: 6px; }
        .platform-banner .banner-btn {
            background: rgba(255,255,255,0.2);
            color: #fff;
            border: 1px solid rgba(255,255,255,0.3);
            padding: 4px 12px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 11px;
            transition: all 0.2s;
        }
        .platform-banner .banner-btn:hover {
            background: rgba(255,255,255,0.3);
        }

        .user-menu-wrapper { position: relative; }
        .user-info-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            padding: 4px 10px;
            border-radius: 4px;
            transition: all 0.2s;
        }
        .user-info-btn:hover { background: rgba(255,255,255,0.1); }
        .user-avatar {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: linear-gradient(135deg, #27AE60 0%, #16A085 100%);
            color: #FFFFFF;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 11px;
        }
        .user-name-block { display: flex; flex-direction: column; line-height: 1.2; }
        .user-name { font-size: 11px; font-weight: 600; color: #FFFFFF; }
        .user-role { font-size: 9px; color: rgba(255,255,255,0.65); }
        .user-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: #FFFFFF;
            border-radius: 6px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.25);
            min-width: 240px;
            z-index: 2000;
            padding: 6px 0;
        }
        .user-dropdown.show { display: block; }
        .user-dropdown-header { padding: 12px 16px; border-bottom: 1px solid #ECF0F1; }
        .user-dropdown-header strong { display: block; color: #2C3E50; font-size: 13px; margin-bottom: 3px; }
        .user-dropdown-header span { color: #7F8C8D; font-size: 11px; }
        .user-dropdown-item {
            padding: 10px 16px;
            font-size: 12px;
            color: #2C3E50;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.15s;
            text-decoration: none;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
        }
        .user-dropdown-item:hover { background: #F4F6F8; color: #2980B9; }
        .user-dropdown-item i { width: 16px; text-align: center; color: #7F8C8D; }
        .user-dropdown-item.danger { color: #E74C3C; border-top: 1px solid #ECF0F1; margin-top: 4px; }
        .user-dropdown-item.danger:hover { background: #FDEDEC; }
        .user-dropdown-item.danger i { color: #E74C3C; }
        .user-dropdown-divider { height: 1px; background: #ECF0F1; margin: 4px 0; }
        .user-dropdown-label {
            padding: 8px 16px 4px 16px;
            font-size: 10px;
            text-transform: uppercase;
            color: #95A5A6;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        @media (max-width: 768px) {
            .user-name-block { display: none; }
            .mekan-btn span.mekan-adi {
                max-width: 80px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                display:none;
            }
            .platform-banner {
                font-size: 11px;
                padding: 6px 10px;
            }
        }

        [dir="rtl"] .sidebar-menu li a i { margin-left: 10px; margin-right: 0; }
        [dir="rtl"] .sidebar { border-right: none; border-left: 1px solid var(--border-color); }
        [dir="rtl"] .menu-badge { margin-left: 0; margin-right: auto; }
        [dir="rtl"] .titlebar-right { padding-right: 0; padding-left: 15px; }
        [dir="rtl"] .user-info-btn { flex-direction: row-reverse; }
        [dir="rtl"] .user-dropdown { right: auto; left: 0; }
        [dir="rtl"] .mekan-dropdown { right: auto; left: 0; }
        [dir="rtl"] .platform-banner i { margin-right: 0; margin-left: 6px; }






body.login { margin: 0; padding: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #121F2B 0%, #1B2B3A 100%); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.login-container { width: 100%; max-width: 420px; padding: 20px; }
.login-box { background: #FFFFFF; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); overflow: hidden; }
.login-header {background: linear-gradient(135deg, #27AE60 0%, #16A085 100%);color: #FFFFFF;padding: 3em 0 1em 0;text-align: center;position: relative;}
.login-header i.mosque-icon {font-size: 2em;margin-bottom: 0.4em;opacity: 0.95;}
.login-header h1 {margin: 0;font-size: 1.2em;font-weight: 700;letter-spacing: 1px;}
.login-header p {margin: .5em 0 0;font-size: 1em;opacity: 0.9;}
.login-lang-selector { position: absolute; top: 12px; right: 12px; display: flex; gap: 5px; }
.login-lang-btn { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #FFFFFF; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.login-lang-btn:hover { background: rgba(255,255,255,0.3); color: #FFFFFF; }
.login-lang-btn.active { background: #FFFFFF; color: #27AE60; }
.login-body { padding: 30px; }
.form-group { margin-bottom: 18px; }
.login-body label { display: block; font-size: 12px; font-weight: 600; color: #34495E; margin-bottom: 6px; }
.login-body label i { color: #7F8C8D; margin-right: 4px; }
.login-body input[type="text"], .login-body input[type="password"] { width: 100%; padding: 12px 14px; border: 1px solid #D5DBDB; border-radius: 6px; font-size: 14px; outline: none; transition: all 0.2s; box-sizing: border-box; }
.login-body input[type="text"]:focus, .login-body input[type="password"]:focus { border-color: #27AE60; box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15); }
.cami-kodu-wrap { position: relative; }
.cami-kodu-wrap input { padding-left: 40px !important; font-weight: 600; letter-spacing: 0.3px; }
.cami-kodu-wrap i.loc-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #27AE60; font-size: 15px; pointer-events: none; }
.cami-kodu-hint { background: #FEF9E7; border: 1px dashed #F39C12; color: #92400E; padding: 8px 10px; border-radius: 6px; font-size: 11px; margin-top: 6px; line-height: 1.5; }
.login-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 12px; }
.login-checkbox { display: flex; align-items: center; gap: 8px; color: #7F8C8D; }
.forgot-link { color: #2980B9; text-decoration: none; font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }
.login-btn { width: 100%; padding: 13px; background: linear-gradient(135deg, #27AE60 0%, #16A085 100%); color: #FFFFFF; border: none; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.login-btn:hover { box-shadow: 0 8px 20px rgba(39, 174, 96, 0.35); }
.alert-danger { background: #FDEDEC; color: #C0392B; padding: 12px 15px; border-left: 4px solid #E74C3C; border-radius: 4px; font-size: 13px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #EAFBF0; color: #166534; padding: 12px 15px; border-left: 4px solid #27AE60; border-radius: 4px; font-size: 13px; margin-bottom: 20px; font-weight: 500; }
.login-footer { text-align: center; padding: 15px; background: #F8F9FA; font-size: 11px; color: #95A5A6; border-top: 1px solid #ECF0F1; }
[dir="rtl"] .cami-kodu-wrap input { padding-left: 14px !important; padding-right: 40px !important; }
[dir="rtl"] .cami-kodu-wrap i.loc-icon { left: auto; right: 14px; }
[dir="rtl"] .login-lang-selector { right: auto; left: 12px; }


.tablopanel {flex: 1; overflow-y: auto; display: flex; flex-direction: column;}
.islemler{display: flex; gap: 5px; justify-content: center;}

@media only screen and (max-width: 768px)  {
	.tablepanel table, .tablepanel thead, .tablepanel tbody, .tablepanel tfoot, .tablepanel th, .tablepanel td, .tablepanel tr {  display: block;  }
	.tablepanel thead tr {display: none;}
	.tablepanel td[data-cellname] {border: none;position: relative;padding-left: 200px;border-bottom: 1px solid #ddd;}
    .tablepanel td[right]{text-align:right !important;}
    .tablepanel td[center]{text-align: center !important;}
    .tablepanel td[center] a{margin-left: unset;}
	
	.tablepanel tr{display: flex;flex-direction: column;border-radius: 10px;margin-bottom: 10px;background: var(--panel-bg);box-shadow: 1px 1px 6px rgba(0,0,0,.2);}
	.tablepanel td[data-cellname]:before {position: absolute;top: 0;left: 15px;padding-right: 10px;white-space: nowrap;bottom: 0;margin: auto;height: fit-content;/*width: 100%;*/}
	.tablepanel td[data-cellname]:before { content:attr(data-cellname);font-weight: 600; }
	.tablepanel tr td:last-child{border-bottom:none;} 
    .tablepanel td:not([data-cellname]){display: none;}
    .panel{background: none;border:none;}
    .islemler{justify-content: flex-end;}
    .tablopanel{overflow: unset;}

}