/* ==========================================================================
   CSS Variables & Design System - Cute White Wedding Theme
   ========================================================================== */
:root {
    --primary-gold: #cfa867;
    --primary-gold-rgb: 207, 168, 103;
    --accent-pink: #fbc4b6;
    --accent-rose: #e59f91;
    --bg-light: #faf7f2;
    --bg-white: #ffffff;
    
    --text-dark: #4a3e3d;
    --text-muted: #8a7b78;
    --text-light: #faf7f2;
    
    --success: #7bc676;
    --danger: #e07a5f;
    --danger-light: rgba(224, 122, 95, 0.08);
    --success-light: rgba(123, 198, 118, 0.08);
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(207, 168, 103, 0.15);
    --glass-border-hover: rgba(207, 168, 103, 0.3);
    --glass-shadow: 0 8px 30px rgba(189, 161, 137, 0.08);
    
    --font-heading: 'Itim', 'Cinzel', serif;
    --font-body: 'Mitr', 'Sarabun', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease-out;
}

/* ==========================================================================
   Global Resets & Setup
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 90px; /* Space for running characters */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Background Decorative Gradient Blobs (Pastel & Warm)
   ========================================================================== */
.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.background-decor .circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.circle-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 228, 201, 0.7) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(251, 196, 182, 0.6) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
}

.circle-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(224, 242, 254, 0.6) 0%, transparent 70%);
    top: 40%;
    left: 55%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   Premium Typography & Common Elements
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '🌸';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px; /* More rounded/cute */
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 12px 40px rgba(189, 161, 137, 0.15);
}

/* Buttons (Rounded & Cute) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px; /* Fully rounded/cute */
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #fbc4b6 0%, #e59f91 100%);
    color: var(--text-light);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(229, 159, 145, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 159, 145, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    border: 1px solid rgba(207, 168, 103, 0.2);
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: var(--primary-gold);
    transform: translateY(-1px);
}

.btn-danger-outline {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(224, 122, 95, 0.4);
}

.btn-danger-outline:hover {
    background: var(--danger-light);
    border-color: var(--danger);
    transform: translateY(-1px);
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.app-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(207, 168, 103, 0.1);
    margin-bottom: 3rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-area h1 {
    font-size: 2.6rem;
    color: var(--text-dark);
    text-shadow: 0 2px 4px rgba(207, 168, 103, 0.15);
}

.logo-area .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 5px;
    font-weight: 300;
}

.logo-area .wedding-icon {
    font-size: 1.8rem;
    margin-right: 5px;
    display: inline-block;
    animation: heart-float 1.5s ease-in-out infinite alternate;
}

/* Countdown Card */
.countdown-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(207, 168, 103, 0.2);
    padding: 18px 26px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(207, 168, 103, 0.1);
    text-align: center;
}

.countdown-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    color: var(--accent-rose);
    margin-bottom: 8px;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.time-block span {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-gold);
    line-height: 1;
}

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

.time-separator {
    font-size: 1.6rem;
    color: var(--accent-rose);
    opacity: 0.7;
    margin-bottom: 12px;
}

.countdown-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Dashboard Summary Grid
   ========================================================================== */
.dashboard-section {
    margin-bottom: 2.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
}

/* Progress Ring Card */
.progress-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.progress-card h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 400;
}

.progress-container {
    position: relative;
    width: 140px;
    height: 140px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle-bg {
    stroke: rgba(0, 0, 0, 0.04);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.4s ease;
    transform-origin: 50% 50%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-text .percentage {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-gold);
    line-height: 1;
}

.progress-text .tasks-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
}

/* Financial Information Column */
.financials-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.budget-overview-card {
    padding: 24px;
}

.budget-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.budget-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(207, 168, 103, 0.1);
    color: var(--primary-gold);
    border: 1px solid rgba(207, 168, 103, 0.15);
}

.budget-icon i {
    width: 24px;
    height: 24px;
}

.budget-details {
    flex-grow: 1;
}

