:root {
    --primary-color: #3498db;
    --secondary-color: #2e4057;
    --background-color: #e1f0fa;
    --text-color: #1f2730;
    --hover-color: #2980b9;
}
    
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    position: relative;
    overflow-x: hidden;
    background: #6B80A1;
}

/* HEADER SECTION */
header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

/* Mobile Navigation - Hidden by default */
.mobile-nav {
    display: none;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 4rem;
    padding: 0;
    position: relative;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 100%;
    color: var(--secondary-color);
    transition: background-color 0.3s ease;
    padding: 0;
    margin: 0;
}

.hamburger-menu:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.hamburger-menu svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.3s ease;
}

.hamburger-menu:hover svg {
    color: var(--hover-color);
}

.mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 100%;
}

.mobile-logo img {
    height: 3rem;
    width: auto;
}

.tabs {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    column-gap: 2rem;
}

.tabs li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.tabs li a:hover {
    color: var(--primary-color);
}

.tabs li a:not(:has(img))::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.2s;
}

.tabs li a:not(:has(img)):hover::after {
    width: 100%;
}

.tabs li a img {
    height: 50px;
    width: auto;
}

.tabs li a img:hover {
    transform: scale(1.15);
    transition: transform 0.2s;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons .username {
    color: #5a6b7f;
    font-family: 'Poppins', sans-serif;
}

.auth-buttons .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.auth-buttons .btn-link:hover {
    background-color: #ebf5fb;
}

.auth-buttons .btn-link:last-child {
    background-color: #132239;
    color: white;
}

.auth-buttons .btn-link:last-child:hover {
    background-color: var(--hover-color);
}

/* MAIN SECTION */
.text-center {
    text-align: center;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* New potential standard */
}

.noscroll {
    overflow: hidden;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-top: 5rem; /* Accounts for the navbar */
}

.content {
    flex: 1;
}

.generic-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
}
.generic-content {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    width: 100%;
    max-width: 1200px;
}

.generic-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.generic-content h2,
.generic-content h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.generic-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.generic-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generic-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* FOOTER SECTION */

footer {
    background-color: rgba(248, 249, 250, 0.9);
    padding: 2rem 0;
    text-align: center;
    color: #6c757d;
    backdrop-filter: blur(5px);
}

/* Mobile slide-out menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-slide-menu {
    position: fixed;
    top: 0;
    left: -80%;
    width: 80%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.mobile-slide-menu.active {
    left: 0;
    display: flex;
}

.mobile-slide-menu .menu-header {
    width: calc(100% - 1.5rem);
    padding: 1.5rem 0 1rem 1.5rem;
    margin: 0;
    color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

.mobile-slide-menu .menu-item {
    display: block;
    width: 100%;
    padding: 1rem 0 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid #e9ecef;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.mobile-slide-menu .menu-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.mobile-slide-menu .menu-item:active {
    background-color: #e2e6ea;
    color: var(--secondary-color);
    transform: scale(0.98);
    transition: all 0.1s ease;
}

.mobile-slide-menu .menu-item:first-of-type {
    border-top: none;
}

@media (max-width: 768px) {
    /* Hide desktop navigation */
    .desktop-nav {
        display: none;
    }

    /* Show mobile navigation */
    .mobile-nav {
        display: flex;
        width: 100%;
    }

    header {
        position: fixed;
        padding: 0 2rem;
        min-height: 4rem;
    }

    /* Prevent content from sliding under fixed mobile header */
    .main-wrapper {
        margin-top: 4rem;
    }

    /* Ensure mobile elements are properly sized */
    .mobile-logo img {
        height: 2.5rem;
        max-height: 2.5rem;
        width: auto;
    }

    .mobile-account svg {
        width: 1.5rem;
        height: 1.5rem;
        max-width: 1.5rem;
        max-height: 1.5rem;
    }

    .hamburger-menu svg {
        width: 1.5rem;
        height: 1.5rem;
        max-width: 1.5rem;
        max-height: 1.5rem;
    }
}

.username-btn {
    background: none;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;        
    padding: 0.5rem 1rem;      
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none;
    outline: none;
    display: inline-block;
}

.username-btn:hover,
.username-btn:focus {
    background-color: #ebf5fb;  
    color: #217dbb;
}

/* Base Disabled Styles */
/* Using !important only where absolutely necessary to override component-specific styles */
.disabled {
    cursor: not-allowed !important;
    pointer-events: none !important;
    position: relative;
    background-color: #f8f9fa;
    opacity: 0.6;
    border: 2px dashed #dc3545;
}

.disabled:hover {
    transform: none !important;
    background-color: #f8f9fa;
}

/* Specific overrides for common elements within disabled containers */
.disabled .title,
.disabled .description,
.disabled h1,
.disabled h2,
.disabled h3,
.disabled h4,
.disabled h5,
.disabled h6,
.disabled p,
.disabled span,
.disabled a {
    color: #6c757d !important;
    -webkit-text-stroke: none !important;
    text-shadow: none !important;
}

.disabled::after {
    content: "DISABLED";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}


