/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F8F9FA;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Header */
.header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    display: block;
    max-width: 100%;
}

.nav {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #007BFF;
}

.nav-link-button {
    background-color: #007BFF;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-link-button:hover,
.nav-link-button:focus {
    background-color: #0056B3;
    transform: translateY(-2px);
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    position: absolute;
    opacity: 0;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 20px;
    position: relative;
}

.nav-toggle-label .hamburger,
.nav-toggle-label .hamburger::before,
.nav-toggle-label .hamburger::after {
    background: #333333;
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav-toggle-label .hamburger {
    top: 9px;
}

.nav-toggle-label .hamburger::before {
    content: '';
    top: -6px;
}

.nav-toggle-label .hamburger::after {
    content: '';
    top: 6px;
}

.nav-toggle:checked + .nav-toggle-label + .nav {
    display: block;
}

.nav-toggle:checked + .nav-toggle-label .hamburger {
    background: transparent;
}

.nav-toggle:checked + .nav-toggle-label .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle:checked + .nav-toggle-label .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Auth Section (Login/Signup) */
.auth-section {
    background: linear-gradient(135deg, #F5F5F5 0%, #E3F2FD 100%);
    padding: 4rem 0;
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    background-color: #FFFFFF;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1.5rem;
}

.auth-error {
    color: #D32F2F;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background: #FFEEEE;
    padding: 0.5rem;
    border-radius: 8px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-button {
    background: linear-gradient(90deg, #007BFF 0%, #00C4B4 100%);
    color: #FFFFFF;
    padding: 0.8rem;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-button:hover,
.auth-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.auth-text {
    font-size: 0.9rem;
    color: #6C757D;
    margin: 1rem 0;
}

.auth-link {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover,
.auth-link:focus {
    text-decoration: underline;
}

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

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333333;
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: #333333;
    background-color: #F8F9FA;
    border: 1px solid #D3D3D3;
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #F8F9FA;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #333333;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

/* Hero Section (Homepage) */
.hero-section {
    background: linear-gradient(135deg, #007BFF 0%, #00C4B4 100%);
    color: #FFFFFF;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-button {
    background-color: #FFFFFF;
    color: #007BFF;
    padding: 0.8rem 1.5rem;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-button:hover,
.hero-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Features Section (Homepage) */
.features-section {
    padding: 4rem 0;
    background-color: #FFFFFF;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: #F8F9FA;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #6C757D;
}

/* Dashboard Section */
.dashboard-section {
    padding: 4rem 0;
    background: #F8F9FA;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1rem;
    text-align: center;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #6C757D;
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    font-size: 0.9rem;
    color: #6C757D;
    margin-bottom: 1rem;
}

.button-primary {
    background: linear-gradient(90deg, #007BFF 0%, #00C4B4 100%);
    color: #FFFFFF;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary:hover,
.button-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Footer */
.footer {
    background-color: #333333;
    color: #D3D3D3;
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.8rem;
}

.footer-column p {
    font-size: 0.8rem;
    color: #D3D3D3;
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: #D3D3D3;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-link:hover,
.footer-link:focus {
    color: #007BFF;
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.footer-social {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-social:hover,
.footer-social:focus {
    color: #007BFF;
}

.footer-divider {
    border: none;
    border-top: 1px solid #D3D3D3;
    margin: 1.5rem 0;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #D3D3D3;
    margin: 0.4rem 0;
}

/* Main Content */
main {
    margin-top: 60px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }

    .logo-image {
        height: 48px;
    }

    .header {
        height: 50px;
    }

    .nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 50px;
        left: 0;
        background-color: #FFFFFF;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-toggle-label {
        display: block;
        position: absolute;
        right: 0.5rem;
        top: 15px;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .nav-link,
    .nav-link-button {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.4rem 0;
        font-size: 1rem;
    }

    .hero-section {
        padding: 4rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .auth-container {
        max-width: 90%;
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.8rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title {
        font-size: 1.8rem;
    }

    .dashboard-subtitle {
        font-size: 1rem;
    }

    .dashboard-card {
        padding: 1rem;
    }

    .dashboard-card h3 {
        font-size: 1.1rem;
    }

    .dashboard-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .logo-image {
        height: 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .hero-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .auth-container {
        padding: 1rem;
    }

    .auth-title {
        font-size: 1.6rem;
    }

    .auth-form {
        gap: 1rem;
    }

    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .auth-button {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .dashboard-card {
        padding: 0.8rem;
    }

    .dashboard-card h3 {
        font-size: 1rem;
    }

    .dashboard-card p {
        font-size: 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}