/* Patrons & Farmers Mutual - Main Stylesheet */

/* Construction Banner */
.construction-banner {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.construction-banner p {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Background: A soft Missouri-style landscape placeholder */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

/* Brand logo styling */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 60px;
    width: auto;
    display: inline-block;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Backend readability tweaks */
body.backend-body .admin-topbar,
body.backend-body .agent-topbar {
    background: rgba(255, 255, 255, 0.18) !important;
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}

body.backend-body .admin-sidebar,
body.backend-body .agent-sidebar {
    background: rgba(0, 0, 0, 0.35) !important;
    border-right-color: rgba(255, 255, 255, 0.2) !important;
}

body.backend-body .glass-panel,
body.backend-body .card,
body.backend-body .stat-box {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

body.backend-body .sidebar-footer {
    background: rgba(255, 255, 255, 0.12) !important;
    border-top-color: rgba(255, 255, 255, 0.2) !important;
}

/* Global Dropdown Styling */
select,
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px;
    cursor: text !important;
    caret-color: rgba(255, 255, 255, 0.95) !important;
    color-scheme: dark !important;
}

select:focus,
.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

select option,
.form-select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* The Glass Effect Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Navbar Styling */
.navbar-glass {
    margin-top: 20px;
    padding: 15px 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: rgba(255, 193, 7, 0.9) !important;
}

.nav-link.active {
    color: rgba(255, 193, 7, 0.95) !important;
    border-bottom-color: rgba(255, 193, 7, 0.8);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
}

.hero-card {
    padding: 60px;
    text-align: center;
}

h1 {
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* Card Grid */
.feature-card {
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-glass:hover {
    background: #fff;
    color: #000;
}

/* Shared Button Styles */
.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Banner Color Variants */
.construction-banner.banner-style-glass,
.banner-preview.banner-style-glass {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.construction-banner.banner-style-blue,
.banner-preview.banner-style-blue {
    background: rgba(33, 150, 243, 0.25);
    border-color: rgba(33, 150, 243, 0.45);
}

.construction-banner.banner-style-green,
.banner-preview.banner-style-green {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.45);
}

.construction-banner.banner-style-amber,
.banner-preview.banner-style-amber {
    background: rgba(255, 193, 7, 0.25);
    border-color: rgba(255, 193, 7, 0.45);
}

.construction-banner.banner-style-red,
.banner-preview.banner-style-red {
    background: rgba(244, 67, 54, 0.25);
    border-color: rgba(244, 67, 54, 0.45);
}

/* Admin Shared Layout Helpers */
.admin-main {
    padding: 30px;
    color: #fff;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-header .text-muted {
    color: rgba(255, 255, 255, 0.6);
}

.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
}

.card-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 25px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-check-inline label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-size: 14px;
}

.admin-table th {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.6);
}

.small-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background: rgba(33, 150, 243, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.badge-muted {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.inline-form {
    display: inline-flex;
}

.btn.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 30px 10px;
    color: rgba(255, 255, 255, 0.6);
}

/* Agent Locator Page */
.locator-hero {
    padding: 80px 0 40px;
}

.locator-hero-card {
    padding: 40px;
    text-align: center;
}

.locator-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.locator-search .form-control {
    max-width: 260px;
}

.locator-status {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.locator-content {
    padding: 30px 0 60px;
}

.locator-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 25px;
}

.locator-map {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#agent-locator-map {
    width: 100%;
    height: 500px;
}

.locator-results h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.agent-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agent-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
}

.agent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.agent-card-header h4 {
    font-size: 16px;
    margin: 0;
}

.agent-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.agent-distance {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Geocoding Helper */
.geo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.geo-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.geo-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

@media (max-width: 992px) {
    .locator-grid {
        grid-template-columns: 1fr;
    }

    #agent-locator-map {
        height: 380px;
    }
}

/* Storm Alert Bar */
.storm-alert {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}
