/* Basic Reset & Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
}

/* Header */
.site-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e7e7e7;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.main-nav {
    display: flex;
}
.main-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: #007bff;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.search-bar {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start; /* Align form fields to the left */
    flex-wrap: wrap;
    gap: 10px;
}

.search-bar input,
.search-bar select {
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    width: 250px;
    box-sizing: border-box;
}

.search-bar button {
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background: #28a745;
    color: white;
    cursor: pointer;
    flex-grow: 1; /* Allow button to grow */
}

.burger-menu {
    display: none; /* Hidden on desktop */
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Sections */
.features-section, .business-promo, .install-promo {
    padding: 3rem 0;
    text-align: center;
}

.business-promo {
    background: #e9ecef;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.cta-button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: bold;
}

#installBtn {
    background: #28a745;
}

.install-instructions {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Login Page */
.login-section {
    padding: 4rem 0;
}

.login-form-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.login-form-container h1 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.form-group select[multiple] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Form Messages */
.message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
}
.message.warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

/* Dashboard Specific Styles */
.dashboard-header-nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.dashboard-header-nav a:hover {
    background-color: #f0f0f0;
}

.dashboard-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.summary-card {
    background: #f9f9f9;
    border: 1px solid #e7e7e7;
    padding: 1.5rem;
    border-radius: 8px;
}

.cta-button-small {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Admin Dashboard Menu */
.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-menu-item {
    display: block;
    background: #f9f9f9;
    border: 1px solid #e7e7e7;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.admin-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.07);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .site-header .container {
        position: relative;
    }

    .site-header .main-nav {
        display: none; /* Hide nav by default on mobile - Increased specificity */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e7e7e7;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .site-header .main-nav.active {
        display: flex; /* Show nav when active */
    }

    .main-nav a {
        margin: 10px 0;
        text-align: center;
    }

    .burger-menu {
        display: block; /* Show burger on mobile */
    }

    .search-bar {
        flex-direction: column; /* Stack form elements vertically */
    }

    .search-bar input,
    .search-bar select,
    .search-bar button {
        width: 100%; /* Make form elements full-width */
    }

    .hero h1 { font-size: 2rem; }
    .site-title { font-size: 1.5rem; }
}