/* ==========================================================================
   STYLE SHEET FOR WIZARD VERSION 2 (SANTI & CAMILA'S FARM INVITATION)
   ========================================================================== */

/* DESIGN SYSTEM & GLOBAL VARIABLES */
:root {
    --bg-cream: #FAF6EE;
    --primary-green: #7E9A75;
    --primary-green-hover: #67835E;
    --dark-green: #4E6A45;
    --barn-red: #D36B5C;
    --barn-red-hover: #BA5648;
    --barn-red-light: #FBECEB;
    --wheat-yellow: #E8C07D;
    --sky-blue: #A9CBE2;
    --sky-blue-dark: #6C93AF;
    --sky-blue-light: #EBF3F8;
    --gold: #FFC048;
    --text-dark: #4A3E39;
    --text-muted: #7D6B63;
    --bg-card: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --card-shadow: 0 10px 30px rgba(126, 154, 117, 0.08);
    --hover-shadow: 0 15px 35px rgba(126, 154, 117, 0.15);
    --border-radius-lg: 28px;
    --border-radius-md: 18px;
    --border-radius-sm: 10px;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #E2ECE0;
    background-image: 
        radial-gradient(rgba(126, 154, 117, 0.15) 1.5px, transparent 1.5px),
        radial-gradient(rgba(126, 154, 117, 0.15) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* APP CONTAINER */
.app-container {
    width: 100%;
    max-width: 600px;
    background-color: var(--bg-cream);
    box-shadow: 0 25px 70px rgba(78, 106, 45, 0.22);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media (min-width: 600px) {
    .app-container {
        margin: 2rem 0;
        border-radius: 36px;
        min-height: 820px;
        height: 820px; /* Fixed height for premium app feel on desktop */
    }
}

/* FLOATING BUTTONS */
.floating-btn {
    position: fixed;
    z-index: 100;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-2px);
}

#music-toggle {
    right: 20px;
    bottom: 20px;
    background-color: var(--primary-green);
    color: white;
}

#music-toggle.playing {
    background-color: var(--barn-red);
}

.music-wave {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 10px;
    margin-left: 3px;
}

#music-toggle.playing .music-wave {
    display: flex;
}

#music-toggle.playing i {
    display: none;
}

.music-wave span {
    width: 2px;
    height: 100%;
    background-color: white;
    border-radius: 1px;
    animation: bounceWave 0.8s ease infinite alternate;
}

.music-wave span:nth-child(2) { animation-delay: 0.2s; }
.music-wave span:nth-child(3) { animation-delay: 0.4s; }

.papas-access {
    left: 20px;
    bottom: 20px;
    width: 80px;
    height: 36px;
    border-radius: 18px;
    background-color: var(--glass-bg);
    color: var(--text-dark);
    border: 1.5px solid var(--wheat-yellow);
    font-weight: 700;
    font-size: 0.8rem;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(125, 107, 99, 0.12);
}

.papas-access i {
    color: var(--barn-red);
    font-size: 0.8rem;
}

/* WIZARD TRACKER */
.wizard-progress-container {
    position: relative;
    width: 85%;
    margin: 1.5rem auto 0.5rem auto;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.progress-track-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    border-top: 3px dashed #C4D3BE;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-fill-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background-color: var(--primary-green);
    transform: translateY(-50%);
    z-index: 2;
    width: 0%;
    transition: var(--transition-smooth);
}

.tractor-progress {
    position: absolute;
    top: 10px; /* Aligned vertically */
    left: 0%;
    font-size: 1.5rem;
    z-index: 3;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-cream);
    border: 2.5px solid #C4D3BE;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 4;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.step-indicator.active {
    border-color: var(--primary-green);
    background-color: var(--primary-green);
    color: white;
    transform: scale(1.12);
    box-shadow: 0 4px 10px rgba(126, 154, 117, 0.2);
}

.step-indicator.completed {
    border-color: var(--primary-green);
    background-color: white;
    color: var(--primary-green);
}

