/* ============================================================
   Kerngo Cloud - Dashboard UI
   ============================================================ */

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: #f5f7fb;
    color: #222;
}

header {
    background: #0a0f24;
    color: white;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 20px;
}

header button {
    background: #0a57ff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    margin-left: 8px;
    transition: 0.2s;
}

header button:hover {
    background: #0845ca;
}

#logoutBtn {
    background: #ff5252;
}

#logoutBtn:hover {
    background: #d93737;
}

.container {
    padding: 25px;
    max-width: 1200px;
    margin: auto;
}

h2 {
    margin-bottom: 14px;
}

.device-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.08);
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-name {
    font-size: 18px;
    font-weight: bold;
}

.device-id {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.device-status {
    margin-top: 10px;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.online {
    background: #28c76f;
}

.offline {
    background: #ff5252;
}

.actions button {
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 8px;
    font-weight: bold;
    color: white;
}

.btn-manage {
    background: #0a57ff;
}

.btn-manage:hover {
    background: #0845ca;
}

.btn-delete {
    background: #ff5252;
}

.btn-delete:hover {
    background: #d93737;
}

/* Mobile */
@media (max-width: 600px) {
    .device-card {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .actions button {
        width: 120px;
    }
}
