body {
    font-family: Arial;
    background: #f4f6f8;
    padding: 20px;
}

.cards {
    display: flex;
    gap: 10px;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    width: 150px;
    text-align: center;
}

.online { background: #e8f7ee; }
.offline { background: #fdecea; }

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}


/* SIDEBAR */
.sidebar {
    width: 240px;
    background: #2f6fed;
    color: #fff;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: 0.3s;
}

.sidebar .logo h2 {
    text-align: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: bold;
}

.sidebar ul {
    list-style: none;
    flex: 1;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar li a {
    display: block;
    text-decoration: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    transition: 0.3s;
}

.sidebar li a:hover,
.sidebar li.active a {
    background: rgba(255,255,255,0.2);
}

/* Hamburger untuk mobile */
.menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #2f6fed;
    z-index: 1100;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100%;
        z-index: 1050;
    }
    .sidebar.show {
        left: 0;
    }
    .menu-btn {
        display: block;
    }
    .overlay.show {
        display: block;
    }
}
