.container {
    display: flex;
    height: 100vh;
}

/* Mobile header - hidden by default on desktop */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--sidebar-border);
    z-index: 100;
    justify-content: space-between;
    align-items: center;
}

/* Sidebar styles */
.sidebar {
    width: fit-content;
    min-width: 300px;
    padding: var(--sidebar-padding);
    padding-bottom: 10px;
    border-right: var(--border-width) solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    background-color: var(--bg-color);
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
}

.sidebar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Scrolling text container */
.scroll-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding: 0;
}

/* Gradient overlay for fade effects */
.scroll-container::before,
.scroll-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: var(--large-corner-cut);
    z-index: 2;
    pointer-events: none;
}

.scroll-container::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-color) 10%, transparent 110%);
}

.scroll-container::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-color) 10%, transparent 110%);
}

.scroll-wrapper {
    position: absolute;
    left: 0;
    width: 100%;
    animation: scrollText 8s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    padding: 30px 0;
}

/* Gradient overlay for mobile fade effects */
.scroll-container-mobile::before,
.scroll-container-mobile::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30%;
    z-index: 2;
    pointer-events: none;
}

/* Mobile scrolling container */
.scroll-container-mobile {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.scroll-container-mobile::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-color) 10%, transparent 110%);
}

.scroll-container-mobile::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-color) 10%, transparent 110%);
}

.scroll-wrapper-mobile {
    position: absolute;
    left: 0;
    width: 100%;
    animation: scrollTextMobile 8s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    padding: 10px 0;
}

.content {
    flex: 1;
    position: relative;
    margin: 20px;
    border: none;
    background-color: var(--border-color);
    /* Octagonal shape using clip-path */
    clip-path: var(--large-oct-clip);
    min-width: 0; /* Prevent flex item from overflowing */
}

.content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: var(--large-corner-cut);
    background: linear-gradient(to bottom, var(--bg-color) 10%, transparent 110%);
    z-index: 1;
    pointer-events: none;
}

/* Inner background with border effect */
.content::before {
    content: '';
    position: absolute;
    top: var(--border-width);
    left: var(--border-width);
    right: var(--border-width);
    bottom: var(--border-width);
    background-color: var(--bg-color);
    z-index: -1;
    /* Calculate inset octagonal shape */
    clip-path: var(--large-inset-oct-clip);
}

/* Bottom gradient overlay for content */
.content-fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--large-corner-cut));
    background: linear-gradient(to top, var(--bg-color) 10%, transparent 110%);
    z-index: 1;
    pointer-events: none;
}

/* Make content appear above the pseudo-element but below the gradients */
.tab-content {
    position: relative;
    z-index: 0;
    display: none;
    padding: var(--large-corner-cut) calc(var(--large-corner-cut) * 2);
    /* Add height and overflow for scrolling */
    height: calc(100%);
    overflow-y: auto;
    /* Eliminate scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-content::-webkit-scrollbar {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Make room for fixed header */
    }
    
    .container {
        flex-direction: column;
    }

    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 60px);
        z-index: 90;
        transition: left var(--transition-speed) ease;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .sidebar-top {
        margin-bottom: 20px;
    }
    
    .sidebar.active {
        left: 0;
    }

    /* Overlay when menu is open */
    .overlay {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 80;
    }
    
    .overlay.active {
        display: block;
    }

}
