/**
 * ScoutScore - Main Stylesheet
 * Mobile-first, minimal, framework-free
 */

/* CSS Variables */
:root {
    --brand: #2F6D38;
    --brand-light: #4A8F54;
    --brand-dark: #1E4A25;
    --text: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f5f5f5;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --error: #d32f2f;
    --error-bg: #ffebee;
    --success: #388e3c;
    --success-bg: #e8f5e9;
    --warning: #f57c00;
    --warning-bg: #fff3e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: 0.2s ease;
    --touch-target: 48px;
}

/* Dark mode */
[data-theme="dark"] {
    --text: #e0e0e0;
    --text-light: #aaa;
    --text-muted: #777;
    --bg: #121212;
    --bg-white: #1e1e1e;
    --border: #333;
    --error: #ef5350;
    --error-bg: #3e1c1c;
    --success: #66bb6a;
    --success-bg: #1c3e1c;
    --warning: #ffb74d;
    --warning-bg: #3e2e1c;
    --shadow: 0 2px 8px rgba(0,0,0,0.4);
    color-scheme: dark;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* App container */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: var(--brand);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    padding: 8px 8px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    max-width: 800px;
    margin: 0 auto;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

header h1 {
    font-size: 1.125rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-target);
    height: var(--touch-target);
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.btn-icon:hover,
.btn-icon:focus {
    background: rgba(255,255,255,0.2);
}

/* Sync & Offline indicators */
.sync-indicator-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sync-indicator-header:active {
    opacity: 0.6;
}

.sync-indicator-header .sync-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.sync-indicator-header .sync-icon {
    opacity: 0.7;
}

#offline-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--error-bg);
    color: var(--error);
}

.sync-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--warning);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.screen {
    flex: 1;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hidden {
    display: none !important;
}

/* Typography */
h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    touch-action: manipulation;
}

.btn-primary {
    background: var(--brand);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-dark);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--border);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #b71c1c;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Yes/No buttons - special layout */
.yes-no-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.btn-yes {
    background: var(--success);
    color: white;
    font-size: 1.25rem;
    padding: 20px;
    min-height: 64px;
}

.btn-yes:hover,
.btn-yes:focus {
    background: #2e7d32;
}

.btn-no {
    background: var(--error);
    color: white;
    font-size: 1.25rem;
    padding: 20px;
    min-height: 64px;
}

.btn-no:hover,
.btn-no:focus {
    background: #c62828;
}

.btn-yes.selected,
.btn-no.selected {
    box-shadow: 0 0 0 4px rgba(0,0,0,0.3);
}

/* Mute non-selected buttons when a selection has been made */
.yes-no-buttons.has-selection .btn-yes:not(.selected),
.yes-no-buttons.has-selection .btn-no:not(.selected) {
    background: #bbb;
    opacity: 0.6;
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    /*display: block;*/
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: var(--touch-target);
    padding: 12px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--touch-target);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    background: var(--bg);
    border-radius: var(--radius);
}

.permission-matrix {
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px;
}

.permission-section {
    margin-bottom: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.permission-header {
    padding: 8px 12px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.permission-fields {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px 8px 40px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

/* Messages */
.error-message {
    padding: 12px;
    background: var(--error-bg);
    color: var(--error);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 500;
}

.success-message {
    padding: 12px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 500;
}

/* Lists */
.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list.single-column {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
}

.list-item:hover,
.list-item:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.list-item:active {
    transform: scale(0.98);
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-weight: 600;
    font-size: 1rem;
}

.list-item-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 2px;
	/*display: none;*/
}

.list-item-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--brand);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.list-item-badge.complete {
    background: var(--success);
}

.list-item-arrow {
    color: var(--text-muted);
    margin-left: 12px;
}

/* User group headers */
.user-section-header {
    background: var(--brand);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    margin: 0;
    border-radius: var(--radius);
}

.user-section-header:not(:first-child) {
    margin-top: 16px;
}

.user-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding: 8px 0;
}

.user-section-grid .list-item {
    min-height: 48px;
    padding: 12px;
}

/* User actions bar */
.user-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Group management */
.group-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 8px;
}

.group-manage-name {
    font-weight: 600;
    font-size: 1rem;
}

.form-inline {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.form-inline .form-input {
    flex: 1;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-height: auto;
}

/* Login screen */
.login-container {
    max-width: 360px;
    margin: 0 auto;
    padding: 32px 16px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img {
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 24px;
}

/* Question screen */
#screen-question {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.question-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.question-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.progress-bar {
    flex: 1;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--error);
    transition: width 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border-radius: 12px;
}

