/* ===================== RESET ===================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f6f8;
}

/* ===================== TOPBAR ===================== */
.topbar {
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
}

/* ===================== NAVIGATION ===================== */
.nav {
    background: #34495e;
    padding: 10px;
}

.nav a {
    color: white;
    text-decoration: none;
    margin-right: 10px;
    padding: 6px 10px;
    border-radius: 4px;
}

.nav a:hover {
    background: #1abc9c;
}

/* ===================== CONTENT ===================== */
.content {
    padding: 20px;
}

/* ===================== BUTTONS ===================== */
.btn {
    background: #1abc9c;
    color: white;
    padding: 6px 10px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background: #16a085;
}

/* ===================== TABLE ===================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    background: #2c3e50;
    color: white;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

/* ===================== FORM ===================== */
input, select {
    padding: 6px;
    margin-right: 5px;
}

/* ===================== CARDS ===================== */
.card {
    display: inline-block;
    padding: 20px;
    background: white;
    margin: 10px;
    border-radius: 6px;
    text-decoration: none;
    color: black;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.card:hover {
    background: #1abc9c;
    color: white;
}

/* ===================== ALERTS ===================== */
.success {
    color: green;
}

.error {
    color: red;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

body {
    /* background: #2c3e50; */
}

/* ================= LOGIN ================= */

body.login {
    background: #2c3e50;
    font-family: Arial;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    width: 320px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.login-box h2 {
    margin-bottom: 20px;
}

/* Logo */
.login-box .logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 200px;
    height: auto;
}

/* Inputs */
.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Button */
.login-box button {
    width: 100%;
}

/* Fehler */
.error {
    color: red;
    margin-bottom: 10px;
}

<style>
.spinner {
    display:inline-block;
    width:15px;
    height:15px;
    border:2px solid #ccc;
    border-top:2px solid #000;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ===================== DEVICE PANELS ===================== */

.device-box {
    border:1px solid #ccc;
    margin-bottom:15px;
    border-radius:8px;
    background:white;
}

.device-header {
    background:#f0f0f0;
    padding:10px;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:bold;
}

.device-header:hover {
    background:#e5e5e5;
}

.device-content {
    max-height:0;
    overflow:hidden;
    transition:max-height 0.4s ease;
}
.device-content-inner {
    padding:10px;
}
.device-content.open {
    padding:10px;
}

.software-item {
    padding:5px 0;
    border-bottom:1px solid #eee;
}
</style>