:root {
    --purple: #8a4fff;
    --light-purple: #9e6fff;
    --dark-purple: #7030e0;
    --dark-gray: #1f2937;
    --medium-gray: #374151;
    --white: #ffffff;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-gray);
    color: var(--white);
    min-height: 100vh;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background-color: var(--dark-gray);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    width: 300px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.hidden {
    display: none;
}

.main-content {
    flex-grow: 1;
    padding: 2rem;
    background-color: var(--medium-gray);
    min-height: 100vh;
    overflow-y: auto;
    width: 100%; /* Use percentage instead of calc */
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .main-content {
        margin-top: 60px;
        width: 100%;
        max-width: 100vw;
        padding: 1rem; /* Reduce padding on mobile */
    }
}
.button {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    position: relative;
}
.button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.button.active {
    background-color: var(--light-purple);
}
.button svg {
    margin-right: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.badge {
    position: absolute;
    top: -5px; /* Align closer to the top-right corner */
    right: -5px; /* Align closer to the top-right corner */
    background-color: red;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem;
    border-radius: 50%;
    width: 0.5rem;
    height: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 rgba(255, 0, 0, 0.4);
    animation: badge-pulse 1.5s infinite;
}

/* Pulse animation */
@keyframes badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }
    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 8px rgba(255, 0, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}


.menu-toggle {
    display: none;
}
.sidebar-footer {
    margin-top: auto;
    text-align: center;
}
.about-us-link {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 2px solid var(--white);
    border-radius: 2rem;
    transition: all 0.3s ease;
}
.about-us-link:hover {
    background-color: var(--white);
    color: var(--purple);
}
.est-year {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}
.sidebar-logo {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.sidebar-logo img {
    max-width: 50%;
    height: auto;
}
@media (max-width: 768px) {

}
@media (max-width: 768px) {

    .badge {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 0.7rem;
    }

    .dashboard {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        height: auto;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        background-color: var(--dark-gray);
        color: var(--white);
        border: none;
        padding: 1rem;
        width: 100%;
        text-align: left;
        cursor: pointer;
        font-size: 1rem;
    }
    .menu-toggle svg {
        width: 1.5rem;
        height: 1.5rem;
        margin-right: 0.5rem;
    }
    .sidebar-nav {
        display: none;
        padding: 0.5rem;
    }
    .sidebar.menu-open .sidebar-nav {
        display: block;
    }
    .sidebar-nav .button {
        margin-bottom: 0.5rem;
        border-radius: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .sidebar-nav .button:last-child {
        margin-bottom: 0;
    }
    .sidebar-nav .button:hover {
        background-color: var(--light-purple);
    }
    .main-content {
        margin-top: 60px;
    }
    .sidebar-footer {
        padding: 1rem;
        background-color: var(--dark-purple);
    }
    .sidebar-logo {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}