/* === Weather Card === */
.weather-card {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.weather-card:hover {
    transform: translateY(-3px);
}

/* Header */
.card-header {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #0077b6;
    border-bottom: 1px solid #eee;
}

/* Body */
.card-body {
    display: flex;
    gap: 16px;
    padding: 16px;
    align-items: flex-start;
}

.card-body p {
    margin: 8px 0;
    line-height: 1.5;
}

/* Kolom kiri */
.weather-left {
    flex: 0 0 150px;
    text-align: center;
	
}

.weather-icon {
    width: 60px;
    margin: 0 auto 8px;
    display: block;
}

.weather-text {
    font-weight: bold;
	color: #000000;
}

/* Kolom kanan */
.weather-right {
    flex: 1;
}

/* Warning */
.warning-text {
    color: #d90429;   /* merah lebih halus */
    font-weight: bold;
}

/* === Tabs === */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 18px;
    border: none;
    background: #eff7fa;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn.active {
    background: #0077b6;
    color: #fff;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Animasi */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Responsif === */
@media (max-width: 600px) {
    .card-body {
        flex-direction: column;
        text-align: left;
    }

    .weather-left {
        flex: none;
        margin-bottom: 12px;
    }
}
