/* assets/css/style.css - Vibrant Relief-Themed Bootstrap Card Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Vibrant Relief Theme Palette */
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Vibrant Relief Color Gradients */
    --grad-water-blue: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    --grad-relief-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-sun-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-royal-indigo: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --grad-alert-rose: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);

    --glass-border: rgba(226, 232, 240, 0.9);
    --glass-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(6, 182, 212, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 45%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Color Helpers for High Contrast Cards */
.bg-emerald-light {
    background-color: #ecfdf5;
}

.bg-amber-light {
    background-color: #fffbeb;
}

.bg-rose-light {
    background-color: #fff1f2;
}

.bg-amber {
    background-color: #f59e0b !important;
}

/* Emergency Alert Bar */
.alert-ticker {
    background: linear-gradient(90deg, #0f172a 0%, #0e7490 50%, #064e3b 100%);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-bottom: 3px solid #06b6d4;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseRed 1.8s infinite;
}

@keyframes pulseRed {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    box-shadow: 0 18px 45px -5px rgba(15, 23, 42, 0.1);
}

.glass-card-sm {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.glass-card-sm:hover {
    border-color: #bae6fd;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.08);
}

/* ULTRA-ATTRACTIVE DUAL IMPACT & RELIEF HERO CARDS */
.visual-impact-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 14px 35px -5px rgba(15, 23, 42, 0.15);
    transition: all 0.3s ease;
}

.visual-impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -5px rgba(15, 23, 42, 0.25);
}

.impact-glass-panel {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.92) 100%);
    backdrop-filter: blur(3px);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.relief-glass-panel {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.5) 0%, rgba(15, 23, 42, 0.94) 100%);
    backdrop-filter: blur(3px);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glass-ribbon-bar {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem 1.25rem;
}

/* Vibrant Relief Metric Bootstrap Cards */
.relief-card-blue {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    border: 1px solid #bae6fd;
    border-top: 4px solid #0284c7;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.relief-card-blue:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.18);
}

.relief-card-green {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid #bbf7d0;
    border-top: 4px solid #10b981;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.relief-card-green:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.18);
}

.relief-card-amber {
    background: linear-gradient(180deg, #fffbe6 0%, #ffffff 100%);
    border: 1px solid #fef08a;
    border-top: 4px solid #f59e0b;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.relief-card-amber:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.18);
}

.relief-card-indigo {
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
    border: 1px solid #c7d2fe;
    border-top: 4px solid #6366f1;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.relief-card-indigo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.18);
}

/* Gradient Icon Container */
.icon-gradient-blue {
    background: var(--grad-water-blue);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

.icon-gradient-green {
    background: var(--grad-relief-green);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.icon-gradient-amber {
    background: var(--grad-sun-amber);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.icon-gradient-indigo {
    background: var(--grad-royal-indigo);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.stat-val-large {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* Industrial Hero Container */
.industrial-hero-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.industrial-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

/* Hero Stat Pill Cards */
.hero-stat-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
}

/* Custom Navigation Bar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
}

.nav-link-custom {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: #0284c7;
    background-color: #f0f9ff;
}

/* Buttons */
.btn-primary-custom {
    background: var(--grad-water-blue);
    color: #ffffff;
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.65rem 1.5rem;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
    transition: all 0.25s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.4);
}

.btn-secondary-custom {
    background: #ffffff;
    color: var(--text-secondary);
    border: 1px solid #cbd5e1;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.65rem 1.3rem;
    transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
    background: #f8fafc;
    color: var(--text-primary);
    border-color: #94a3b8;
}

/* Form Inputs */
.form-control-custom, .form-select-custom {
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-custom:focus, .form-select-custom:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Table Styling */
.table-custom {
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom th {
    background-color: #f8fafc;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.table-custom td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

/* Badges */
.badge-district {
    padding: 0.4em 0.85em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
}

.badge-badulla {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-monaragala {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* User Session Badge Pill */
.session-pill {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* Print Utilities */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .glass-card { box-shadow: none; border: 1px solid #ccc; }
}
