/* ==================== RESET & GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f2f5;
    font-family: 'Inter', sans-serif;
}

/* ==================== NAVBAR ==================== */
.navbar-custom {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb4d);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    transition: 0.3s;
}

.nav-link:hover {
    color: white !important;
}

.btn-login-nav {
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 8px 20px;
    color: white !important;
}

.btn-login-nav:hover {
    background: rgba(255,255,255,0.3);
}

/* ==================== NAVBAR ACTIVE MENU ==================== */
.navbar .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.navbar .nav-link.active {
    color: #fdbb4d !important;
    font-weight: bold;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #fdbb4d;
    border-radius: 3px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 30px;
        opacity: 1;
    }
}

.btn-login-nav {
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 8px 20px !important;
    transition: all 0.3s;
}

.btn-login-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-logout-nav {
    background: rgba(220,53,69,0.8);
    border-radius: 30px;
    padding: 8px 20px !important;
    transition: all 0.3s;
}

.btn-logout-nav:hover {
    background: #dc3545;
    transform: translateY(-2px);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 40px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.btn-emergency {
    background: #dc3545;
    color: white;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    border-radius: 30px;
    padding: 10px 25px;
    border: none;
}

.btn-lapor-hero {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: bold;
    border-radius: 30px;
    padding: 10px 25px;
    border: 2px solid white;
    transition: 0.3s;
    margin-left: 10px;
}

.btn-lapor-hero:hover {
    background: white;
    color: #dc3545;
    transform: scale(1.05);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==================== STAT CARD ==================== */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
}

/* ==================== PETA ==================== */
.card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

#map {
    height: 450px;
    width: 100%;
}

.search-box {
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box input {
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    outline: none;
}

.search-box button {
    border-radius: 50px;
    padding: 8px 25px;
}

/* ==================== WEATHER SECTION - KOTAK KECIL ==================== */
.weather-section {
    position: relative;
    margin-bottom: 30px;
}

/* Container scroll horizontal */
.weather-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 5px 15px 5px;
}

/* Styling scrollbar */
.weather-container::-webkit-scrollbar {
    height: 5px;
}
.weather-container::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}
.weather-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* CARD WEATHER - KOTAK KECIL */
.weather-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    padding: 10px 12px;
    color: white;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
    min-width: 100px;
    width: 100px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.weather-card.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}
.weather-card.warm {
    background: linear-gradient(135deg, #feca57, #ff9f43);
}
.weather-card.cool {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
}
.weather-card.cold {
    background: linear-gradient(135deg, #54a0ff, #5f27cd);
}
.weather-card.default {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.weather-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.weather-card h6 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-card img {
    width: 35px;
    height: 35px;
    margin: 5px 0;
}

.weather-card .fw-bold {
    font-size: 16px;
    font-weight: 700;
}

.weather-card small {
    font-size: 10px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Detail weather (hover) */
.weather-detail {
    font-size: 9px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.3);
    opacity: 0;
    transition: opacity 0.2s;
}
.weather-card:hover .weather-detail {
    opacity: 1;
}

/* Tombol Scroll */
.weather-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.weather-scroll-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-50%) scale(1.05);
}
.weather-scroll-left {
    left: -12px;
}
.weather-scroll-right {
    right: -12px;
}

/* Badge jumlah kota */
.weather-count {
    background: #0d6efd;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ==================== INFO CARD ==================== */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    transition: 0.3s;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.info-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* ==================== TOMBOL LAPORAN ==================== */
.btn-laporan-card {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
    width: 100%;
    margin-top: 15px;
}
.btn-laporan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,53,69,0.4);
}
.btn-detail-card {
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-detail-card:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    color: white;
}

/* ==================== FOOTER ==================== */
.footer-guide {
    background: #1a1a2e;
    color: white;
    padding: 50px 0 30px;
    margin-top: 50px;
}
.footer-section {
    margin-bottom: 30px;
}
.footer-section h5 {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #fdbb4d;
    border-radius: 2px;
}
.footer-section ul {
    list-style: none;
    padding-left: 0;
}
.footer-section ul li {
    margin-bottom: 10px;
}
.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}
.footer-section ul li a:hover {
    color: #fdbb4d;
    padding-left: 5px;
}

/* ==================== GUIDE STEP ==================== */
.guide-step {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: 0.3s;
}
.guide-step:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}
.guide-step .step-number {
    width: 40px;
    height: 40px;
    background: #fdbb4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    color: #1a1a2e;
}

/* ==================== SOCIAL ICONS ==================== */
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: 0.3s;
}
.social-icons a:hover {
    background: #fdbb4d;
    transform: translateY(-3px);
}
.social-icons a i {
    color: white;
    font-size: 18px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 25px;
    }
    #map {
        height: 300px;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .btn-lapor-hero {
        margin-top: 10px;
        margin-left: 0;
    }
    .info-card img {
        height: 150px;
    }
    .weather-card {
        min-width: 85px;
        width: 85px;
        padding: 6px 6px;
    }
    .weather-card h6 {
        font-size: 10px;
    }
    .weather-card .fw-bold {
        font-size: 13px;
    }
    .weather-card img {
        width: 28px;
        height: 28px;
    }
    .weather-scroll-left {
        left: -5px;
    }
    .weather-scroll-right {
        right: -5px;
    }
    .weather-scroll-btn {
        width: 26px;
        height: 26px;
    }
}