.budget-details .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-details .value-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.budget-details .currency {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-gold);
}

.budget-details .value {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
}

.edit-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.edit-btn:hover {
    background: var(--accent-pink);
    color: var(--text-light);
    border-color: var(--accent-pink);
    transform: scale(1.08);
}

.edit-btn i {
    width: 14px;
    height: 14px;
}

.budget-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-card {
    padding: 20px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.metric-header .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-header i {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
}

.metric-value .currency {
    font-size: 1.1rem;
    font-weight: 400;
    margin-right: 4px;
}

.metric-card.spent {
    border-left: 4px solid var(--accent-rose);
    background: rgba(229, 159, 145, 0.05);
}

.metric-card.spent i {
    color: var(--accent-rose);
}

.metric-card.spent .metric-value {
    color: var(--accent-rose);
}

.metric-card.remaining {
    border-left: 4px solid var(--success);
    background: rgba(123, 198, 118, 0.05);
}

.metric-card.remaining i {
    color: var(--success);
}

.metric-card.remaining .metric-value {
    color: var(--success);
}

.metric-card.remaining.over-budget {
    border-left-color: var(--danger);
    background: var(--danger-light);
}

/* ==========================================================================
   Timeline Controls & Filters
   ========================================================================== */
.controls-section {
    padding: 22px;
    margin-bottom: 2.5rem;
}

.controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(207, 168, 103, 0.1);
    padding-bottom: 16px;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: #ffffff;
    border: 1px solid rgba(207, 168, 103, 0.25);
    border-radius: 20px; /* Rounded/cute input */
    color: var(--text-dark);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--accent-rose);
    box-shadow: 0 0 10px rgba(229, 159, 145, 0.15);
}

.actions-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-options {
    display: flex;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(207, 168, 103, 0.15);
}

.filter-tab {
    padding: 6px 16px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tab.active {
    background: var(--bg-white);
    color: var(--accent-rose);
    box-shadow: 0 2px 8px rgba(207, 168, 103, 0.1);
    border: 1px solid rgba(207, 168, 103, 0.1);
}

/* Select Filter styling */
.filter-group select {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid rgba(207, 168, 103, 0.25);
    border-radius: 20px;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.filter-group select option {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

/* ==========================================================================
   Wedding Journey Timeline Section
   ========================================================================== */
.timeline-section {
    margin-bottom: 5rem;
}

.timeline-container {
    position: relative;
    padding-left: 32px;
}

/* Vertical timeline center line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 8px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(180deg, var(--accent-pink) 0%, var(--accent-rose) 50%, rgba(229, 159, 145, 0.1) 100%);
    opacity: 0.5;
}

/* Timeline Month Block Group */
.timeline-phase-group {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-out;
}

.timeline-phase-header {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Bullet indicator on the line */
.timeline-phase-header::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 3px solid var(--accent-rose);
    box-shadow: 0 0 10px rgba(229, 159, 145, 0.4);
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-phase-group.completed .timeline-phase-header::before {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 10px rgba(123, 198, 118, 0.4);
}

.timeline-phase-header h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.timeline-phase-header .phase-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 300;
}

.timeline-phase-header .phase-summary {
    font-size: 0.85rem;
    color: var(--success);
    margin-left: auto;
    font-weight: 500;
}

/* Timeline Cards Container */
.timeline-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Timeline Card */
.timeline-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    border-left: 4px solid var(--accent-pink);
    position: relative;
}

.timeline-card:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.95);
    border-left-color: var(--accent-rose);
}

.timeline-card.completed {
    border-left-color: var(--success);
    background: rgba(123, 198, 118, 0.02);
}

.timeline-card.completed:hover {
    background: rgba(123, 198, 118, 0.05);
}

/* Custom Checkbox as a wedding ring */
.checkbox-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.checkbox-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-wrapper:hover .checkbox-custom {
    border-color: var(--accent-rose);
    box-shadow: 0 0 8px rgba(229, 159, 145, 0.3);
}

