/* assets/panel.css - MODERN DASHBOARD */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --sidebar-bg: #0f172a;
    --bg-body: #f1f5f9;
    --primary: #3b82f6;
    --green: #10b981;
    --red: #ef4444;
    --header-height: 70px;
}

body {
    margin: 0; font-family: 'Inter', sans-serif; background: var(--bg-body); color: #334155; overflow-x: hidden;
}

* { box-sizing: border-box; text-decoration: none; list-style: none; }

/* Not: Sidebar stilleri sidebar.css dosyasından çekiliyor */

/* --- ANA İÇERİK --- */
.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease; /* Sidebar hareketiyle senkronize */
    min-height: 100vh;
}

/* MASAÜSTÜ DARALTILMIŞ MOD (JS ile eklenecek class) */
.main-content.collapsed-mode {
    margin-left: var(--sidebar-collapsed-width);
}

header {
    background: white;
    height: var(--header-height);
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 90;
}

/* Hamburger butonu artık hem masaüstü hem mobilde var */
.hamburger { 
    background: none; 
    border: none; 
    font-size: 1.4rem; 
    color: #334155; 
    cursor: pointer; 
    display: block; /* Her zaman görünür */
    padding: 5px;
    margin-right: 15px;
    transition: transform 0.2s;
}

.hamburger:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.user-info strong { color: #0f172a; }

.container { padding: 30px; }

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 992px) {
    .main-content { margin-left: 0; }
    
    /* Mobilde collapsed-mode marjı sıfırlanmalı (üstüne biniyor çünkü) */
    .main-content.collapsed-mode {
        margin-left: 0; 
    }

    .main-content.shifted::after {
        content: ''; position: fixed; top:0; left:0; width:100%; height:100%;
        background: rgba(0,0,0,0.5); z-index: 95;
    }
}