/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Main Layout */
.main {
    min-height: calc(100vh - 4rem); /* Subtract header height */
}

.main-container {
    display: flex;
    max-width: 2000px;
    margin: 0 auto;
    min-height: calc(100vh - 4rem);
}

/* Sidebar Styles */
.sidebar {
    width: 280px; /* Same width as the header logo area */
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 2rem 0;
    position: sticky;
    top: 4rem; /* Header height */
    height: calc(100vh - 4rem);
    overflow-y: auto;
}

.sidebar-nav {
    padding: 0 1.5rem;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    width: 100%;
}

.nav-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    /* transition: all 0.2s ease; */

    text-align: left;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 900;
    color: #000000;
    letter-spacing: -.0313rem;
}

.nav-button:hover {
    background-color: #000000;
    color: #f7f7f7;
    transform: translateX(2px);
}

.nav-button.active {
    background-color: #00000032;
    color: #000000;
    /* box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2); */
}

.nav-button.active:hover {
    
    transform: none;
}

.nav-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.nav-text {
    font-weight: 500;
}



/* Content area styles */
.content {
    flex-grow: 1; /* This makes the content area take up all remaining space */
    padding: 2rem;
    background-color: whitesmoke;
}

.content-section {
    display: none; /* Hide all sections by default */
}

.content-section.active {
    display: block; /* Show only the active section */
}



/* Sections area */

.content{
    font-family: Poppins, sans-serif;
    letter-spacing: -0.0313rem;
}
.content h2{
    font-weight: 750;
    letter-spacing: -0.5px;
    color: #000000;
}

.content p{
    color: black;
    letter-spacing: -0.0313rem;
}


/* The css for the confirmation modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5); /* Semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.modal-overlay:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    transform: scale(0.95);
    transition: transform 0.2s ease-in-out;
}

.modal-overlay:not([hidden]) .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #475569;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Responsive side bars */
.mobile-overlay {
    position: fixed;
    top: 3.5rem; /* Start below the header */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1400; /* Below the sidebar but above the content */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

body.sidebar-mobile-open .mobile-overlay {
    opacity: 1;
    pointer-events: auto; /* Allow clicks only when visible */
}

/* This is the media query from your header.css that shows the hamburger */
@media (max-width: 1080px) {
    .sidebar {
        /* On mobile, change how the sidebar is positioned */
        position: fixed;
        left: 0;
        top: 3.5rem; /* Align it perfectly under your header */
        z-index: 1500; /* Make sure it's on top of everything */
        
        /* Start it off-screen to the left */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    /* This is the magic rule! When the body has our special class... */
    body.sidebar-mobile-open .sidebar {
        /* ...slide the sidebar into view */
        transform: translateX(0);
    }
}

/* Animation styles */
.content-section {
    display: none;
    /* --- Animation Properties --- */
    animation: fadeIn 0.2s ease-in-out;
}

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

/* ---Keyframe Animation for the Fade-In Effect --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* This is the accessibility styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0f172a;
    color: white;
    padding: 8px;
    z-index: 3000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* This adds a highly visible blue ring around any focused element */
*:focus-visible {
    outline: 3px solid #f6f33b;
    outline-offset: 2px;
    border-radius: 2px;
}

