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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and navigation */
header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: #0d6efd;
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.navbar ul li a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.navbar ul li a:hover {
    background: #f1f1f1;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background-color: #0d6efd;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    color: #fff;
}

.btn-outline {
    border: 2px solid #0d6efd;
    color: #0d6efd;
}

.btn-outline:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* Hero section */
.hero {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    padding: 4rem 1rem;
}

.hero h1 {
    font-size: 2.25rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.hero .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Features section */
.features {
    background: #ffffff;
    padding: 4rem 1rem;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0d6efd;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature h3 {
    margin-bottom: 1rem;
    color: #0d6efd;
}

.feature p {
    color: #555;
}

/* Footer */
footer {
    background: #343a40;
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
}

/* Authentication page */
.auth-main {
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px); /* subtract approximate header+footer height */
    padding: 2rem 1rem;
}

.auth-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #0d6efd;
}

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

.auth-form label {
    font-weight: bold;
    font-size: 0.9rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.auth-form .remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.auth-form button {
    margin-top: 0.5rem;
}

.switch-link {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
}

.switch-link a {
    color: #0d6efd;
    text-decoration: none;
}

.switch-link a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-main {
    padding: 3rem 1rem;
    background: #f8f9fa;
    min-height: calc(100vh - 140px);
}

.dashboard-main h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0d6efd;
}

.dash-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.dash-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dash-card h3 {
    margin-bottom: 1rem;
    color: #0d6efd;
}

.dash-card p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* Hamburger menu toggle button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background: #0d6efd;
    border-radius: 2px;
}

/* Default closed state for nav list on small screens is handled via max-height */

/* Responsive navigation */
@media (max-width: 768px) {
    .navbar ul {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background: #ffffff;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .navbar ul.open {
        max-height: 300px;
    }
    .menu-toggle {
        display: flex;
    }
    .navbar ul li a {
        padding: 1rem;
        border-bottom: 1px solid #e5e5e5;
    }
    .navbar ul li:last-child a {
        border-bottom: none;
    }
}