.checkbox-wrapper input:checked + .checkbox-custom {
    border-color: var(--success);
    background: var(--success);
}

.checkbox-wrapper input:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid var(--bg-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Task Info */
.task-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-notes {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    white-space: pre-line;
}

/* Task Meta Details (Price/Actions) */
.task-meta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.task-cost-badge {
    background: rgba(207, 168, 103, 0.06);
    border: 1px solid rgba(207, 168, 103, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-gold);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.completed .task-cost-badge {
    background: var(--success-light);
    border-color: rgba(123, 198, 118, 0.15);
    color: var(--success);
}

.task-actions {
    display: flex;
    gap: 8px;
    opacity: 0.4;
    transition: var(--transition-fast);
}

.timeline-card:hover .task-actions {
    opacity: 1;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%; /* Rounded actions */
    border: 1px solid rgba(207, 168, 103, 0.15);
    background: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.action-btn.edit:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.action-btn.delete:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.action-btn i {
    width: 14px;
    height: 14px;
}

/* Empty State */
.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    width: 48px;
    height: 48px;
    stroke-width: 1px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ==========================================================================
   Modals & Forms
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 62, 61, 0.4); /* Dark warmer overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    width: 100%;
    max-width: 550px;
    background: #ffffff;
    border: 1px solid rgba(207, 168, 103, 0.2);
    box-shadow: 0 20px 40px rgba(189, 161, 137, 0.15);
    z-index: 1001;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    border-radius: 24px;
    overflow: hidden;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(207, 168, 103, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.4rem;
    color: var(--accent-rose);
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(207, 168, 103, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Forms styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label .required {
    color: var(--danger);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid rgba(207, 168, 103, 0.25);
    border-radius: 20px;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent-rose);
    box-shadow: 0 0 10px rgba(229, 159, 145, 0.15);
}

.form-group select option {
    background: #ffffff;
    color: var(--text-dark);
}

.form-group textarea {
    resize: vertical;
    border-radius: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer-bottom {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(207, 168, 103, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

/* ==========================================================================
   Pixel Art Runners & Cute Track
   ========================================================================== */
.pixel-runners-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none; /* Let clicks pass through */
}

.pixel-runners-track {
    position: relative;
    height: 70px;
    width: 100%;
    background: transparent;
    overflow: hidden;
}

.pixel-runners-grass {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16px;
    background: repeating-linear-gradient(
        90deg,
        #a7d08c,
        #a7d08c 4px,
        #93be79 4px,
        #93be79 8px
    );
    border-top: 4px solid #759e5a;
}

/* Tiny pixel flowers along the grass track */
.pixel-runners-grass::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background-image: 
        radial-gradient(#e53e3e 2px, transparent 2px),
        radial-gradient(#ffffff 2px, transparent 2px),
        radial-gradient(#e9c46a 2px, transparent 2px);
    background-size: 80px 8px, 120px 8px, 150px 8px;
    background-position: 10px 0, 40px 2px, 90px -1px;
    background-repeat: repeat-x;
}

.pixel-couple {
    position: absolute;
    bottom: 12px;
    left: -120px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: run-across 20s linear infinite;
}

.pixel-character {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.pixel-character .frame-1 {
    animation: toggle-frame-1 0.25s infinite step-end;
}

.pixel-character .frame-2 {
    animation: toggle-frame-2 0.25s infinite step-end;
}

@keyframes toggle-frame-1 {
    0%, 49.9% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes toggle-frame-2 {
    0%, 49.9% { opacity: 0; }
    50%, 100% { opacity: 1; }
}

@keyframes run-across {
    0% {
        left: -120px;
        transform: scaleX(1); /* Running right */
    }
    45% {
        left: calc(100% + 50px);
        transform: scaleX(1);
    }
    46% {
        transform: scaleX(-1); /* Turn left */
    }
    50% {
        left: calc(100% + 50px);
        transform: scaleX(-1);
    }
    95% {
        left: -120px;
        transform: scaleX(-1); /* Running left */
    }
    96% {
        transform: scaleX(1); /* Turn right */
    }
    100% {
        left: -120px;
        transform: scaleX(1);
    }
}

/* Floating Hearts above the couple */
.pixel-hearts {
    position: absolute;
    top: -24px;
    left: 36px;
    display: flex;
    gap: 4px;
    pointer-events: none;
}

.pixel-heart {
    font-size: 14px;
    display: inline-block;
    animation: heart-float 1.2s ease-in-out infinite alternate;
}

.pixel-heart.h1 { animation-delay: 0s; }
.pixel-heart.h2 { animation-delay: 0.4s; }
.pixel-heart.h3 { animation-delay: 0.8s; }

@keyframes heart-float {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-8px) scale(1.1);
        opacity: 1;
    }
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-card {
        flex-direction: row;
        gap: 40px;
        text-align: left;
    }
    
    .progress-card h3 {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding-bottom: 80px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .app-header {
        padding: 2rem 0 1rem;
    }
    
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo-area {
        text-align: center;
    }
    
    .progress-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .budget-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .actions-group {
        justify-content: stretch;
    }
    
    .actions-group .btn {
        flex-grow: 1;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .filter-options {
        width: 100%;
    }
    
    .filter-tab {
        flex-grow: 1;
        text-align: center;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .timeline-card {
        grid-template-columns: auto 1fr;
        padding: 14px 16px;
        gap: 12px;
    }
    
    .task-meta {
        grid-column: 2;
        justify-content: space-between;
        margin-top: 8px;
        gap: 8px;
    }
    
    .task-actions {
        opacity: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Seating Plan Button - Emerald/Gold Theme
   ========================================================================== */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.seating-plan-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 22px;
    border: 2px solid rgba(4, 77, 61, 0.3);
    border-radius: 16px;
    background: linear-gradient(135deg, #044d3d 0%, #0a6954 50%, #0d8a6f 100%);
    color: #f7f3ea;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(4, 77, 61, 0.2);
}

.seating-plan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    animation: shimmer-seating 3s ease-in-out infinite;
}

@keyframes shimmer-seating {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.seating-plan-btn:hover {
    border-color: #d4af37;
    box-shadow: 0 6px 25px rgba(4, 77, 61, 0.3), 0 0 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.seating-plan-btn:active {
    transform: translateY(0);
}

.seating-plan-btn-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.seating-plan-btn-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.seating-plan-btn-venue {
    font-size: 0.65rem;
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   Seating Plan Fullscreen Modal
   ========================================================================== */
.seating-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: rgba(3, 43, 33, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.seating-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.seating-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, #032b21 0%, #044d3d 100%);
    border-bottom: 2px solid #d4af37;
    flex-shrink: 0;
}

.seating-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f7f3ea;
}

.seating-modal-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.seating-modal-title h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: #f7f3ea;
    margin: 0;
}

.seating-modal-title p {
    font-size: 0.75rem;
    color: rgba(247, 243, 234, 0.6);
    margin: 2px 0 0 0;
    letter-spacing: 0.5px;
}

.seating-modal-close {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #f7f3ea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.seating-modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
    transform: rotate(90deg);
}

.seating-modal-close svg {
    width: 20px;
    height: 20px;
}

.seating-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.seating-plan-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #f9f8f4;
}

/* Responsive for seating plan */
@media (max-width: 768px) {
    .header-right-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .seating-plan-btn {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        padding: 10px 18px;
    }

    .seating-plan-btn-icon {
        font-size: 1.3rem;
    }

    .seating-plan-btn-text {
        font-size: 0.9rem;
    }

    .seating-plan-btn-venue {
        display: none;
    }

    .seating-modal-header {
        padding: 10px 16px;
    }

    .seating-modal-title h2 {
        font-size: 0.95rem;
    }

    .seating-modal-title p {
        display: none;
    }

    .seating-modal-icon {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   Header Venue Comparison Button
   ========================================================================== */
.venue-compare-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 22px;
    border: 2px solid rgba(207, 168, 103, 0.3);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
    color: var(--text-dark);
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(207, 168, 103, 0.1);
}

.venue-compare-btn:hover {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, #fffaf2 0%, #faf6ee 100%);
    box-shadow: 0 6px 25px rgba(207, 168, 103, 0.2);
    transform: translateY(-2px);
}

.venue-compare-btn:active {
    transform: translateY(0);
}

.venue-compare-btn-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.venue-compare-btn-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.venue-compare-btn-sub {
    font-size: 0.65rem;
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Comparison Rating Meters & Highlight Styling
   ========================================================================== */
.venue-ratings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.4);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(207, 168, 103, 0.1);
}

.rating-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 8px;
}

.rating-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
}

.rating-meter {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.rating-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.fill-emerald {
    background: linear-gradient(90deg, #0a6954, #0d8a6f);
}

.fill-gold {
    background: linear-gradient(90deg, #dfb76c, #d4af37);
}

.fill-bloom {
    background: linear-gradient(90deg, #0d8a6f, #57b38d);
}

/* Featured / Highlighted Card Styling */
.highlight-card {
    border: 2px solid var(--primary-gold) !important;
    background: rgba(255, 250, 240, 0.8) !important;
    box-shadow: 0 10px 30px rgba(207, 168, 103, 0.15) !important;
    transform: scale(1.02);
    z-index: 2;
}

.badge-popular {
    background: var(--primary-gold) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(207, 168, 103, 0.3);
}

@media (max-width: 768px) {
    .venue-compare-btn {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        padding: 10px 18px;
        justify-content: center;
    }
    
    .venue-compare-btn-sub {
        display: none;
    }
    
    .highlight-card {
        transform: none;
    }
}

/* ==========================================================================
   Main Tabs Navigation
   ========================================================================== */
.main-navigation-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(207, 168, 103, 0.15);
    padding-bottom: 8px;
}

.main-nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.main-nav-tab:hover {
    color: var(--primary-gold);
    background: rgba(207, 168, 103, 0.05);
}

.main-nav-tab.active {
    color: var(--primary-gold);
    background: rgba(207, 168, 103, 0.1);
    box-shadow: 0 4px 10px rgba(207, 168, 103, 0.1);
}

.main-nav-tab svg {
    width: 18px;
    height: 18px;
}

/* Tab content visibility */
.main-tab-content {
    display: none;
    animation: fadeInTab 0.35s ease-out;
}

.main-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Venue Comparison Styling
   ========================================================================== */
.comparison-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 60px;
}

.comparison-header-card {
    text-align: center;
    padding: 24px;
}

.decision-box {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.decision-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(207, 168, 103, 0.2);
}

.decision-item label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.clean-select {
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(207, 168, 103, 0.3);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    outline: none;
    color: var(--text-dark);
}

.clean-select:focus {
    border-color: var(--primary-gold);
}

/* Venue compare cards grid */
.comparison-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.venue-compare-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.venue-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.accent-emerald {
    border-top: 5px solid #044d3d;
}

.accent-emerald .venue-badge {
    background: #e6f3f0;
    color: #044d3d;
}

.accent-bloom {
    border-top: 5px solid #0d8a6f;
}

.accent-bloom .venue-badge {
    background: #f0fdf4;
    color: #0d8a6f;
}

.accent-karisma {
    border-top: 5px solid #b58d3d;
}

.accent-karisma .venue-badge {
    background: #faf2e6;
    color: #b58d3d;
}

.fill-karisma {
    background: linear-gradient(90deg, #dfb76c, #b58d3d);
}

/* Dynamic Price Input inside compare card */
.price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 12px;
    border-radius: 10px;
    border: 1px solid rgba(207, 168, 103, 0.3);
    max-width: 180px;
}

.price-symbol {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-gold);
}

.dynamic-price-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-dark);
    outline: none;
    font-family: var(--font-body);
}

.dynamic-price-input::placeholder {
    font-size: 0.95rem;
    font-weight: normal;
    color: var(--text-muted);
}

.venue-compare-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
}

.venue-price-tag {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.venue-price-tag .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-gold);
}

.venue-price-tag .cap {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.compare-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compare-bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.bullet-ok {
    color: #7bc676;
    width: 18px;
    height: 18px;
}

.bullet-no {
    color: #e07a5f;
    width: 18px;
    height: 18px;
}

/* Deep Specs Table */
.table-responsive-wrapper {
    overflow-x: auto;
    padding: 24px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dcdde1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table th, .comparison-table td {
    padding: 18px 12px;
    text-align: center;
    border-bottom: 1px solid #dcdde1;
    border-right: 1px solid #dcdde1;
    vertical-align: middle;
}

.comparison-table th:last-child, .comparison-table td:last-child {
    border-right: none;
}

/* Header style aligned with reference image (slate black) */
.comparison-table th {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: #2c3e50;
    padding: 16px 10px;
    letter-spacing: 0.5px;
}

/* Logo Box on Top Left */
.logo-col {
    background: #eef2f5 !important;
    border-right: 2px solid #b2bec3 !important;
}

.logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 2px dashed #b2bec3;
    border-radius: 4px;
    background: #ffffff;
    min-height: 55px;
}

.logo-emoji {
    font-size: 1.1rem;
    line-height: 1.2;
}

.logo-text {
    font-size: 0.65rem;
    font-weight: bold;
    color: #57606f;
    margin-top: 2px;
}

/* Category Title (First Column) - Light Grey as in reference image */
.comparison-table td.category-title {
    font-weight: 700;
    color: #2c3e50;
    text-align: left;
    width: 220px;
    min-width: 220px;
    background: #eef2f5 !important;
    border-right: 2px solid #b2bec3 !important;
}

/* Sticky Pinning for Mobile Horizontal Scroll */
.sticky-col {
    position: sticky;
    left: 0;
    z-index: 10;
}

.comparison-table th.sticky-col {
    z-index: 11;
}

/* Bold prices */
.bold-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2c3e50;
}

.highlight-price {
    color: #dfb76c;
}

/* Custom Check and Cross Icons matching the reference image */
.compare-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-svg {
    width: 20px !important;
    height: 20px !important;
}

.icon-check {
    color: #10ac84; /* Bold thick green checkmark */
}

.icon-cross {
    color: #ee5253; /* Bold thick red cross */
}

/* Gold Stars styling */
.stars-group {
    display: inline-flex;
    gap: 2px;
    font-size: 1.3rem;
    color: #f1c40f;
}

.star-empty {
    color: #dcdde1;
}

.featured-stars {
    text-shadow: 0 0 4px rgba(241, 196, 15, 0.3);
}

.text-gold {
    color: #b58d3d;
}

/* Gold Column Highlight for Recommended */
.col-highlight-gold {
    background: rgba(253, 247, 235, 0.4);
}

.comparison-table tr:hover td {
    background: rgba(44, 62, 80, 0.02) !important;
}

/* Cell subheadings */
.sub-cell {
    font-size: 0.72rem;
    color: #57606f;
    font-weight: normal;
    display: inline-block;
    margin-top: 4px;
}

/* Table Footer Bar matching the reference image */
.comparison-table-footer {
    background: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-top: -1px;
}
/* Collaborative Notes */
.notes-compare-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notes-compare-card textarea {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(207, 168, 103, 0.3);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    resize: vertical;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.notes-compare-card textarea:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(207, 168, 103, 0.1);
}

.notes-status-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

#notes-save-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #7bc676;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#notes-save-status.visible {
    opacity: 1;
}

/* Responsive Comparison Rules */
@media (max-width: 768px) {
    .main-navigation-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .main-nav-tab {
        width: 100%;
        justify-content: center;
    }

    .comparison-cards-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table th, .comparison-table td {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    .comparison-table td.category-title {
        min-width: 140px;
        width: 140px;
        font-size: 0.8rem;
    }
}
