/* Universal Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #07090d; /* Matching your dark image */
    color: #ffffff;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    display: block; /* Ensure no flex conflicts on body */
}

/* SIDEBAR: STAYS ON THE LEFT */
.sidebar {
    width: 260px;
    height: 100vh;
    background: #0d1117;
    border-right: 1px solid #30363d;
    position: fixed; /* Locked to the screen */
    top: 0;
    left: 0;
    padding: 25px 20px;
    z-index: 999;
}

.logo-container img {
    width: 140px;
    margin-bottom: 40px;
}

.profile-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-pic {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid #2f81f7;
    margin-bottom: 15px;
}

.profile-name { font-weight: 600; margin-bottom: 5px; font-size: 15px; }
.profile-email { color: #8b949e; font-size: 11px; }

.nav-links a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #8b949e;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nav-links a.active, .nav-links a:hover {
    background: #2f81f7;
    color: #ffffff;
}

.nav-links a i { margin-right: 15px; width: 20px; text-align: center; }

/* MAIN WRAPPER: PUSHED TO THE RIGHT */
.main-wrapper {
    margin-left: 260px; /* SAME WIDTH AS SIDEBAR */
    padding: 40px;
    width: calc(100% - 260px); /* Fill the rest of the screen */
    min-height: 100vh;
}

/* DASHBOARD COMPONENTS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: #161b22;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #30363d;
    position: relative;
    overflow: hidden;
}

/* The Blue Accent Line from your photo */
.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 15px; right: 15px;
    height: 3px;
    background: #2f81f7;
    box-shadow: 0 0 12px #2f81f7;
    border-radius: 0 0 4px 4px;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: #2f81f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.stat-card h3 { color: #8b949e; font-size: 13px; font-weight: 400; margin-bottom: 10px; }
.stat-card .value { font-size: 26px; font-weight: 700; border-top: 1px solid transparent; }

.chart-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 20px;
    margin-top: 30px;
    padding: 30px;
}