:root { --disney-blue: #002244; --disney-gold: #D4AF37; --disney-magic: #6a11cb; --bg-color: #f0f2f5; --nav-height: 70px; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--bg-color); color: #333; margin: 0; padding: 0; }

.stale-banner { position: sticky; top: 0; z-index: 2000; background: #c62828; color: #fff; font-weight: 800; text-align: center; padding: 10px 12px; font-size: 0.9em; letter-spacing: 0.3px; }

/* Auth screen */
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--disney-blue), var(--disney-magic)); padding: 20px; }
.auth-card { background: #fff; border-radius: 16px; padding: 30px; max-width: 420px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.auth-title { font-family: 'Cinzel', serif; color: var(--disney-blue); text-align: center; margin: 0 0 4px 0; }
.auth-subtitle { text-align: center; color: #777; margin: 0 0 20px 0; font-size: 0.9em; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tab-btn { flex: 1; padding: 10px; border-radius: 8px; border: 2px solid var(--disney-blue); background: #fff; color: var(--disney-blue); font-weight: bold; cursor: pointer; }
.auth-tab-btn.active { background: var(--disney-blue); color: #fff; }
.auth-tab-content { display: none; }
.auth-tab-content.active { display: block; }
.auth-tab-content label { display: block; font-weight: bold; font-size: 0.85em; margin: 12px 0 4px; color: #555; }
.auth-tab-content .hint { font-weight: normal; color: #999; }
.auth-error { color: #c62828; font-size: 0.85em; margin-top: 8px; min-height: 1em; }

.role-badge { position: absolute; top: 10px; right: 15px; background: rgba(255,255,255,0.15); color: #fff; font-size: 0.75em; padding: 3px 10px; border-radius: 12px; font-weight: bold; }

header { background: linear-gradient(135deg, var(--disney-blue), var(--disney-magic)); color: white; padding: 20px 20px; text-align: center; border-bottom: 5px solid var(--disney-gold); position: relative; }
header h1 { font-family: 'Cinzel', serif; margin: 0; font-size: 2em; }
header p { margin: 5px 0 0 0; font-size: 0.9em; opacity: 0.9;}

.container { max-width: 1100px; margin: 15px auto; padding: 0 15px; }
.card { background: white; border-radius: 12px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); overflow: hidden; }
.section-header { background: var(--disney-blue); color: white; padding: 15px 20px; font-size: 1.3em; font-weight: bold; }

.app-nav { position: fixed; display: flex; justify-content: space-around; background: rgba(0, 34, 68, 0.98); backdrop-filter: blur(10px); z-index: 1000; box-shadow: 0 0 15px rgba(0,0,0,0.3); }
.app-nav-item { color: #8ba1b5; text-decoration: none; font-size: 0.62em; font-weight: bold; padding: 8px 2px; text-align: center; flex: 1; cursor: pointer; transition: 0.2s; user-select: none; }
.app-nav-item span { display: block; font-size: 1.5em; margin-bottom: 3px; }

@media (max-width: 767px) {
    .app-nav { bottom: 0; left: 0; right: 0; border-top: 2px solid var(--disney-gold); padding-bottom: env(safe-area-inset-bottom); height: var(--nav-height);}
    .main-app { padding-bottom: calc(var(--nav-height) + 20px); }
    .app-nav-item.active { color: var(--disney-gold); border-top: 3px solid var(--disney-gold); margin-top: -2px;}
}
@media (min-width: 768px) {
    .app-nav { top: 0; left: 0; right: 0; border-bottom: 2px solid var(--disney-gold); height: var(--nav-height);}
    header { margin-top: var(--nav-height); }
    .app-nav-item.active { color: var(--disney-gold); border-bottom: 3px solid var(--disney-gold); margin-bottom: -2px;}
}

.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.quick-action-bar { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 5px; }
.quick-btn { flex: 1; min-width: 110px; background: white; border: 2px solid var(--disney-gold); color: var(--disney-blue); font-weight: bold; text-align: center; padding: 12px 10px; border-radius: 8px; text-decoration: none; font-size: 0.9em; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; gap: 5px;}
.quick-btn span { font-size: 1.5em; }

details.park-collapse > summary { outline: none; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.park-collapse > summary::-webkit-details-marker { display: none; }
details.park-collapse > summary::after { content: '▼'; font-size: 0.9em; transition: 0.3s; }
details.park-collapse[open] > summary::after { transform: rotate(180deg); }

.sub-header { font-weight: bold; font-size: 1.1em; padding: 10px 20px; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; }
.plan-day { padding: 20px; border-bottom: 4px solid var(--bg-color); position: relative; }
.plan-day:last-child { border-bottom: none; }
.date-label { font-weight: 700; color: var(--disney-magic); font-size: 1.25em; display: block; margin-bottom: 5px; }
.plan-subtitle { font-weight: bold; color: #555; margin-bottom: 10px; font-size: 1.05em;}

.party-warning { background:#fff3e0; border:2px solid #e65100; color:#bf360c; padding:12px 15px; border-radius:8px; margin-bottom:12px; font-weight:700; font-size:0.95em; }
.party-warning .party-sub { font-weight: 500; font-size: 0.9em; margin-top: 4px; }

.status-banner { font-size: 0.85em; font-weight: bold; padding: 4px 8px; border-radius: 4px; margin-bottom: 6px; display: inline-block; }
.status-refurb { background: #eeeeee; color: #616161; border: 1px dashed #9e9e9e; }
.status-closing, .status-closed { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.status-seasonal { background: #e1f5fe; color: #0277bd; border: 1px solid #81d4fa; }

.checklist-wrapper { display: flex; flex-direction: column; gap: 15px; }
.checklist-container { background: #fbfdfc; border: 1px solid #ddd; border-radius: 8px; padding: 0; overflow: hidden;}
.checklist-title { font-weight: 700; color: var(--disney-blue); background: #eee; padding: 8px 15px; font-size: 1.05em; border-bottom: 1px solid #ddd;}
.check-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 15px; border-bottom: 1px solid #eee;}
.check-item:last-child { border-bottom: none; }
.check-item-left { display: flex; align-items: flex-start; gap: 12px; flex-grow: 1;}
.check-item input[type="checkbox"] { transform: scale(1.4); accent-color: #2e7d32; cursor: pointer; margin-top: 4px;}
.check-item.ridden { background: #f8f9fa; opacity: 0.6; }
.check-item.ridden .item-name-bold { text-decoration: line-through; color: #999 !important; }

.item-name-col { display: flex; flex-direction: column; gap: 4px; width: 100%;}
.item-name-bold { font-size: 1.1em; font-weight: bold; color: var(--disney-blue); display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;}
.item-desc { font-size: 0.85em; color: #555; line-height: 1.4; margin-top: 2px;}

.rider-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e0e0e0;}
.rider-oval { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 15px; font-size: 0.75em; font-weight: bold; cursor: pointer; border: 1px solid #ccc; background: #fff; }
.rider-oval.state-0 { color: #666; } .rider-oval.state-1 { background: #e8f5e9; border-color: #81c784; color: #1b5e20; } .rider-oval.state-2 { background: #ffebee; border-color: #e57373; color: #c62828; text-decoration: line-through; opacity: 0.7;}
.rider-oval.state-restricted { background: #eeeeee; color: #9e9e9e; text-decoration: line-through; cursor: not-allowed; border-color: #e0e0e0; }

.tag-container { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px;}
.tag { font-size: 0.75em; font-weight: 600; padding: 2px 8px; border-radius: 12px; white-space: nowrap;}
.tag.height { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9;}
.ll-tag { font-size: 0.75em; font-weight: 800; color: #e65100; background: #fff3e0; border: 1px solid #ffe082; padding: 3px 6px; border-radius: 12px; white-space: nowrap;}
.tag.uncertain { background: #fff8e1; color: #8d6e00; border: 1px dashed #d4a017; }

.item-card { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; flex-direction: column; gap: 8px;}
.item-card:nth-child(even) { background-color: #fafafa; }
.ranking-zone { background: #fff; border: 1px solid #ddd; padding: 10px; border-radius: 8px; display: flex; align-items: center; gap: 15px; margin-top: 5px; flex-wrap: wrap;}
input[type="range"] { flex-grow: 1; height: 6px; cursor: pointer; min-width: 100px; }

.hide-btn { background: transparent; color: #757575; border: 1px solid #bdbdbd; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8em; font-weight: bold; margin-left: auto;}
.hide-btn:hover { background: #ffebee; color: #c62828; border-color: #ef9a9a; }
.unhide-btn { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8em; font-weight: bold; margin-left: auto;}

.configurator { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 2px solid var(--disney-magic); margin-bottom:20px;}
.config-header { font-size: 1.2em; font-weight: bold; color: var(--disney-magic); margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center;}
.config-row { display: flex; gap: 10px; align-items: center; background: #f8f9fa; padding: 10px; border-radius: 6px; margin-bottom: 10px; flex-wrap: wrap; border: 1px solid #eee;}
.config-btn { background: var(--disney-blue); color: white; border: none; padding: 10px 15px; border-radius: 6px; cursor: pointer; font-weight: bold; width:100%;}
.config-remove { background: #c62828; color: white; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8em; }
.input-box { padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
.full-width { width: 100%; }
.full-label { width:100%; font-weight:bold; color:#555; }
.muted { font-size:0.9em; color:#666; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.filter-chip { background: #fff; border: 2px solid #ccc; color: #555; padding: 6px 14px; border-radius: 20px; font-size: 0.85em; font-weight: bold; cursor: pointer; }
.filter-chip.active { background: var(--disney-blue); border-color: var(--disney-blue); color: #fff; }

.dining-alert { background:#fff3e0; border:1px solid #ffe082; padding:15px; border-radius:6px; color:#e65100; font-size:0.95em; margin-bottom:15px; }
.transit-result { padding:15px; background:#e0f2fe; border-radius:8px; border:1px solid #bae6fd; font-weight:bold; color:#0369a1; }
