/* ==========================================================================
   STYLE SHEET FOR SANTI & CAMILA'S VIRTUAL 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 12px 35px rgba(126, 154, 117, 0.12);
    --hover-shadow: 0 20px 45px rgba(126, 154, 117, 0.2);
    --border-radius-lg: 32px;
    --border-radius-md: 20px;
    --border-radius-sm: 12px;
    --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; /* Soft pasture green outside container */
    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.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

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

@media (min-width: 650px) {
    .app-container {
        margin: 2.5rem 0;
        border-radius: 40px;
        min-height: calc(100vh - 5rem);
    }
}

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

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

#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: 2.5px;
    height: 12px;
    margin-left: 4px;
}

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

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

.music-wave span {
    width: 2.5px;
    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: 85px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--glass-bg);
    color: var(--text-dark);
    border: 1.5px solid var(--wheat-yellow);
    font-weight: 700;
    font-size: 0.85rem;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(125, 107, 99, 0.15);
}

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

/* HERO SECTION & FOLIAGE BACKGROUND */
.hero-section {
    padding: 3rem 1.5rem 2rem 1.5rem;
    background: linear-gradient(180deg, #D4EDFA 0%, #FAF6EE 90%);
    position: relative;
    text-align: center;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
}

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

.cloud {
    position: absolute;
}

.cloud-1 {
    top: 25px;
    left: -100px;
    animation: floatCloud 35s linear infinite;
}

.cloud-2 {
    top: 60px;
    right: -120px;
    animation: floatCloudReverse 45s linear infinite;
}

.sun {
    position: absolute;
    top: 15px;
    right: 25px;
    animation: rotateSun 30s linear infinite;
}

/* FARM INTERACTIVE ILLUSTRATION */
.farm-banner {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 1rem;
    border-bottom: 8px solid var(--primary-green);
    background-image: linear-gradient(180deg, transparent 70%, rgba(126, 154, 117, 0.1) 100%);
}

.windmill {
    position: absolute;
    bottom: 0;
    left: 5%;
    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);
}

.stable {
    position: absolute;
    bottom: 0;
    right: 3%;
    z-index: 2;
}

/* ANIMAL ANIMATIONS */
.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: -8px;
    left: 27%;
    animation: headBob 4s ease-in-out infinite alternate;
}

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

.animal-sheep {
    bottom: -6px;
    right: 18%;
    animation: sheepBob 5s ease-in-out infinite alternate;
}

.farm-animal:hover {
    transform: translateY(-8px) scale(1.1);
}

/* Bubble comment on click */
.farm-animal .bubble {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background-color: var(--text-dark);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px 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: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: var(--text-dark) transparent;
}

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

/* HERO TITLES */
.hero-titles {
    margin-top: 1.5rem;
    position: relative;
    z-index: 5;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(126, 154, 117, 0.12);
    color: var(--dark-green);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(126, 154, 117, 0.2);
}

.hero-titles h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.8rem;
    color: var(--barn-red);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 1px 2px 0px rgba(255,255,255,0.8);
}

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

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

.celebrant {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    padding: 10px 20px;
    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;
    transition: var(--transition-smooth);
}

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

.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.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* COUNTDOWN STYLES */
.countdown-section {
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: white;
    margin: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    border: 1.5px dashed var(--primary-green);
}

