/* Root Color Codes (COPIED FROM OTP PAGE - DARK THEME) */
:root {
    --color-topbar-bg: #001f44c5;
    /* Deep Navy */
    --color-navbar-bg-transparent: #003144bf;
    /* Semi-transparent Navy for Glassmorphism */
    --color-accent-blue: #2889d8;
    /* Professional Blue */
    --color-accent-hover: #256db1;
    /* Darker Blue */
    --color-text-light: #e2e8f0;
    /* Off-White/Light Gray */
    --color-text-dark: #1e293b;
    /* Dark Slate for contrast */
    --color-section-bg-dark: #0f172a;
    /* Dark Blue Slate for sections (used for footer) */
    --color-section-bg-light: #1e293b;
    /* Slightly lighter dark for contrast (used for main form card) */
    --color-overlay-light: rgba(255, 255, 255, 0.05);
    /* Very subtle light overlay */

    /* Adapted Alert Colors to fit dark theme */
    --color-error: #f87171;
    /* Light Red for visibility on dark */
    --color-error-bg: #450a0a;
    /* Dark Red Background */
    --color-success: #4ade80;
    /* Light Green for visibility on dark */
    --color-success-bg: #064e3b;
    /* Dark Green Background */
    --color-warning: #facc15;
    /* Yellow/Amber for visibility on dark */
    --color-warning-bg: #4c1d95;
    /* Deep Purple background for contrast */
    --color-warning-border: #8b5cf6;
    /* Light purple border */

    /* Canvas-Style Variables */
    --canvas-border-radius: 0.75rem;
    /* Adjusted to match dark theme style */
    --canvas-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    /* Darker shadow */

    /* Form/Text Colors - Adapted for Dark Theme */
    --color-background: #1a202c;
    /* Default dark background */
    --color-white: #ffffff;
    --color-gray-900: var(--color-text-light);
    /* Main Title/Heading */
    --color-gray-700: var(--color-text-light);
    /* Main Body Text (lightened) */
    --color-gray-500: #94a3b8;
    /* Subtle gray for help text/subtitles */
    --color-gray-400: #475569;
    /* Darker border color */
    --color-gray-100: #334155;
    /* Even darker border color */
    --color-form-bg: #0f172a;
    /* Very dark background for input */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    /* Dark Background */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* --- HEADER Styling (COPIED FROM OTP PAGE) --- */
header {
    width: 100%;
}

/* --- Topbar Styles (COPIED FROM OTP PAGE) --- */
.topbar {
    position: relative;
    top: auto;
    left: 0;
    width: 100%;
    height: 2.5rem;
    z-index: 51;
    background-color: var(--color-topbar-bg);
    color: var(--color-text-light);
    font-size: 0.875rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar .container-full {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Re-using the contact-info structure to fill the space */
.contact-info {
    display: flex;
    align-items: center;
    color: var(--color-gray-500);
    font-weight: 500;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--color-accent-blue);
}

.user-nav p {
    color: var(--color-text-light);
    padding: 0 0.5rem;
    margin: 0;
    display: inline-block;
}

/* --- Main Navbar Styles (COPIED FROM OTP PAGE) --- */
.dark-glassmorphism {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.27);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: var(--color-navbar-bg-transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.navbar .container-full {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group {
    display: flex;
    align-items: center;
    column-gap: 0.75rem;
    text-decoration: none;
    /* Make it a proper link */
}

.logo-group img {
    width: 2.5rem;
    /* Matched original logo size */
    height: 2.5rem;
    /* Applying filter to logo for dark theme visibility */
    filter: invert(70%) sepia(35%) saturate(300%) hue-rotate(200deg) brightness(120%) contrast(100%);
}

.logo-text {
    font-size: 1.5rem;
    /* Matched original title size */
    font-weight: 800;
    color: var(--color-accent-blue);
    letter-spacing: -0.02em;
}

.nav-links-desktop {
    display: none;
    column-gap: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.nav-links-desktop a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 300ms;
}

.nav-links-desktop a:hover {
    color: var(--color-accent-blue);
}

.mobile-menu-button {
    color: var(--color-accent-blue);
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

.mobile-menu-button svg {
    width: 1.5rem;
    height: 1.5rem;
}

#mobile-menu {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

#mobile-menu a {
    display: block;
    color: var(--color-text-light);
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 300ms;
}

#mobile-menu a:hover {
    background-color: rgba(40, 137, 216, 0.2);
    /* Accent blue semi-transparent hover */
}


/* Footer Styles (COPIED FROM OTP PAGE) */
.main-footer {
    background-color: var(--color-section-bg-dark);
    color: var(--color-text-light);
    padding: 1.5rem 1.5rem 1.5rem;
    border-top: 4px solid var(--color-accent-blue);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 0.5rem;
}

.footer-bottom a:hover {
    color: var(--color-accent-blue);
}

/* Media Queries */
@media (min-width: 768px) {
    .nav-links-desktop {
        display: flex;
    }

    .mobile-menu-button {
        display: none;
    }

    #mobile-menu {
        display: none !important;
    }
}
