/* === SmartWasch Dashboard – Tiszta táblázatos admin stílus V1.0 === */

/* Alap */
body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    margin: 0;
    padding: 20px;
}

h1 { margin-bottom: 10px; }
.subtitle { color: #9ca3af; margin-bottom: 20px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.card {
    background: #1f2937;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.label { font-size: 0.9rem; color: #9ca3af; }
.value { font-size: 1.2rem; margin-top: 5px; font-weight: bold; }

/* === Állapot színek === */
.state-running { color: #22c55e; }
.state-idle    { color: #eab308; }
.state-offline { color: #ef4444; }
.status-unknown { color: #6b7280; }

/* === Táblázat === */
#device_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95rem;
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
}

#device_table th,
#device_table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #374151;
}

#device_table th {
    background: #111827;
    color: #9ca3af;
    font-weight: bold;
}

#device_table tr:nth-child(even) { background: #1a2535; }
#device_table tr:nth-child(odd)  { background: #111827; }

/* Firefox fix */
#device_list { display: table-row-group !important; }
#device_list tr { display: table-row !important; }
#device_list td { display: table-cell !important; }

/* === START / STOP gombok === */
button.btn-start,
button.btn-stop {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

button.btn-start { background: #22c55e; }
button.btn-stop  { background: #ef4444; }
button:disabled {
    background: #4b5563 !important;
    cursor: not-allowed;
}

/* === Utolsó frissítés === */
#last_update {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #9ca3af;
}
.msg-cell {
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: left;
    padding-left: 8px;
}