:root {
    /* Magical Disney Theme Colors */
    --primary-bg: #f0f4f8;
    --magical-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --accent-color: #ff0080; /* A magical pink pop */
    --text-high-contrast: #000000; /* STRICT REQUIREMENT: BLACK TEXT */
    
    /* Spacing & Layout */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --border-radius: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--primary-bg);
    margin: 0;
    padding: 0;
    color: var(--text-high-contrast);
    /* "Text all BLACK high contrast letters and larger font" */
    font-size: 18px; 
    line-height: 1.6;
}

/* Typography Overrides for High Contrast */
h1, h2, h3, h4, h5, h6, p, span, div, label, input, select, button {
    color: #000000 !important;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: var(--magical-gradient);
    padding: var(--spacing-lg);
    text-align: center;
    color: white !important; /* Exception for Header Title background contrast */
}

header h1 {
    color: white !important;
    margin: 0;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-btn {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    background: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom-color: var(--accent-color);
    background-color: #f8f9fa;
    color: var(--accent-color) !important;
}

/* Content Areas */
.tab-content {
    display: none;
    padding: var(--spacing-lg);
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
    margin-bottom: var(--spacing-lg);
    background: #f8f9fa;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.section h2 {
    margin-top: 0;
    border-bottom: 2px solid #ddd;
    padding-bottom: var(--spacing-sm);
    font-size: 22px;
}

/* Inputs */
.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    vertical-align: middle;
}

/* Buttons */
.btn-primary {
    background: var(--magical-gradient);
    color: white !important;
    border: none;
    padding: 16px 32px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-md);
    font-size: 18px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f1f1f1;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Progress Bar */
.progress-container {
    margin: 20px 0;
    text-align: center;
    display: none; /* Hidden by default */
}

.progress-bar-bg {
    background: #eee;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--magical-gradient);
    width: 0%;
    transition: width 0.1s linear;
}

/* QR Code */
#qrcode {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Responsive Grid for Parks */
.park-day-config {
    background: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.ride-list {
    margin-left: 20px;
    margin-top: 5px;
}
