/*
AI Assistance Disclosure:
    Portions of this code were developed with the assistance of generative AI tools.
    All AI-assisted contributions have been reviewed by the developer.
*/

/* -------------------------------------------------- */
/* Global styles - applies to all pages */
/* -------------------------------------------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    color: #212121;
    /* dark gray text */
    margin: 0;
    padding: 0;
}

a {
    color: #00796b;
    /* primary teal for links */
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Header */

/* Sticky Header */
header {
    position: sticky;
    /* stays visible while scrolling */
    top: 0;
    /* stick to top of viewport */
    z-index: 1000;
    /* always above other elements */

    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004d40;
    /* dark teal */
    color: #ffffff;
    padding: 8px 24px;
    /* slightly more breathing room */
    box-sizing: border-box;
    border-bottom: 3px solid #00796b;
    /* subtle accent line */
}

/* Brand container inside header */
header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2em;
}

/* Logo image */
header .logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background-color: #ffffff;
    display: block;
    border-radius: 10px;
    padding: 2px;
}

/* Navigation Links */
nav {
    display: flex;
    align-items: center;
    gap: 18px;
    /* consistent spacing */
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #ffb74d;
    /* warm orange accent */
}

nav a.active {
    border-bottom: 2px solid #ffb74d;
    padding-bottom: 2px;
}

.signout-btn {
    background-color: #e53935;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.signout-btn:hover {
    background-color: #c62828;
    transform: scale(1.05);
}

/* -------------------------------------------------- */
/* Footer - all pages */
/* -------------------------------------------------- */
footer {
    background-color: #004d40;
    /* dark teal */
    color: #ffffff;
    text-align: center;
    padding: 16px 0;
    font-size: 14px;
}

/* Headings & Text - all pages */
h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #00796b;
    /* primary teal */
}

.subtitle {
    font-size: 1.1rem;
    color: #52606d;
    margin-bottom: 35px;
}

/* Buttons - all pages */
.buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn {
    background: linear-gradient(135deg, #00796b, #26a69a);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn.secondary {
    background-color: #f0f4f8;
    color: #1e3a3a;
    border: 2px solid #cbd5e1;
}

.btn.secondary:hover {
    background-color: #e2e8f0;
}

/* Forms */
input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

input:focus {
    border-color: #00796b;
    box-shadow: 0 0 5px rgba(0, 121, 107, 0.3);
}

/* Field errors */
.field-error {
    color: #b00020;
    /* red for validation errors */
    font-size: 13px;
    margin-top: 6px;
}

/* Rows */
.row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* -------------------------------------------------- */
/* Combined Help Banner & Footer Styles */
/* -------------------------------------------------- */
footer {
    background: linear-gradient(135deg, #004d40, #00695c);
    color: #ffffff;
    margin-top: auto;
}

/* Help Banner Styles */
.help-banner {
    background: linear-gradient(135deg, #00796b, #26a69a);
    padding: 10px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content h3 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner-content p {
    color: #e0f2f1;
    font-size: 1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.banner-content .btn {
    background: #ffffff;
    color: #004d40;
    font-weight: 600;
    padding: 15px 35px;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.banner-content .btn:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #004d40;
}

/* Footer Bottom Styles */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #e0f2f1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Design */


@media (max-width: 768px) {
    .help-banner {
        padding: 40px 20px;
    }
    
    .banner-content h3 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        font-size: 1.1rem;
    }
    
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .contact-info p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .help-banner {
        padding: 30px 15px;
    }
    
    .banner-content h3 {
        font-size: 1.6rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .banner-content .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
/* -------------------------------------------------- */
/* Language Selector Styles */
/* -------------------------------------------------- */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: space-between;
}

.language-btn::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-btn.active::after {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 180px;
    z-index: 1000;
    display: none;
    border: 1px solid #e2e8f0;
    margin-top: 5px;
}

.language-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.language-option {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.language-option:hover {
    background: #f8fafc;
}

.language-option.active {
    background: #e8f5e8;
    color: #00796b;
    font-weight: 600;
}

.language-flag {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.language-text {
    flex: 1;
}

.language-check {
    color: #00796b;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.language-option.active .language-check {
    opacity: 1;
}

/* Close dropdown when clicking outside */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-btn {
        min-width: auto;
        padding: 8px 12px;
    }
    
    .language-btn span:not(:first-child) {
        display: none;
    }
    
    .language-btn::after {
        margin-left: 0;
    }
    
    .language-dropdown {
        right: -10px;
    }
}