/* Custom Styles for Flood Warning System (FWS) */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --water-blue: #0284c7;
    --safe-green: #198754;
    --warn-yellow: #ffc107;
    --alert-orange: #fd7e14;
    --danger-red: #dc3545;
    --bg-light: #f8fafc;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --hover-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Prompt', 'Kanit', sans-serif;
    background-color: var(--bg-light);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
}

/* Navbar */
.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}
.navbar-dark.bg-dark-blue {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
}
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: var(--hover-shadow);
}
.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

/* Status Banner */
.status-banner {
    border-radius: 12px;
    padding: 1.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.status-banner.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.status-banner.yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.status-banner.orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.status-banner.red {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

/* Stat Cards */
.stat-card {
    border-radius: 12px;
    padding: 1.25rem;
    background: #ffffff;
    border-left: 5px solid #cbd5e1;
}
.stat-card.blue { border-left-color: #0284c7; }
.stat-card.green { border-left-color: #10b981; }
.stat-card.yellow { border-left-color: #f59e0b; }
.stat-card.orange { border-left-color: #f97316; }
.stat-card.red { border-left-color: #ef4444; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Water Level Meter */
.water-gauge-container {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}
.water-level-bar {
    height: 24px;
    border-radius: 12px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}
.water-level-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease-in-out;
}

/* Badges */
.badge-soft-success {
    background-color: #d1fae5;
    color: #065f46;
}
.badge-soft-warning {
    background-color: #fef3c7;
    color: #92400e;
}
.badge-soft-danger {
    background-color: #fee2e2;
    color: #991b1b;
}
.badge-soft-info {
    background-color: #e0f2fe;
    color: #075985;
}

/* Tables */
.table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    border-top: none;
}
.table td {
    vertical-align: middle;
}

/* Simulation Controls */
.slider-container {
    padding: 1rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* Vulnerable Group Tags */
.vul-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-right: 4px;
    margin-bottom: 4px;
    font-weight: 500;
}
.vul-bedbound { background-color: #fee2e2; color: #991b1b; }
.vul-disabled { background-color: #fef3c7; color: #92400e; }
.vul-elderly { background-color: #e0e7ff; color: #3730a3; }
.vul-child { background-color: #dcfce7; color: #166534; }

/* Print Styles */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .no-print, .navbar, footer, .btn, .card-header .btn {
        display: none !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    .print-only {
        display: block !important;
    }
}
.print-only {
    display: none;
}

