/* CSS placeholder - insert final CSS here *//* =============================
   GRID RESPONSIVE
============================= */

/* PC & Laptop: auto 3 kolom / lebih */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

/* Tablet */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* HP (≤768px) → 1 kolom wajib */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .card-title {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
}


/* =============================
   CARD STYLE
============================= */

.card {
    border-radius: 12px;
    transition: transform .18s ease, background-color .25s ease;
    padding: 16px;
}

/* Card selesai */
.card-selesai {
    background: #d8d8d8 !important;
    border: 1px solid #b5b5b5 !important;
}

/* Hover (PC only) */
@media (hover:hover) {
    .card:hover {
        transform: scale(1.015);
    }
}


/* =============================
   BADGE STYLE
============================= */

.badge-atensi {
    background: #d9534f !important;
    color: white !important;
    padding: 3px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
    font-weight: 600;
}

.badge-selesai {
    background: #6c757d !important;
    color: white !important;
    padding: 3px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
    font-weight: 600;
}

.badge-leader {
    background: #007bff !important;
    padding: 2px 7px;
    font-size: 0.7rem;
    border-radius: 6px;
    color: white;
}

.badge-keterangan {
    background: #ffc107 !important;
    color: #000;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 6px;
}

.badge-rumah {
    background: #17a2b8 !important;
    color: white !important;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 0.75rem;
}


/* =============================
   COUNTDOWN STYLE
============================= */

.txjam {
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

/* Jika < 1 jam → merah + blinking */
.countdown-critical {
    color: #ff0000 !important;
    font-weight: bold;
    animation: blink 0.9s infinite ease-in-out;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: .35; }
    100% { opacity: 1; }
}


/* =============================
   ANIMASI PULSE UNTUK ATENSI
============================= */

.pulse {
    animation: pulseAnim 1.6s infinite;
}

@keyframes pulseAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}


/* =============================
   LOGO & HEADER
============================= */

.logo-ronda {
    width: 170px;
    display: block;
    margin: auto;
}

.header-title {
    text-align: center;
    font-weight: 700;
    margin-top: 12px;
}

.header-sub {
    text-align: center;
    margin-top: -6px;
    font-size: 0.9rem;
    color: #777;
}


/* =============================
   LIST STYLE
============================= */

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 4px;
    font-size: 0.92rem;
}
