/* Ana Renk ve Cam Efekti Ayarları */
:root {
    --primary: #6366f1;
    --accent: #a855f7;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-stroke: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: #020617;
    color: var(--text-main);
    display: flex;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Arka Plan Blobs */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
}

.blob-1 {
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.blob-2 {
    background: var(--accent);
    bottom: -100px;
    left: -100px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--glass-stroke);
    padding: 2rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.logo-icon {
    background: var(--primary);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 0 20px var(--primary);
}

.sidebar-nav a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 5px;
    transition: 0.3s;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: var(--glass);
    color: white;
    border: 1px solid var(--glass-stroke);
}

/* İçerik Alanı */
.content-area {
    flex: 1;
    padding: 2.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 20px;
}

/* User Pill Ayarları */
.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--glass-stroke);
}

.user-pill img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-pill figcaption {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.user-pill strong {
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
}

.user-pill .separator {
    color: var(--primary);
    margin: 0 8px;
    font-weight: 200;
}

.user-pill .job-title {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Kartlar */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-stroke);
    border-radius: 24px;
    padding: 2rem;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat p {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 10px;
}

select#periodSelect {
    background: #0f172a !important;
    color: white !important;
    border: 1px solid var(--glass-stroke);
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    outline: none;
}

.chart-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    height: 450px;
    overflow: hidden;
    position: relative;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-wrapper {
    flex: 1;
    width: 100%;
    position: relative;
    min-height: 0;
}

canvas#performanceChart {
    width: 100% !important;
    height: 100% !important;
}

/* TABLET MODU */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 90px;
        padding: 2rem 1rem;
        align-items: center;
    }

    .sidebar h2,
    .sidebar a span {
        display: none;
    }

    .sidebar-nav a {
        justify-content: center;
        padding: 15px;
    }
}

/* MOBİL MODU (768px ve altı) */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding-bottom: 90px;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100% !important;
        height: 70px !important;
        padding: 0 !important;
        flex-direction: row !important;
        z-index: 1000;
        border-right: none;
        border-top: 1px solid var(--glass-stroke);
        background: rgba(2, 6, 23, 0.98);
    }

    .sidebar-nav {
        width: 100%;
    }

    .sidebar-nav ul {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        height: 100%;
        list-style: none;
    }

    .sidebar-nav a {
        flex-direction: column;
        gap: 5px;
        font-size: 10px;
        padding: 10px;
        margin: 0;
        border: none;
        background: transparent;
    }

    .sidebar-nav a span {
        display: block !important;
    }

    .logo {
        display: none;
    }

    .content-area {
        padding: 1.2rem;
        width: 100%;
        overflow: hidden;
    }

    .chart-container {
        height: 350px !important;
        padding: 1rem !important;
    }
}

/* EKSTRA DAR EKRANLAR (551px ve Altı) */
@media (max-width: 551px) {
    .user-pill {
        max-width: 165px;
        padding: 6px 12px;
    }

    .user-pill figcaption {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .user-pill .separator {
        display: none !important;
    }

    /* Çizgiyi gizle */
    .user-pill strong {
        font-size: 0.75rem;
    }

    .user-pill .job-title {
        font-size: 0.65rem;
    }

    .user-pill img {
        width: 30px;
        height: 30px;
    }
}