﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* GENEL AYARLAR */
body { font-family: 'Inter', sans-serif; background: #f8fafc; margin: 0; overflow-x: hidden; }
#wrapper { display: flex; width: 100%; min-height: 100vh; overflow: hidden; }

/* SIDEBAR */
#sidebar {
    min-width: 250px; max-width: 250px; background: #1e293b; color: #fff;
    transition: all 0.3s ease; display: flex; flex-direction: column;
    height: 100vh; border-right: 1px solid rgba(255,255,255,0.05); z-index: 999;
}

/* SIDEBAR KÜÇÜLMÜŞ (COLLAPSED) HALİ */
#sidebar.collapsed { min-width: 80px; max-width: 80px; }
#sidebar.collapsed span, #sidebar.collapsed .user-name-display, #sidebar.collapsed .sidebar-header .fw-bold { display: none; }
#sidebar.collapsed .sidebar-header { height: 60px; justify-content: center; }
#sidebar.collapsed .components li a { justify-content: center; padding: 15px 0; }
#sidebar.collapsed .components li a i { margin-right: 0; font-size: 20px; }
#sidebar.collapsed #ayarlarSubmenu li > a { padding-left: 0 !important; justify-content: center; font-size: 0 !important; }
#sidebar.collapsed #ayarlarSubmenu li > a i { margin-right: 0 !important; font-size: 16px !important; }
#sidebar.collapsed .logout-full-btn { padding: 10px 0; width: 40px; margin: 0 auto; }

/* Masaustu: active class'i da collapsed gibi davransin */
@media (min-width: 769px) {
    #sidebar.active { min-width: 80px; max-width: 80px; }
    #sidebar.active span, #sidebar.active .user-name-display, #sidebar.active .sidebar-header .fw-bold { display: none; }
    #sidebar.active .sidebar-header { height: 60px; justify-content: center; }
    #sidebar.active .components li a { justify-content: center; padding: 15px 0; }
    #sidebar.active .components li a i { margin-right: 0; font-size: 20px; }
    #sidebar.active #ayarlarSubmenu li > a { padding-left: 0 !important; justify-content: center; font-size: 0 !important; }
    #sidebar.active #ayarlarSubmenu li > a i { margin-right: 0 !important; font-size: 16px !important; }
    #sidebar.active .logout-full-btn { padding: 10px 0; width: 40px; margin: 0 auto; }
}

/* HEADER */
.sidebar-header {
    height: 80px; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.05); flex-shrink: 0;
}

/* MENÜ LİSTESİ */
#sidebar .components { padding: 20px 10px; flex: 1; overflow-y: auto; }
#sidebar .components li a {
    padding: 12px 15px; color: #cbd5e1; display: flex; align-items: center;
    text-decoration: none; border-radius: 8px; font-size: 14px; font-weight: 500;
    transition: 0.2s; white-space: nowrap; margin-bottom: 5px;
}
#sidebar .components li a i { width: 30px; font-size: 16px; text-align: center; margin-right: 10px; color: #64748b; }
#sidebar .components > li > a:hover, #sidebar .components > li.active > a { background: #166534; color: #fff; box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3); }
#sidebar .components > li > a:hover i, #sidebar .components > li.active > a i { color: #fff; }

/* Ayarlar alt menu: sadece secili satiri vurgula */
#sidebar .components #ayarlarSubmenu li > a { color: #cbd5e1; }
#sidebar .components #ayarlarSubmenu li > a i { color: #94a3b8; }
#sidebar .components #ayarlarSubmenu li > a:hover { background: rgba(22, 101, 52, 0.25); color: #fff; box-shadow: none; }
#sidebar .components #ayarlarSubmenu li > a:hover i { color: #fff; }
#sidebar .components #ayarlarSubmenu li.active-sub > a { background: rgba(22, 101, 52, 0.35); color: #fff; box-shadow: none; }
#sidebar .components #ayarlarSubmenu li.active-sub > a i { color: #fff; }

/* FOOTER */
.sidebar-footer { background: rgba(0,0,0,0.2); padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; margin-top: auto; }
.user-name-display { color: #e2e8f0; font-size: 14px; font-weight: 600; text-align: center; margin-bottom: 15px; }
.logout-full-btn { background-color: #ef4444; border: none; font-size: 14px; font-weight: 500; transition: 0.2s; border-radius: 8px; padding: 10px; width: 100%; }
.logout-full-btn:hover { background-color: #dc2626; transform: translateY(-2px); }

/* İÇERİK ALANI */
#content { width: 100%; background: #f8fafc; min-height: 100vh; display: flex; flex-direction: column; }
.main-content { padding: 30px; flex: 1; overflow-y: auto; }

/* MOBİL AYARLAR */
@media (max-width: 768px) {
    #sidebar { margin-left: -250px; position: fixed; height: 100%; }
    #sidebar.active { margin-left: 0; }
    #sidebar.active::before { content: ""; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: -1; }
}

/* DİĞER KOMPONENTLER */
.stat-card { border: none; border-radius: 15px; background: white; transition: transform 0.3s; position: relative; overflow: hidden; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }





