:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: env(safe-area-inset-top) 15px 20px 15px;
    line-height: 1.6;
}

.container {
    max-width: 650px;
    margin: 20px auto;
    background: var(--card);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

header.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

h1, h2, h3 { color: #0f172a; margin: 0; }

input, button {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 16px;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover { background: var(--primary-hover); }

.btn-secondary {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}

.room-card, .status-card, .admin-section {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.status-card {
    background: #eff6ff;
    border-color: #bfdbfe;
    text-align: center;
}

.alert {
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.ok { background: #dcfce7; color: #15803d; }
.err { background: #fee2e2; color: #b91c1c; }

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th {
    background: #f1f5f9;
    padding: 12px;
    text-align: left;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.7rem;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: bold;
}

.badge-admin { background: #fee2e2; color: var(--danger); }

a { color: var(--primary); text-decoration: none; font-weight: 500; }