
:root {
    --primary-red: #dc2626;
    --bg-main: #282a3d;
    --bg-boxes: #1C1E2D;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #2d3748;
    --searchbar-color: #282a3d;
    --searchbar-border: #334155;
    --hoover-color: #282a3d;
}

::-webkit-scrollbar {
    width: 5px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--searchbar-border); 
    border-radius: 4px;  
    transition: background 2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red); 
    border-radius: 4px;  
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Top Navigation Bar */
header {
    height: 64px;
    background: var(--bg-boxes);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 10;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    flex-shrink: 0;
    margin-right: 20px;
    letter-spacing: 3px;
}

.brand img {
    height: 50px;
}

.search-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 38vw);
    z-index: 1;
    border-radius: 6px;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    background: var(--searchbar-color);
    border: 1px solid var(--searchbar-border);
    border-radius: 15px;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.search-bar input:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f172a;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

/* Main Container Layout */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
aside {
    width: 260px;
    background: var(--bg-boxes);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 16px 18px 18px 16px;
    overflow: hidden;
}

.sidebar-top {
    padding: 16px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    padding: 0 12px 8px 12px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: background 0.2s;
}

.nav-links a:hover {
    background: var(--hoover-color);
    box-shadow: 0 0 0 2px var(--hoover-color);
}

.nav-links a.active {
    background: var(--primary-red);
    color: rgb(248, 247, 247);
}

/* Content Area */
main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    gap: 24px;
}

/* Footer bottom text */
.page-footer {
    background: var(--bg-boxes);
    border-top: 1px solid var(--border-color);
    padding: 12px 24px 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.footer-links span:nth-child(1) { color: var(--text-main); }