/* style.css - Mobile First Design for queuetix */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --danger-color: #dc3545;
    --bg-color: #f8f9fa; /* Slightly lighter bg */
    --card-bg: #ffffff;
    --text-color: #333333;
    --radius: 20px; /* Slightly more rounded */
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center; /* Center for the result view */
    min-height: 100vh;
}

.container {
    background: var(--card-bg);
    padding: 40px 24px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Softer shadow */
    text-align: center;
    width: 100%;
    max-width: 440px;
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 32px;
    font-weight: 800; /* Bold */
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 24px;
    border: none;
    border-radius: 16px; /* Match button in screenshot */
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    margin-bottom: 12px;
    transition: transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-secondary { background-color: var(--secondary-color); }
.btn-danger { background-color: var(--danger-color); }

.number-display {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 32px 0;
    line-height: 1;
}

.status-info {
    font-size: 0.9rem;
    color: #666;
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Category Selection */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.category-btn {
    padding: 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    background: white;
    font-weight: 600;
}

.category-btn.active {
    border-color: var(--primary-color);
    background-color: #e7f1ff;
    color: var(--primary-color);
}

/* Desktop Overrides */
@media (min-height: 600px) {
    body {
        align-items: center; /* Center vertically on taller screens */
    }
}

/* Display specific (Public TV) */
.display-mode {
    padding: 0;
    background-color: #000;
}

.display-mode .container {
    max-width: none;
    height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5vw;
}

.display-mode .big-number {
    font-size: 30vw;
    margin: 2vw 0;
}