.progress-text-inner {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    padding: 0 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.progress-check {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
    flex-shrink: 0;
    margin-left: 8px;
}

.question-area {
    display: inline-block;
    padding: 10px 20px;
    background: var(--brand-light);
    color: white;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.question-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    overflow-y: auto;
    min-height: 0;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.question-input {
    margin-bottom: 12px;
    flex-shrink: 0;
}

/* Time input */
.time-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 2rem;
}

.time-input {
    width: 110px;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text);
}

.time-input:focus {
    outline: none;
    border-color: var(--brand);
}

.time-separator {
    font-weight: 600;
    color: var(--text-light);
}

/* Points input */
.points-input-container {
    display: flex;
    justify-content: center;
}

.points-input {
    width: 120px;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text);
}

.points-input:focus {
    outline: none;
    border-color: var(--brand);
}

/* TimePoints combined */
.timepoints-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.timepoints-label {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* DateTime input */
.datetime-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.datetime-display {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--brand);
    background: var(--bg-white);
    padding: 16px 24px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    text-align: center;
}

.datetime-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.datetime-update-btn {
    margin-top: 4px;
}

/* Slider input */
.slider-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}

.slider-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand);
}

.slider-input {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 4px;
    outline: none;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow);
}

.slider-input::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* PointsComment input */
.points-comment-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.comment-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text);
    resize: vertical;
    min-height: 80px;
}

.comment-input:focus {
    outline: none;
    border-color: var(--brand);
}

/* TimeSingle input */
.time-single-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.time-single-input {
    width: 160px;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text);
}

.time-single-input:focus {
    outline: none;
    border-color: var(--brand);
}

.time-single-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* DateTimeEdit input */
.datetime-edit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.datetime-edit-fields {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.datetime-edit-fields input {
    padding: 10px 12px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text);
}

.datetime-edit-fields input:focus {
    outline: none;
    border-color: var(--brand);
}

.datetime-edit-buttons {
    display: flex;
    gap: 8px;
}

/* Question navigation */
.question-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-shrink: 0;
    padding-bottom: 4px;
}

/* Menu */
.menu-user {
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    text-align: center;
}

.menu-user-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.menu-user-role {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 4px;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    padding: 12px 16px;
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition);
    text-align: left;
    width: 100%;
}

.menu-item:hover,
.menu-item:focus {
    background: var(--bg);
}

.menu-item svg {
    flex-shrink: 0;
    color: var(--brand);
}

.menu-item-danger {
    color: var(--error);
}

.menu-item-danger svg {
    color: var(--error);
}

.menu-divider {
    padding: 16px 16px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Reload screen */
.reload-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.reload-actions .btn {
    margin-bottom: 8px;
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 24px;
}

#reload-result {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
}

/* Reset link */
.reset-link-input {
    font-family: monospace;
    font-size: 0.875rem;
}

#reset-link-container {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
}

/* Loading overlay */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Dialog */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}

.dialog-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.dialog-content h3 {
    margin-bottom: 16px;
}

.dialog-content p {
    margin-bottom: 24px;
    color: var(--text-light);
}

.dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Distribute screen */
.distribute-container {
    padding: 16px;
}

.distribute-counter {
    text-align: center;
    font-size: 1.2rem;
    padding: 12px;
    margin-bottom: 16px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 2px solid var(--border);
}

.distribute-remaining {
    font-weight: 700;
    font-size: 1.4rem;
}

.distribute-remaining.over {
    color: var(--error);
}

.distribute-remaining.exact {
    color: var(--success);
}

.distribute-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.distribute-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.distribute-item-name {
    font-weight: 600;
}

.distribute-item-id {
    font-size: 0.8rem;
    color: var(--text-light);
}

.distribute-item-info {
    flex: 1;
    min-width: 0;
}

.distribute-item-controls {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.distribute-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--brand);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.distribute-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.distribute-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.distribute-btn:active {
    opacity: 0.7;
}

.distribute-value {
    width: 48px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--bg-white);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    color: var(--text);
    user-select: none;
}

.distribute-actions {
    padding-top: 8px;
}

/* Toast notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1001;
    pointer-events: none;
}

.toast {
    padding: 16px;
    background: var(--text);
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: slideUp 0.3s ease;
    pointer-events: auto;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (min-width: 768px) {
    .screen {
        padding: 24px;
        max-width: 800px;
        margin: 0 auto;
        width: 100%;
    }
    
    .question-text {
        font-size: 2rem;
    }
    
    .list:not(.single-column) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .list:not(.single-column) .list-item {
        min-height: 80px;
    }
}

@media (min-width: 1024px) {
    .list:not(.single-column) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print styles */
@media print {
    header, #sync-indicator, #offline-indicator, .question-nav {
        display: none !important;
    }
}
