/* ============================================================
   SiagaBanjir — gaya khusus halaman (assets/css/public.css)
   Diekstrak dari blok <style> inline. Jangan kembalikan ke inline.
   ============================================================ */

/* ============================================================================
   Landing page  — dari index.php
   ============================================================================ */
/* ═══════════════════════════════════════════
           THEME UNIFORM — SAME AS DOKUMENTASI
           ═══════════════════════════════════════════ */
        .hero-section {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
            color: #fff;
            padding: 5rem 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }
        .hero-section h1 {
            font-size: 2.8rem;
            font-weight: 800;
            line-height: 1.2;
        }
        .hero-section p {
            color: #94a3b8;
            font-size: 1.1rem;
        }
        .hero-img-wrapper {
            position: relative;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        }
        .hero-img-wrapper img {
            width: 100%;
            display: block;
        }
        .hero-img-wrapper .overlay-badge {
            position: absolute;
            bottom: 12px;
            left: 12px;
            background: rgba(0,0,0,0.7);
            color: #fff;
            padding: 0.4rem 0.9rem;
            border-radius: 2rem;
            font-size: 0.8rem;
            backdrop-filter: blur(4px);
        }

        .section-title {
            font-weight: 700;
            margin-bottom: 1rem;
            color: #0f172a;
        }
        .section-title i {
            margin-right: 0.5rem;
            color: #000;
        }
        .section-subtitle {
            color: #64748b;
            margin-bottom: 2.5rem;
        }

        .section-padding {
            padding: 4rem 0;
        }
        .section-alt {
            background: #f8fafc;
        }
        .section-dark {
            background: #0f172a;
            color: #fff;
        }
        .section-dark .section-title { color: #fff; }
        .section-dark .section-title i { color: #94a3b8; }
        .section-dark p { color: #94a3b8; }

        .feature-card {
            background: #fff;
            border-radius: 1rem;
            padding: 1.75rem;
            height: 100%;
            border: 1px solid #e2e8f0;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .feature-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        }
        .feature-card .fc-icon {
            width: 52px;
            height: 52px;
            background: #f1f5f9;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: #fff;
        }
        .stat-label {
            color: #94a3b8;
            font-size: 0.9rem;
        }

        .content-img {
            border-radius: 1rem;
            width: 100%;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        }

        .cam-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 1rem;
        }
        .cam-item {
            border-radius: 0.75rem;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .cam-item:hover {
            transform: scale(1.03);
        }
        .cam-item img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            display: block;
            border-radius: 0.75rem;
        }
        .cam-item .cam-time {
            position: absolute;
            bottom: 8px;
            left: 8px;
            background: rgba(0,0,0,0.7);
            color: #fff;
            padding: 0.25rem 0.6rem;
            border-radius: 0.5rem;
            font-size: 0.75rem;
            backdrop-filter: blur(4px);
        }
        .cam-item .cam-id {
            position: absolute;
            top: 8px;
            left: 8px;
            background: rgba(0,0,0,0.7);
            color: #fff;
            padding: 0.2rem 0.5rem;
            border-radius: 0.4rem;
            font-size: 0.7rem;
            backdrop-filter: blur(4px);
        }

        .step-card {
            text-align: center;
            padding: 1.5rem;
        }
        .step-card .step-num {
            width: 44px;
            height: 44px;
            background: #000;
            color: #fff;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }

        .testimonial-card {
            background: #fff;
            border-radius: 1rem;
            padding: 1.75rem;
            border: 1px solid #e2e8f0;
            height: 100%;
        }
        .testimonial-card .quote-icon {
            color: #cbd5e1;
            font-size: 1.8rem;
        }

        .tech-pill {
            background: #f1f5f9;
            color: #1e293b;
            padding: 0.35rem 0.9rem;
            border-radius: 2rem;
            font-size: 0.85rem;
            font-weight: 500;
            display: inline-block;
            margin: 0.15rem;
        }
        .tech-pill-dark {
            background: rgba(255,255,255,0.1);
            color: #e2e8f0;
            padding: 0.35rem 0.9rem;
            border-radius: 2rem;
            font-size: 0.85rem;
            display: inline-block;
            margin: 0.15rem;
        }

        .cta-section {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: #fff;
            padding: 4rem 0;
        }

        #scrollToTop {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: #000;
            color: #fff;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 999;
            transition: opacity 0.3s;
        }
        #scrollToTop:hover { opacity: 0.8; }
        #scrollToTop.show { display: flex; }

        .flood-level-bar {
            display: flex;
            border-radius: 0.75rem;
            overflow: hidden;
            height: 36px;
        }
        .flood-level-bar .fl-segment {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 600;
            color: #fff;
        }

        @media (max-width: 768px) {
            .hero-section h1 { font-size: 1.8rem; }
            .hero-section { padding: 3rem 0; }
            .section-padding { padding: 2.5rem 0; }
            .stat-number { font-size: 1.8rem; }
        }

        /* Lightbox overlay */
        .cam-lightbox {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        .cam-lightbox.open { display: flex; }
        .cam-lightbox img {
            max-width: 90%;
            max-height: 90%;
            border-radius: 0.5rem;
        }

/* ============================================================================
   Dokumentasi  — dari dokumentasi.php
   ============================================================================ */
.doc-hero {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
            color: #fff;
            padding: 4rem 0;
        }
        .doc-hero h1 {
            font-size: 2.5rem;
            font-weight: 800;
        }
        .doc-hero p {
            color: #94a3b8;
            font-size: 1.1rem;
        }
        .doc-section {
            padding: 3rem 0;
            border-bottom: 1px solid #e2e8f0;
        }
        .doc-section:last-child {
            border-bottom: none;
        }
        .doc-section h2 {
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #0f172a;
        }
        .doc-section h2 i {
            margin-right: 0.5rem;
            color: #000;
        }
        .doc-section h3 {
            font-weight: 600;
            margin-top: 1.5rem;
            margin-bottom: 1rem;
            color: #1e293b;
        }
        .doc-card {
            background: #fff;
            border-radius: 1rem;
            padding: 1.5rem;
            height: 100%;
            border: 1px solid #e2e8f0;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .doc-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
        }
        .doc-card .card-icon {
            width: 48px;
            height: 48px;
            background: #f1f5f9;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            margin-bottom: 1rem;
        }
        .status-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .status-normal { background: #dcfce7; color: #166534; }
        .status-waspada { background: #fef3c7; color: #92400e; }
        .status-siaga { background: #ffedd5; color: #9a3412; }
        .status-awas { background: #fee2e2; color: #991b1b; }
        .tech-badge {
            background: #f1f5f9;
            color: #1e293b;
            padding: 0.3rem 0.8rem;
            border-radius: 6px;
            font-size: 0.85rem;
            font-weight: 500;
            margin: 0.15rem;
            display: inline-block;
        }
        .table-doc {
            font-size: 0.9rem;
        }
        .table-doc thead th {
            background: #f8fafc;
            border-bottom: 2px solid #e2e8f0;
        }
        .architecture-flow {
            background: #f8fafc;
            border-radius: 1rem;
            padding: 2rem;
            border: 1px solid #e2e8f0;
        }
        .flow-item {
            text-align: center;
            padding: 1rem;
        }
        .flow-item .flow-icon {
            width: 60px;
            height: 60px;
            background: #000;
            color: #fff;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }
        .flow-item .flow-label {
            font-weight: 600;
            font-size: 0.85rem;
        }
        .flow-arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: #94a3b8;
        }
        .toastr-demo {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
        }
        #scrollToTop {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: #000;
            color: #fff;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 999;
            transition: opacity 0.3s;
        }
        #scrollToTop:hover {
            opacity: 0.8;
        }
        #scrollToTop.show {
            display: flex;
        }
        pre.code-block {
            background: #0f172a;
            color: #e2e8f0;
            padding: 1rem 1.25rem;
            border-radius: 0.75rem;
            font-size: 0.85rem;
            overflow-x: auto;
        }
        pre.code-block code {
            color: #e2e8f0;
        }
        .nav-docs-sticky {
            position: sticky;
            top: 100px;
        }
        .nav-docs-sticky .nav-link {
            color: #64748b;
            padding: 0.4rem 0;
            font-size: 0.9rem;
            border-left: 2px solid transparent;
            padding-left: 0.75rem;
        }
        .nav-docs-sticky .nav-link:hover,
        .nav-docs-sticky .nav-link.active {
            color: #000;
            border-left-color: #000;
        }
        @media (max-width: 768px) {
            .doc-hero h1 { font-size: 1.8rem; }
            .doc-section { padding: 2rem 0; }
        }
