:root {
    --bg-body: #1b1b1b;
    --bg-nav: #252526;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --accent-blue: #007aff;
    --border-color: #3d3d3d;
    --nav-height: 60px;
    --bg-panel: #1b1b1b;
    --bg-input: #333333;
    --bg-input-focus: #333333;
    --accent-blue-hover: #1565c0;
    --accent-bright: #007aff; 
    --green-dim: #4c6b2f;
}


@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy/Gilroy-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy/Gilroy-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy/Gilroy-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gilroy', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}


.navbar {
    height: var(--nav-height);
    background-color: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.nav-left {
    display: flex;
    align-items: center;
    gap: 30px; 
}

.nav-logo {
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    width: 150px;
}


.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}


.nav-right {
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--border-color); 
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-blue);
    border: 1px solid rgb(255 255 255 / 20%);
    color: white;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    margin-left: 15px;
    transition: 0.2s;
}

.btn-logout:hover {
    color: #d9534f;
}


.burger-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}


.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}

.sidebar {
    position: fixed;
    top: 0;
    right: -280px; 
    width: 280px;
    height: 100%;
    background-color: var(--bg-nav);
    border-left: 1px solid var(--border-color);
    z-index: 1002;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}


.sidebar.active {
    right: 0;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}


.mobile-menu {
    list-style: none;
    flex-grow: 1;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-link {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
}

.mobile-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}


.mobile-profile {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


@media (max-width: 768px) {
    
    .nav-menu,
    .nav-right .user-profile {
        display: none;
    }

    
    .user-profile {
        border: none;
        padding: 0;
    }

    
    .burger-btn {
        display: block;
    }
}

main {
    flex: 1;
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
}


main::-webkit-scrollbar {
    width: 10px;
    position: absolute;
}

main::-webkit-scrollbar-track {
    background: #1b1b1b;
}

main::-webkit-scrollbar-thumb {
    background: #007aff;
    border: 2px solid #1b1b1b;
    border-radius: 20px;
}