.countdown-section h3 {
    font-size: 1rem;
    color: var(--dark-green);
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.countdown-item {
    background-color: var(--bg-cream);
    padding: 12px 5px;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(126, 154, 117, 0.15);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

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

.time-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 4px;
}

/* DOUBLE CELEBRATION CARDS */
.content-section {
    padding: 0 1.5rem 3rem 1.5rem;
}

.celebration-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

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

.celebration-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.santi-card {
    border-color: #F6E2CD;
    background: linear-gradient(135deg, #FFFFFF 60%, #FFFDF8 100%);
}

.camila-card {
    border-color: #DDEBF5;
    background: linear-gradient(135deg, #FFFFFF 60%, #F9FCFF 100%);
}

.card-badge {
    position: absolute;
    top: -15px;
    left: 24px;
    padding: 6px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cumplesanti {
    background-color: #E68A1E;
}

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

.celebration-card h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

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

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

.card-padrinos h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

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

.text-gold { color: var(--gold); margin-right: 5px; }
.text-blue { color: var(--sky-blue-dark); margin-right: 5px; }

/* ITINERARY & LOCATIONS SECTION */
.itinerary-section {
    margin-bottom: 3rem;
}

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

.itinerary-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.itinerary-card:hover {
    box-shadow: var(--hover-shadow);
}

.itinerary-icon {
    width: 65px;
    height: 65px;
    background-color: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -50px auto 1rem auto;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(126, 154, 117, 0.15);
    border: 3px solid white;
}

.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.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.time-badge {
    display: inline-block;
    padding: 4px 14px;
    background-color: var(--bg-cream);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid rgba(125, 107, 99, 0.08);
}

.time-badge i {
    margin-right: 5px;
    color: var(--primary-green);
}

.place-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.place-address {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding: 0 10px;
}

.place-address i {
    color: var(--barn-red);
    margin-right: 3px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-color: var(--sky-blue-dark);
    color: white;
}

.btn-primary:hover {
    background-color: var(--sky-blue-dark);
    filter: brightness(0.92);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--barn-red);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--barn-red-hover);
    transform: translateY(-2px);
}

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

.btn-success:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #E25C5C;
    color: white;
}

.btn-danger:hover {
    background-color: #D04B4B;
}

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

.btn-outline:hover {
    background-color: var(--bg-cream);
}

.btn-maps {
    width: 100%;
    max-width: 250px;
}

.btn-block {
    width: 100%;
}

/* EXTRAS / IMPORTANT BULLETS */
.extras-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.extra-item {
    background-color: var(--glass-bg);
    border-radius: var(--border-radius-md);
    padding: 1.2rem;
    text-align: center;
    border: 1.5px solid white;
    box-shadow: 0 6px 20px rgba(126, 154, 117, 0.06);
}

.extra-item i {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 0.6rem;
}

.extra-item h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.extra-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* RSVP SECTION & BOX */
.rsvp-section {
    margin-top: 1rem;
}

.rsvp-box {
    background-color: white;
    border-radius: 36px;
    padding: 2.5rem 1.8rem;
    box-shadow: var(--card-shadow);
    border: 2px solid #EADBC8;
    position: relative;
    overflow: hidden;
}

.rsvp-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--wheat-yellow) 0%, var(--primary-green) 50%, var(--sky-blue) 100%);
}

.rsvp-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rsvp-ribbon {
    font-family: 'Fredoka', sans-serif;
    display: inline-block;
    padding: 8px 24px;
    background-color: var(--barn-red-light);
    color: var(--barn-red);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(211, 107, 92, 0.08);
}

.rsvp-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 90%;
    margin: 0 auto;
}

/* FORM ELEMENTS */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.rsvp-form textarea {
    padding-left: 42px;
    resize: none;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
    border-color: var(--primary-green);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(126, 154, 117, 0.15);
}

/* ATTENDANCE SWITCH BUTTONS */
.attendance-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2px;
}

.btn-attendance {
    padding: 14px;
    border-radius: var(--border-radius-sm);
    border: 2px solid #EADBC8;
    background-color: var(--bg-cream);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-attendance:hover {
    background-color: white;
    border-color: var(--primary-green);
}

.btn-attendance.active {
    background-color: white;
}

.btn-yes.active {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(126, 154, 117, 0.15);
    background-color: #F3F8F2;
    color: var(--dark-green);
}

.btn-no.active {
    border-color: var(--barn-red);
    box-shadow: 0 0 0 4px rgba(211, 107, 92, 0.15);
    background-color: var(--barn-red-light);
    color: var(--barn-red);
}

.btn-emoji {
    font-size: 1.1rem;
}

/* COLLAPSIBLE DETAILS FOR ATTENDING */
#rsvp-details-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-out;
}

#rsvp-details-container.rsvp-details-expanded {
    max-height: 120px;
    opacity: 1;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.col {
    flex: 1;
}

/* NUMBER COUNTER (FOR GUESTS) */
.number-counter {
    display: flex;
    align-items: center;
    border: 1.5px solid #EADBC8;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-cream);
    overflow: hidden;
}

.counter-btn {
    width: 45px;
    height: 42px;
    border: none;
    background-color: transparent;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.counter-btn:hover {
    background-color: rgba(234, 219, 200, 0.4);
}

.number-counter input {
    flex: 1;
    width: 100%;
    height: 42px;
    border: none;
    background-color: transparent;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    outline: none;
    -moz-appearance: textfield;
}

.number-counter input::-webkit-outer-spin-button,
.number-counter input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* SUBMIT RSVP BUTTON */
.btn-submit-rsvp {
    background: linear-gradient(135deg, var(--barn-red) 0%, var(--barn-red-hover) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(211, 107, 92, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
}

.btn-submit-rsvp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(211, 107, 92, 0.35);
}

.btn-submit-rsvp:active {
    transform: scale(0.98);
}

.btn-submit-rsvp .btn-icon {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.btn-submit-rsvp:hover .btn-icon {
    transform: translateX(4px) rotate(-10deg);
}

/* RSVP SUCCESS BOX */
.rsvp-success {
    text-align: center;
    padding: 2rem 1rem;
    animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rsvp-success.hidden {
    display: none;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    animation: bounceIcon 0.8s ease infinite alternate;
}

.rsvp-success h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: var(--dark-green);
    margin-bottom: 0.6rem;
}

.rsvp-success p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    padding: 0 10px;
}

#btn-edit-rsvp {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* MODAL & BLUR BACKGROUND */
.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;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: var(--glass-bg);
    border: 2px solid white;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: modalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    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: 2.2rem 1.8rem;
    overflow-y: auto;
    max-height: 88vh;
}

.modal-view.hidden {
    display: none;
}

/* PAPAS AUTH FORM */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--barn-red-light);
    color: var(--barn-red);
    font-size: 1.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    border: 2.5px solid white;
    box-shadow: 0 4px 10px rgba(211, 107, 92, 0.1);
}

