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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: white;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.main-content {
    padding: 20px;
}

.screen {
    display: block;
}

.screen.hidden {
    display: none;
}

/* Loading */
.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 50px auto;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-screen p {
    text-align: center;
    color: #666;
}

/* Buttons */
.back-button,
.reset-button,
.refresh-button {
    background: #f0f0f0;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.back-button:hover,
.reset-button:hover,
.refresh-button:hover {
    background: #e0e0e0;
}

.primary-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.primary-button:active {
    transform: translateY(0);
}

/* Selection Lists */
h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-text {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.selection-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selection-item {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.selection-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(5px);
}

.selection-item h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.selection-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Ride Selection */
.ride-selection-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ride-item {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.ride-item.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.ride-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #667eea;
}

.ride-info {
    flex: 1;
}

.ride-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ride-wait-time {
    font-size: 0.9rem;
    color: #666;
}

.wait-time-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.wait-time-badge.closed {
    background: #ffebee;
    color: #c62828;
}

.wait-time-badge.short {
    background: #e8f5e9;
    color: #2e7d32;
}

.wait-time-badge.medium {
    background: #fff3e0;
    color: #ef6c00;
}

.wait-time-badge.long {
    background: #ffebee;
    color: #c62828;
}

/* Wait Times Display */
.park-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.park-info h2 {
    margin: 0;
    flex: 1;
}

.refresh-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.wait-times-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wait-time-item {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.wait-time-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ride-name-display {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.wait-time-display {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
}

.wait-time-display.closed {
    background: #ffebee;
    color: #c62828;
}

.wait-time-display.short {
    background: #e8f5e9;
    color: #2e7d32;
}

.wait-time-display.medium {
    background: #fff3e0;
    color: #ef6c00;
}

.wait-time-display.long {
    background: #ffebee;
    color: #c62828;
}

/* Error Screen */
.error-content {
    text-align: center;
    padding: 40px 20px;
}

.error-content h2 {
    color: #c62828;
    margin-bottom: 15px;
}

.error-content p {
    color: #666;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .park-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wait-time-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
