:root {
    --attendo-blue: #2D7DF7;
    --attendo-dark: #0A2342;
    --bg: #f5f7fb;
    --text-main: #101827;
    --text-muted: #6b7280;
    --danger: #ef4444;
    --success: #10b981;
    --radius-lg: 18px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-main);
}

.page-centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem 2.2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.card h1 {
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    font-size: 1.8rem;
}

.subtitle {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.logo-circle {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--attendo-blue);
    color: #fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight: 800;
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.logo-circle.small {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
}

.actions {
    display:flex;
    gap:0.75rem;
    margin-top:1.2rem;
}

.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0.7rem 1.3rem;
    border-radius: 999px;
    border:1px solid transparent;
    font-size:0.95rem;
    font-weight:600;
    text-decoration:none;
    cursor:pointer;
    transition: all 0.18s ease;
}

.btn.primary {
    background: var(--attendo-blue);
    color:#fff;
    border-color: var(--attendo-blue);
}

.btn.ghost {
    background: transparent;
    color: var(--attendo-dark);
    border-color: #d1d5db;
}

.btn-large {
    width:100%;
    padding:0.9rem 1.4rem;
    font-size:1.05rem;
}

.btn.primary:hover {
    filter: brightness(1.05);
}

.btn.ghost:hover {
    background:#e5e7eb;
}

label {
    display:block;
    margin-top:0.7rem;
    margin-bottom:0.25rem;
    font-size:0.9rem;
    font-weight:500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width:100%;
    padding:0.6rem 0.75rem;
    border-radius:0.75rem;
    border:1px solid #d1d5db;
    font-size:0.95rem;
}

input:focus, textarea:focus {
    outline:none;
    border-color: var(--attendo-blue);
    box-shadow:0 0 0 1px rgba(45,125,247,0.25);
}

.alert {
    padding:0.7rem 0.85rem;
    border-radius:0.9rem;
    font-size:0.88rem;
    margin-bottom:0.9rem;
}

.alert.danger {
    background:#fef2f2;
    color:#b91c1c;
}

.alert.success {
    background:#ecfdf3;
    color:#166534;
}

.muted {
    color:var(--text-muted);
    font-size:0.9rem;
}

.muted.small {
    font-size:0.8rem;
}

.topbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0.8rem 1.6rem;
    background:#fff;
    box-shadow:0 8px 20px rgba(15,23,42,0.04);
    position:sticky;
    top:0;
    z-index:10;
}

.topbar .logo {
    font-weight:800;
    color:var(--attendo-dark);
}

.topbar nav a {
    margin-left:1rem;
    text-decoration:none;
    color:var(--text-muted);
    font-size:0.9rem;
    font-weight:500;
}

.topbar nav a.active,
.topbar nav a:hover {
    color:var(--attendo-blue);
}

.container {
    max-width:1000px;
    margin:1.3rem auto 3rem;
    padding:0 1.5rem;
}

.grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px,1fr));
    gap:1rem;
    margin-bottom:1.5rem;
}

.card.stat {
    padding:1.3rem 1.5rem;
    text-align:left;
}

.card.stat h2 {
    margin:0;
    font-size:1.8rem;
}

.card.stat p {
    margin:0.1rem 0 0;
    color:var(--text-muted);
    font-size:0.9rem;
}

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

.table th,
.table td {
    padding:0.55rem 0.6rem;
    border-bottom:1px solid #e5e7eb;
    text-align:left;
}

.table th {
    font-size:0.78rem;
    text-transform:uppercase;
    letter-spacing:0.03em;
    color:#9ca3af;
}

.page-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:0.7rem;
}

.qr-wrapper {
    display:flex;
    justify-content:center;
    margin:1rem 0 0.4rem;
}

@media (max-width:640px) {
    .card {
        padding:1.5rem 1.3rem;
    }
    .topbar nav a {
        margin-left:0.6rem;
        font-size:0.8rem;
    }
}


select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    background: #fff;
}
select:focus {
    outline: none;
    border-color: var(--attendo-blue);
    box-shadow: 0 0 0 1px rgba(45,125,247,0.25);
}
