/* --- Global & Layout --- */
body {
    background-color: #f0f2f5; /* Warna latar belakang abu-abu muda */
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.navbar-brand .logo-icon {
    transform: rotate(-45deg);
    margin-right: 8px;
}

/* --- Tombol Switch Tampilan --- */
.view-switcher {
    margin-bottom: 1.5rem;
}

/* --- Card Styling --- */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Tabel Styling --- */
.table-custom {
    border-collapse: collapse;
    width: 100%;
}

.table-custom thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #6c757d;
}

.table-custom tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.table-custom tbody tr:last-child {
    border-bottom: none;
}

.table-custom tbody tr:hover {
    background-color: #f8f9fa;
}

.table-custom td, .table-custom th {
    padding: 1rem;
    vertical-align: middle;
}

/* --- Indikator Status di Tabel --- */
.status-badge {
    padding: 0.3em 0.6em;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.status-on {
    background-color: rgba(25, 135, 84, 0.15); /* Hijau transparan */
    color: #0f5132;
}

.status-off {
    color: #6c757d;
}

.status-detected {
    background-color: rgba(220, 53, 69, 0.15); /* Merah transparan */
    color: #842029;
}

.status-safe {
    color: #0f5132;
}

/* --- Pagination --- */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}