/* SWITCH VERSION HEADER */
.version-switch-header {
    text-align: center;
    padding: 0.4rem;
    background-color: rgba(126, 154, 117, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
    border-bottom: 1.5px solid rgba(126, 154, 117, 0.12);
}

.switch-version-link {
    color: var(--dark-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.switch-version-link:hover {
    color: var(--primary-green);
    transform: translateY(-0.5px);
}

/* WIZARD STEPS BOX */
.wizard-steps-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.2rem;
    overflow-y: auto;
    position: relative;
}

.wizard-step {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

.wizard-step.active {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 1rem;
}

/* STEP 1: COVER PAGE / HERO */
.cover-titles {
    margin-top: 1rem;
    text-align: center;
    z-index: 5;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(126, 154, 117, 0.1);
    color: var(--dark-green);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 15px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(126, 154, 117, 0.18);
}

.cover-titles h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.3rem;
    color: var(--barn-red);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 85%;
    margin: 0 auto 0.8rem auto;
}

.celebrants-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.celebrant {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 8px 16px;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    border: 2px solid transparent;
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.celebrant small {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.santi-name {
    color: #C0701A;
    border-color: #F8E5CE;
    background-color: #FFF9F3;
}

.camila-name {
    color: var(--sky-blue-dark);
    border-color: #D3E7F4;
    background-color: #F4FAFD;
}

.and-symbol {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    color: var(--text-muted);
}

.start-instruction {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-bottom: 0.5rem;
}

/* COVER FARM ILLUSTRATION */
.cover-farm {
    position: relative;
    width: 100%;
    height: 165px;
    margin-top: 1rem;
    border-bottom: 6px solid var(--primary-green);
}

.windmill {
    position: absolute;
    bottom: 0;
    left: 4%;
    z-index: 2;
}

.windmill-blades {
    transform-origin: 60px 70px;
    animation: rotateWindmill 15s linear infinite;
}

.barn {
    position: absolute;
    bottom: 0;
    left: 36%;
    z-index: 3;
}

.barn-door-left, .barn-door-right {
    transform-origin: bottom;
    transition: var(--transition-smooth);
}

.barn:hover .barn-door-left { transform: skewY(-8deg) scaleX(0.2); }
.barn:hover .barn-door-right { transform: skewY(8deg) scaleX(0.2); }

.farm-animal {
    position: absolute;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animal-cow {
    bottom: -6px;
    left: 27%;
    animation: headBob 4s ease-in-out infinite alternate;
}

.animal-pig {
    bottom: -4px;
    left: 64%;
    animation: headBob 3.5s ease-in-out infinite alternate-reverse;
}

.farm-animal:hover {
    transform: translateY(-5px) scale(1.08);
}

/* Bubble comment */
.farm-animal .bubble {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background-color: var(--text-dark);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.farm-animal .bubble::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: var(--text-dark) transparent;
}

.farm-animal.active .bubble {
    transform: translateX(-50%) scale(1) translateY(-3px);
}

.sky-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.cloud { position: absolute; }
.cloud-1 { top: 15px; left: -80px; animation: floatCloud 30s linear infinite; }
.cloud-2 { top: 40px; right: -100px; animation: floatCloudReverse 38s linear infinite; }
.sun { position: absolute; top: 10px; right: 20px; }

/* STEP 2: WIZARD CARDS LAYOUT */
.wizard-cards-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.celebration-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 1.6rem;
    position: relative;
    box-shadow: var(--card-shadow);
    border: 1.5px solid transparent;
}

.santi-card { border-color: #F6E2CD; }
.camila-card { border-color: #DDEBF5; }

.card-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 5px 12px;
    border-radius: 15px;
    color: white;
    font-weight: 700;
    font-size: 0.78rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.cumplesanti { background-color: #E68A1E; }
.bautizocamila { background-color: var(--sky-blue-dark); }

.celebration-card h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.santi-card h2 { color: #8F4C08; }
.camila-card h2 { color: #2D5875; }

.card-quote {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.card-padrinos {
    background-color: var(--bg-cream);
    padding: 0.8rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(125, 107, 99, 0.06);
}

.card-padrinos h4 {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.padrinos-names {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
    font-weight: 600;
}

/* STEP 3: WIZARD ITINERARY */
.wizard-itinerary {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
    justify-content: center;
}

.itinerary-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1.5px solid rgba(126, 154, 117, 0.12);
}

.itinerary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem auto;
    font-size: 1.2rem;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(126, 154, 117, 0.1);
}

.card-church .itinerary-icon { color: var(--sky-blue-dark); background-color: var(--sky-blue-light); }
.card-reception .itinerary-icon { color: var(--barn-red); background-color: var(--barn-red-light); }

.itinerary-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.time-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--bg-cream);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 15px;
    margin-bottom: 0.5rem;
}

.place-name { font-weight: 700; font-size: 0.88rem; color: var(--text-dark); }
.place-address { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.8rem; }

/* STEP 4: WIZARD DETAILS & EXTRAS */
.wizard-countdown {
    margin: 1rem auto;
    width: 100%;
    max-width: 380px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.countdown-item {
    background-color: white;
    padding: 10px 5px;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(126, 154, 117, 0.12);
}

.time-num {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.time-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
}

.wizard-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    flex: 1;
    align-items: center;
}

.extra-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1.5px solid white;
}

.extra-item i { font-size: 1.2rem; color: var(--primary-green); margin-bottom: 0.4rem; }
.extra-item h4 { font-family: 'Fredoka', sans-serif; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 0.3rem; }
.extra-item p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }

/* STEP 5: WIZARD RSVP */
.wizard-rsvp-box {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 1.2rem;
    box-shadow: var(--card-shadow);
    border: 1.5px solid #EADBC8;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.wizard-rsvp-box .rsvp-intro {
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-muted);
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.2rem; }
.form-group label { font-size: 0.8rem; font-weight: 700; }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i { position: absolute; left: 12px; color: var(--text-muted); font-size: 0.85rem; }

.rsvp-form input[type="text"],
.rsvp-form input[type="tel"],
.rsvp-form textarea,
.papas-form input[type="password"] {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid #EADBC8;
    background-color: var(--bg-cream);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-smooth);
}

.rsvp-form textarea { padding-left: 32px; resize: none; }
.rsvp-form input:focus, .rsvp-form textarea:focus { border-color: var(--primary-green); background-color: white; }

.attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-attendance {
    padding: 8px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid #EADBC8;
    background-color: var(--bg-cream);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.btn-attendance.active { background-color: white; }
.btn-yes.active { border-color: var(--primary-green); background-color: #F3F8F2; color: var(--dark-green); }
.btn-no.active { border-color: var(--barn-red); background-color: var(--barn-red-light); color: var(--barn-red); }

#rsvp-details-container { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.3s ease-out; }
#rsvp-details-container.rsvp-details-expanded { max-height: 80px; opacity: 1; }
.form-row { display: flex; gap: 10px; }
.form-group.col { flex: 1; }

.number-counter { display: flex; align-items: center; border: 1.5px solid #EADBC8; border-radius: var(--border-radius-sm); background-color: var(--bg-cream); }
.counter-btn { width: 35px; height: 32px; border: none; background-color: transparent; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.number-counter input { flex: 1; width: 100%; height: 32px; border: none; background-color: transparent; text-align: center; font-size: 0.9rem; font-weight: 700; outline: none; }

.btn-submit-rsvp {
    background: linear-gradient(135deg, var(--barn-red) 0%, var(--barn-red-hover) 100%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(211, 107, 92, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-submit-rsvp:hover { transform: translateY(-1px); }

/* SUCCESS BOX */
.rsvp-success { text-align: center; padding: 1rem 0.5rem; }
.success-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.rsvp-success h3 { font-family: 'Fredoka', sans-serif; font-size: 1.3rem; color: var(--dark-green); margin-bottom: 0.4rem; }
.rsvp-success p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.2rem; }
#btn-edit-rsvp { padding: 8px 16px; border-radius: 15px; font-size: 0.78rem; }

/* WIZARD FOOTER (CONTROLS) */
.wizard-footer {
    display: flex;
    padding: 1rem 1.2rem;
    gap: 12px;
    background-color: white;
    border-top: 1.5px solid rgba(125, 107, 99, 0.08);
}

.wizard-nav-btn {
    flex: 1;
    font-size: 0.88rem;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

#btn-prev {
    background-color: transparent;
    border: 1.5px solid var(--text-muted);
    color: var(--text-muted);
}

#btn-prev:hover { background-color: var(--bg-cream); }

#btn-next {
    background-color: var(--primary-green);
    color: white;
}

#btn-next:hover { background-color: var(--primary-green-hover); }

/* BUTTONS BASE */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 0.88rem;
}

.btn-primary { background-color: var(--sky-blue-dark); color: white; }
.btn-primary:hover { filter: brightness(0.92); }
.btn-secondary { background-color: var(--barn-red); color: white; }
.btn-secondary:hover { background-color: var(--barn-red-hover); }
.btn-success { background-color: var(--primary-green); color: white; }
.btn-danger { background-color: #E25C5C; color: white; }
.btn-outline { background-color: transparent; border: 1.5px solid var(--text-muted); color: var(--text-muted); }
.btn-maps { width: 100%; }
.btn-block { width: 100%; }

/* PARENTS MODAL & DASHBOARD (SHARED STYLES) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 62, 57, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--glass-bg);
    border: 2px solid white;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.close-modal:hover { color: var(--barn-red); transform: rotate(90deg); }

.modal-view {
    padding: 1.8rem 1.5rem;
    overflow-y: auto;
    max-height: 88vh;
}

.auth-header { text-align: center; margin-bottom: 1.5rem; }
.auth-header .icon-circle {
    width: 50px;
    height: 50px;
    background-color: var(--barn-red-light);
    color: var(--barn-red);
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem auto;
    border: 2px solid white;
}

.auth-header h2 { font-family: 'Fredoka', sans-serif; font-size: 1.3rem; }
.auth-header p { font-size: 0.8rem; color: var(--text-muted); }

#papas-login-form { max-width: 280px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
#papas-password { text-align: center; padding-left: 12px !important; }
.error-msg { color: var(--barn-red); font-size: 0.78rem; font-weight: 700; text-align: center; margin-top: 4px; }

.dashboard-header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; border-bottom: 1.5px solid rgba(125, 107, 99, 0.08); padding-bottom: 0.8rem; }
@media (min-width: 480px) { .dashboard-header { flex-direction: row; align-items: center; justify-content: space-between; } }
.dashboard-header h2 { font-family: 'Fredoka', sans-serif; font-size: 1.3rem; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.btn-sm { padding: 4px 10px; font-size: 0.72rem; border-radius: 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 1rem; }
@media (min-width: 480px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background-color: white; padding: 10px 8px; border-radius: var(--border-radius-md); text-align: center; border: 1px solid rgba(125, 107, 99, 0.06); }
.card-stat-confirmed { background-color: #F1FAF0; border-color: #D3EFD1; }
.card-stat-declined { background-color: #FDF4F4; border-color: #F8DFDF; }
.stat-num { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.3rem; font-weight: 700; }
.card-stat-confirmed .stat-num { color: var(--dark-green); }
.card-stat-declined .stat-num { color: var(--barn-red); }
.stat-lbl { font-size: 0.68rem; color: var(--text-muted); font-weight: 700; }

.dashboard-table-container { background-color: white; border-radius: var(--border-radius-md); padding: 0.8rem; border: 1px solid rgba(125, 107, 99, 0.06); margin-bottom: 1rem; }
.table-filters { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
@media (min-width: 480px) { .table-filters { flex-direction: row; } }
.search-box { position: relative; flex: 1; display: flex; align-items: center; }
.search-box i { position: absolute; left: 10px; color: var(--text-muted); font-size: 0.75rem; }
.search-box input { width: 100%; padding: 6px 8px 6px 26px; border-radius: var(--border-radius-sm); border: 1.5px solid #EADBC8; background-color: var(--bg-cream); font-family: inherit; font-size: 0.8rem; outline: none; }
.filter-box select { padding: 6px 10px; border-radius: var(--border-radius-sm); border: 1.5px solid #EADBC8; background-color: var(--bg-cream); font-family: inherit; font-size: 0.8rem; outline: none; width: 100%; }

.table-scroll { overflow-x: auto; border-radius: var(--border-radius-sm); border: 1.5px solid var(--bg-cream); }
.guests-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; text-align: left; white-space: nowrap; }
.guests-table th { background-color: var(--bg-cream); padding: 8px 10px; font-weight: 700; }
.guests-table td { padding: 8px 10px; border-bottom: 1px solid rgba(125, 107, 99, 0.04); }
.guests-table tbody tr:hover { background-color: var(--bg-cream); }
.badge-table { display: inline-block; padding: 2px 6px; font-weight: 700; font-size: 0.68rem; border-radius: 8px; }
.badge-table-yes { background-color: #E2F2E0; color: var(--dark-green); }
.badge-table-no { background-color: var(--barn-red-light); color: var(--barn-red); }
.empty-row { text-align: center; color: var(--text-muted); }
.empty-row td { padding: 1.5rem 0; }
.btn-delete-row { background: none; border: none; color: var(--barn-red); cursor: pointer; font-size: 0.85rem; padding: 2px; }

.manual-rsvp-section { background-color: white; border-radius: var(--border-radius-md); padding: 1rem; border: 1.5px dashed var(--wheat-yellow); }
.manual-rsvp-section h3 { font-family: 'Fredoka', sans-serif; font-size: 0.9rem; margin-bottom: 0.6rem; }
.manual-rsvp-form { display: flex; flex-direction: column; gap: 6px; }
.manual-rsvp-form .form-row { flex-direction: column; gap: 6px; }
@media (min-width: 480px) {
    .manual-rsvp-form .form-row { flex-direction: row; align-items: center; }
    .col-2 { flex: 2; }
    .col-1 { flex: 1.2; }
    .col-counter { width: 45px; }
    .col-action { display: flex; align-items: center; }
}
.manual-rsvp-form input, .manual-rsvp-form select { width: 100%; padding: 6px; border-radius: var(--border-radius-sm); border: 1.5px solid #EADBC8; background-color: var(--bg-cream); font-family: inherit; font-size: 0.78rem; outline: none; }

/* CANVAS FOR CONFETTI */
.confetti-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 150; pointer-events: none; }

/* ==========================================================================
   ANIMATIONS & TRANSITIONS
   ========================================================================== */
@keyframes fadeSlideIn {
    0% { opacity: 0; transform: translateX(25px); }
    100% { opacity: 1; transform: translateX(0); }
}

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

@keyframes floatCloud {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(700px); }
}

@keyframes floatCloudReverse {
    0% { transform: translateX(100px); }
    100% { transform: translateX(-700px); }
}

@keyframes bounceWave {
    0% { height: 3px; }
    100% { height: 14px; }
}

@keyframes headBob {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(1deg); }
    100% { transform: translateY(1.5px) rotate(-1deg); }
}

.hidden { display: none !important; }

/* FLOATING VERSION SWITCHER SIDEBAR DOCK */
.version-sidebar-dock {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle-handle {
    display: none; /* Hidden on desktop */
}

.sidebar-wood-panel {
    background-image: 
        linear-gradient(180deg, #A26846 0%, #764326 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 15px);
    border: 3px solid #4D2812;
    border-radius: 20px;
    padding: 15px 10px;
    box-shadow: 
        0 10px 25px rgba(90, 51, 26, 0.35), 
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 170px;
    align-items: stretch;
}

.sidebar-header-title {
    color: var(--wheat-yellow, #E8C07D);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1.5px 2px rgba(0,0,0,0.5);
}

.sidebar-item {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background-color: var(--bg-cream, #FAF6EE);
    color: #764326;
    border-color: var(--wheat-yellow, #E8C07D);
    transform: translateX(4px);
}

.sidebar-item.active {
    background-color: var(--wheat-yellow, #E8C07D);
    color: #4D2812;
    border-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sidebar-icon {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

/* RESPONSIVE BREAKPOINT FOR SIDEBAR DOCK */
@media (max-width: 900px) {
    .version-sidebar-dock {
        left: -180px; /* Collapsed off-screen */
    }
    
    .version-sidebar-dock.open {
        left: 10px; /* Slide in on open */
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    }
    
    .sidebar-toggle-handle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: -42px; /* Positioned just outside the panel */
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 90px;
        background-color: #764326;
        color: white;
        border: 2px solid #4D2812;
        border-left: none;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        cursor: pointer;
        padding: 5px;
        gap: 4px;
        box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        transition: all 0.3s ease;
    }
    
    .sidebar-toggle-handle:hover {
        background-color: #8A4F2E;
    }
    
    .sidebar-toggle-handle i {
        font-size: 1rem;
        animation: pulseIcon 2.5s infinite;
    }
    
    .handle-text {
        font-size: 0.58rem;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* FARM THEMED DECORATIVE SVGS */
.farm-decor-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 1.2rem auto 0.2rem auto;
    width: 100%;
}

.farm-decor {
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.05));
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.farm-decor:hover {
    transform: scale(1.15) rotate(3deg);
    filter: drop-shadow(0 5px 10px rgba(126, 154, 117, 0.15));
}
