﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    font-family: Inter, Arial, sans-serif;
    color: #111827;
    background: #f3f4f6;
}

body {
    min-height: 100vh;
    background: #f3f4f6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

.topbar {
    height: 64px;
    background: #111827;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.topbar div {
    display: flex;
    flex-direction: column;
}

.topbar strong {
    font-size: 17px;
}

.topbar span {
    font-size: 12px;
    opacity: .7;
}

.container {
    width: min(1200px, 92%);
    margin: 30px auto;
}

.welcome {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.logo {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    background: #111827;
    color: white;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.welcome h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 10px;
}

.welcome p {
    color: #6b7280;
    margin-bottom: 30px;
}

.role-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 13px 20px;
    cursor: pointer;
    font-weight: 700;
    display: inline-block;
    text-align: center;
}

.primary {
    background: #111827;
    color: white;
}

.secondary {
    background: white;
    color: #111827;
    border: 1px solid #d1d5db;
}

.full {
    width: 100%;
    margin-top: 12px;
}

.hero-card {
    max-width: 500px;
    margin: 50px auto;
    text-align: center;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0,0,0,.06);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    font-size: 30px;
}

.card h1 {
    margin-bottom: 8px;
}

.card p {
    color: #6b7280;
}

.status-box {
    margin-top: 20px;
    padding: 14px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 14px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.page-heading p {
    color: #6b7280;
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

.stat-card span,
.stat-card small {
    display: block;
    color: #6b7280;
}

.stat-card strong {
    display: block;
    font-size: 32px;
    margin: 8px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
}

.qr-placeholder {
    min-height: 300px;
    border: 2px dashed #d1d5db;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.qr-placeholder div {
    font-size: 50px;
    font-weight: 900;
    color: #9ca3af;
}

.qr-placeholder p {
    margin-top: 10px;
}

#qrTimer {
    text-align: center;
    margin-top: 12px;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 13px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

th {
    color: #6b7280;
}

@media (max-width: 800px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .page-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .container {
        width: 94%;
    }

    .topbar {
        padding: 0 3%;
    }
}

.qr-box {
    min-height: 320px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
}

.qr-box img {
    max-width: 100%;
    height: auto;
}

.qr-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 14px;
}

