/* style.css - Kesin Çözüm Mimari */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    overflow: hidden; 
}

/* ANA TAŞIYICI */
.wrapper {
    display: flex; 
    width: 100vw;
    height: 100vh;
}

/* SIDEBAR: Duvar Gibi Sabit */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: #1e293b;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.sidebar-header {
    padding: 25px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    background: #0f172a;
}

.sidebar-menu {
    list-style: none;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-menu a {
    display: block;
    padding: 15px 25px;
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: #334155;
    color: white;
    border-left: 4px solid #3b82f6;
}

/* ANA İÇERİK: Sidebar'dan Geri Kalan Alanı Milimetrik Doldurur */
.main-content {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.top-bar {
    background: white;
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-content {
    padding: 30px;
    overflow-y: auto; 
    flex-grow: 1;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-top: 4px solid #3b82f6;
    text-align: center;
}