:root {
  --navbar-height: 72px; /* Define navbar height as a CSS variable */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
   // padding-top: var(--navbar-height); /* Add padding to account for fixed navbar */
}

/* Navigation styles */
#mainNav {
    z-index: 1030; /* High z-index to ensure navbar is on top */
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--navbar-height) !important; /* Force consistent navbar height */
    min-height: var(--navbar-height) !important; /* Ensure minimum height */
    max-height: var(--navbar-height) !important; /* Ensure maximum height */
    transition: all 0.3s ease;
}

/* Force same height for navbar on all pages */
.navbar-expand-lg {
    height: var(--navbar-height) !important;
}

/* Ensure brand and links are properly aligned vertically */
#mainNav .navbar-brand, 
#mainNav .navbar-nav,
#mainNav .navbar-nav .nav-link {
    display: flex;
    align-items: center;
}

/* Make navigation font smaller */
#mainNav .navbar-nav .nav-link {
    font-size: 0.875rem; /* 14px */
}

#mainNav .navbar-brand {
    font-size: 1.1rem; /* Slightly smaller brand */
}

#mainNav .navbar-text {
    font-size: 0.875rem; /* 14px */
}

/* Sticky banner styles */
.sticky-banner {
    position: fixed;
    top: var(--navbar-height); /* Position it just below the navbar */
    left: 0;
    right: 0;
    background-color: #fff8e1;
    z-index: 1020; /* Lower than navbar but higher than regular content */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 0;
    transition: all 0.3s ease;
    cursor: default; /* Default cursor to indicate it's not clickable */
}

/* Only make interactive elements look clickable */
.sticky-banner .badge,
.sticky-banner .btn-close {
    cursor: pointer;
}

.sticky-banner .badge:hover {
    opacity: 0.8;
}

/* Login page specific styles */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
}

.card {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #4285F4;
    color: white;
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}

.btn-primary {
    background-color: #4285F4;
    border-color: #4285F4;
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
}

.form-control:focus {
    border-color: #4285F4;
    box-shadow: 0 0 0 0.25rem rgba(66, 133, 244, 0.25);
}

.register-link {
    color: #4285F4;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h2 {
    margin: 0;
    font-size: 2.2rem;
}

.logo a {
    text-decoration: none;
}

.logo .value-text, .navbar-brand .value-text {
    font-weight: 700;
    color: #4285F4;
}

.logo .time-text, .navbar-brand .time-text {
    font-weight: 700;
    color: #34A853;
}

.alert {
    display: none;
}

/* Landing page styles */
.navbar {
    padding: 1rem 0;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/random/1600x900/?traffic,commute');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
}

.feature-card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    padding: 2rem;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #4285F4;
}

.cta-button {
    background-color: #34A853;
    border-color: #34A853;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    color: white;
}

.cta-button:hover {
    background-color: #2E8B57;
    border-color: #2E8B57;
    color: white;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    margin: 20px;
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #4285F4;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/random/1600x900/?maps,gps');
    background-size: cover;
    background-position: center;
    color: white;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Tablet adjustments */
    .login-container {
        padding: 1.5rem;
        max-width: 100%;
    }

    .hero {
        padding: 4rem 0;
    }
}

@media (max-width: 576px) {
    /* Mobile phone adjustments */
    .login-container {
        padding: 1rem;
        margin: 0.5rem;
    }

    .logo h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 3rem 0;
    }

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

    /* Better mobile button sizing */
    .btn {
        min-height: 44px; /* iOS recommended minimum touch target */
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }

    .btn-sm {
        min-height: 40px;
        font-size: 0.85rem;
        padding: 0.625rem 1.25rem;
    }

    /* Better mobile input sizing */
    .form-control {
        min-height: 44px; /* iOS recommended minimum touch target */
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    /* Better mobile card spacing */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Better mobile navigation */
    .navbar-toggler {
        padding: 0.5rem;
    }

    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }

    /* Better mobile spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Better mobile feature cards */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    /* Better mobile steps */
    .step {
        margin: 15px 10px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .login-container {
        padding: 0.75rem;
        margin: 0.25rem;
    }

    .logo h2 {
        font-size: 1.6rem;
    }

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

    .btn {
        min-height: 42px;
        font-size: 0.85rem;
        padding: 0.625rem 1.25rem;
    }

    .form-control {
        min-height: 42px;
        font-size: 0.85rem;
        padding: 0.625rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
} 