.auth-header h2 {
    font-family: 'Fredoka', sans-serif;
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 10px;
}

#papas-login-form {
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#papas-password {
    text-align: center;
    padding-left: 15px !important;
}

.error-msg {
    color: var(--barn-red);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    margin-top: 5px;
}

.error-msg.hidden {
    display: none;
}

/* PAPAS DASHBOARD VIEW */
.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid rgba(125, 107, 99, 0.1);
    padding-bottom: 1rem;
}

@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.5rem;
    color: var(--text-dark);
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 15px;
}

/* STATS CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background-color: white;
    padding: 12px 10px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: 0 4px 12px rgba(125, 107, 99, 0.05);
    border: 1px solid rgba(125, 107, 99, 0.08);
}

.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.6rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
}

.card-stat-confirmed .stat-num { color: var(--dark-green); }
.card-stat-declined .stat-num { color: var(--barn-red); }

.stat-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* TABLE FILTERS & SEARCH */
.dashboard-table-container {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 1rem;
    border: 1px solid rgba(125, 107, 99, 0.08);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(125, 107, 99, 0.03);
}

.table-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

@media (min-width: 480px) {
    .table-filters {
        flex-direction: row;
        align-items: center;
    }
}

.search-box {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.search-box input {
    width: 100%;
    padding: 8px 10px 8px 30px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid #EADBC8;
    background-color: var(--bg-cream);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    background-color: white;
    border-color: var(--primary-green);
}

.filter-box select {
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid #EADBC8;
    background-color: var(--bg-cream);
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
    width: 100%;
}

/* DATA TABLE */
.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.82rem;
    text-align: left;
    white-space: nowrap;
}

.guests-table th {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    padding: 10px 12px;
    font-weight: 700;
    border-bottom: 2px solid rgba(125, 107, 99, 0.08);
}

.guests-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(125, 107, 99, 0.05);
    color: var(--text-dark);
}

.guests-table tbody tr:hover {
    background-color: var(--bg-cream);
}

.badge-table {
    display: inline-block;
    padding: 3px 8px;
    font-weight: 700;
    font-size: 0.72rem;
    border-radius: 10px;
}

.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: 2rem 0;
}

.btn-delete-row {
    background: none;
    border: none;
    color: var(--barn-red);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    transition: var(--transition-smooth);
}

.btn-delete-row:hover {
    transform: scale(1.2);
    color: #FF0000;
}

/* MANUAL RSVP FORM IN DASHBOARD */
.manual-rsvp-section {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 1.2rem;
    border: 1.5px dashed var(--wheat-yellow);
}

.manual-rsvp-section h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.manual-rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manual-rsvp-form .form-row {
    flex-direction: column;
    gap: 8px;
}

@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: 50px; }
    .col-action { display: flex; align-items: center; }
}

.manual-rsvp-form input,
.manual-rsvp-form select {
    width: 100%;
    padding: 7px 10px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid #EADBC8;
    background-color: var(--bg-cream);
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
}

.manual-rsvp-form input:focus {
    background-color: white;
    border-color: var(--primary-green);
}

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

/* FOOTER STYLES */
.app-footer {
    background-color: var(--dark-green);
    color: #E2ECE0;
    text-align: center;
    padding: 3rem 1.5rem;
    margin-top: auto;
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
    position: relative;
}

.footer-decorations {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    letter-spacing: 4px;
}

.app-footer p {
    font-size: 0.85rem;
    font-weight: 700;
}

.app-footer .copyright {
    font-size: 0.72rem;
    color: #A3B899;
    margin-top: 1rem;
    font-weight: 500;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

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

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

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

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

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

@keyframes sheepBob {
    0% { transform: translateY(0) rotate(0deg) scaleX(1); }
    33% { transform: translateY(-3px) rotate(-1deg) scaleX(1.02); }
    66% { transform: translateY(2px) rotate(1deg) scaleX(0.98); }
    100% { transform: translateY(0) rotate(0deg) scaleX(1); }
}

@keyframes bounceIcon {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-8px) scale(1.08); }
}

@keyframes scaleUp {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes modalSlide {
    0% { transform: translateY(30px) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.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));
}
