:root {
    --drive-bg: #f7f9fc;
    --drive-white: #ffffff;
    --drive-text: #444746;
    --drive-blue-bg: #c2e7ff;
    --google-blue: #1a73e8;
}

body {
    background: var(--drive-bg);
    font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    justify-content: space-between;
    background: var(--drive-bg);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    margin-right: 8px;
    color: #5f6368;
}

.search-container {
    flex-grow: 1;
    max-width: 720px;
    background: #eaf1fb;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 48px;
    margin-left: 80px;
}

.search-container input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
}


.main-container {
    display: flex;
    flex: 1;
    /* padding-bottom: 15px; */
    min-height: 100vh;
}

.main {
    flex: 1;
    background: var(--drive-white);
    /* margin-right: 10px; */
    /* border-radius: 24px; */
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    /* min-height: 100%; */
}


aside {
    width: 250px;
    padding: 0 3px;
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
}


aside nav {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

aside nav::-webkit-scrollbar {
    width: 4px;
}

aside nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--drive-text);
    text-decoration: none;
}

.nav-item.active {
    background: var(--drive-blue-bg);
    color: #001d35;
}

.nav-item i {
    margin-right: 12px;
}


@media (max-width:992px) {
    .menu-toggle {
        display: block;
    }

    aside {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        background: var(--drive-bg);
        transform: translateX(-100%);
        z-index: 1050;
    }

    aside.open {
        transform: translateX(0);
    }

    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        display: none;
        z-index: 1040;
    }

    .overlay.active {
        display: block;
    }
}

/* Progress bar container */
.hx-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, #3b82f6 0%, #60a5fa 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 9999;
}

/* Active state */
.hx-progress.active {
    transform: scaleX(1);
}


.progress-bar {
    width: var(--probability, 0%);
    background-color: green;
    height: 20px;
}

.nav-section-label {
    padding: 20px 24px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #5f6368;
}

/* Sidebar Footer Container */
.sidebar-footer {
    margin-top: auto;
    padding: 20px 16px;
    background: var(--drive-bg);
}

.storage-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
    background: var(--drive-white);
    border: 1px solid #dadce0;
    border-radius: 24px;
    color: var(--google-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.storage-btn i {
    font-size: 18px;
}

.storage-btn:hover {
    background-color: var(--drive-white);
    border-color: #d2e3fc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    color: #174ea6;
}

.storage-btn:active {
    background-color: #f1f3f4;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}