:root {
    --primary-color: #e63946;
    --secondary-color: #f1c40f;
    --blue-limited: #2d6cdf;
    --text-color: #222;
    --bg-color: #ffffff;
    --muted-bg: #f8f8f8;
    --white: #fff;
    --spacing: 1rem;
    --radius: 12px;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Global Scrollbar Hiding */
::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* HEADER STYLES */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    /* Tailwind shadow-sm */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 1rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
    position: relative;
    /* Context for absolute mobile menu */
    height: 70px;
}

/* Logo Styles */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.nav-logo-img {
    height: 60px;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo a:hover .nav-logo-img {
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: left;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Desktop Navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-end;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    /* Tailwind gray-600 */
    font-weight: 500;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--blue-limited);
}

.btn-register {
    background: var(--blue-limited);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-register:hover {
    background-color: #1e40af;
    /* Darker blue */
}

.logout-link {
    color: var(--primary-color) !important;
}

/* Layout Utilities */
.container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing);
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero--accent {
    background: linear-gradient(90deg, var(--muted-bg), #fffceb);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    margin: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-primary {
    background: var(--blue-limited);
    color: var(--white);
}

.btn-primary:hover {
    background: #1e40af;
}

.btn-secondary {
    background: #e5e7eb;
    /* Tailwind gray-200 */
    color: #1f2937;
}

.btn-secondary:hover {
    background: #d1d5db;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #1f2937;
    /* Tailwind gray-800 */
    color: var(--white);
    margin-top: auto;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue-limited);
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        padding: 10px;
    }

    .header {
        z-index: 100000;
        /* Ensure header is on top */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff !important;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        border-top: 1px solid #e5e7eb;
        z-index: 100001;
        /* Ensure menu is strictly on top of everything */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-links a {
        display: block;
        padding: 3px 15px;
        /* Extremely minimal padding */
        width: 100%;
        text-align: left;
        background-color: transparent !important;
        color: #374151;
        font-size: 0.9rem;
        /* Smaller font */
        border-radius: 0;
        line-height: 1.2;
        margin: 0;
        /* Ensure no margin */
    }

    .nav-links a:hover,
    .nav-links a:active {
        background-color: #f3f4f6 !important;
        color: var(--blue-limited);
    }

    .btn-register {
        display: block;
        margin: 5px 15px;
        /* Extremely minimal margin */
        width: calc(100% - 30px) !important;
        text-align: center !important;
        background-color: var(--blue-limited) !important;
        color: white !important;
        border-radius: 6px;
        padding: 5px 0;
        /* Minimal vertical padding */
    }

    .nav-logo-img {
        height: 50px;
        max-height: 50px;
    }

    /* Ensure no weird psuedo elements */
    .nav-links a::before,
    .nav-links a::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 1rem;
    }
}