/* Design Variables & Theme Settings */
:root {
    --primary: #ff6b8b; /* Soft Romantic Rose */
    --primary-hover: #ff4770;
    --primary-light: #ffe3e8;
    
    --secondary: #6c5ce7; /* Elegant Purple */
    --secondary-hover: #5849df;
    --secondary-light: #eef0fc;
    
    --accent: #ffa07a; /* Sunset Peach/Coral */
    --accent-gold: #ffb830; /* Selected Deal Gold */
    
    --boss-color: #3498db; /* Boss Blue */
    --boss-light: #e8f4fc;
    --bell-color: #fd79a8; /* Bell Pink */
    --bell-light: #feeef3;
    
    --success: #2ecc71;
    --danger: #ff7675;
    --dark: #2d3436;
    --light: #fafbfd;
    
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: rgba(31, 38, 135, 0.06);
    --glass-blur: blur(12px);
    
    --text-main: #2d3748;
    --text-muted: #718096;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Thai', 'Outfit', sans-serif;
    background: linear-gradient(135deg, #ffeef1 0%, #f1f4fc 50%, #eefcfa 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Layout Container */
.app-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styling */
.sidebar {
    width: 320px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header {
    margin-bottom: 2rem;
}

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

.logo-emoji {
    font-size: 2.2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-text span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Couple Profile Widget */
.couple-profile {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px var(--glass-shadow);
    text-align: center;
    position: relative;
}

.avatars-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 0.75rem;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    transition: var(--transition-normal);
}

.boss-avatar {
    background: linear-gradient(135deg, #54a0ff, var(--boss-color));
    transform: translateX(10px);
}

.bell-avatar {
    background: linear-gradient(135deg, #ff9ff3, var(--bell-color));
    transform: translateX(-10px);
}

.heart-badge {
    font-size: 1.5rem;
    z-index: 2;
    animation: heartbeat 1.5s infinite;
}

.couple-names {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.trip-quick-stats {
    text-align: left;
}

.stat-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-progress-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 6px;
}

.stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bar-values {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-align: right;
    color: var(--text-main);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-btn {
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
    text-align: left;
    width: 100%;
}

.nav-btn i {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    transform: translateX(4px);
}

.nav-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 16px rgba(255, 107, 139, 0.3);
}

.nav-btn.active i {
    color: white;
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Main Content Styling */
.main-content {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.header-title-area h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.trip-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.trip-meta i {
    width: 14px;
    height: 14px;
    stroke-width: 2px;
}

.trip-meta .divider {
    color: rgba(0, 0, 0, 0.15);
    margin: 0 4px;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 139, 0.35);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
}

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

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

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-rose-light {
    background: var(--bell-light);
    color: var(--bell-color);
}
.btn-rose-light:hover {
    background: var(--bell-color);
    color: white;
    transform: scale(1.05);
}

.btn-close {
    background: rgba(0,0,0,0.05);
    color: var(--text-muted);
}
.btn-close:hover {
    background: rgba(0,0,0,0.1);
}

.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }

/* Sections Layout */
.content-body {
    flex-grow: 1;
    position: relative;
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

.section-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 10px 30px var(--glass-shadow);
    transition: var(--transition-normal);
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.8) 0%, rgba(108, 92, 231, 0.8) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 12px 36px rgba(255, 107, 139, 0.15);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: var(--radius-full);
}

.welcome-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 300;
}

.countdown-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 140px;
    animation: pulse 2.5s infinite;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    display: block;
}

.countdown-timer {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 4px 0;
}

.countdown-unit {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Dashboard Stats Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

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

.icon-hotel { background: linear-gradient(135deg, #ff7675, #ff6b8b); }
.icon-car { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.icon-route { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.icon-budget { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); }

.stat-info h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.stat-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Note Board and Checklist Grid */
.dashboard-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    width: 20px;
    height: 20px;
}

.text-rose { color: var(--bell-color); }

/* Love Notes Board */
.notes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.note-card {
    border-radius: var(--radius-md);
    padding: 1rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: rotate(calc(var(--rotation, 0) * 1deg));
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110px;
}

.note-card:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 5;
}

/* Colors for Sticky Notes */
.note-card.yellow { background: #fff9db; border-left: 5px solid #ffd43b; }
.note-card.pink { background: #fff0f6; border-left: 5px solid #faa2c1; }
.note-card.blue { background: #e7f5ff; border-left: 5px solid #74c0fc; }
.note-card.green { background: #ebfbee; border-left: 5px solid #8ce99a; }

.note-text {
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
    color: #495057;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.75rem;
    border-top: 1px dashed rgba(0,0,0,0.05);
    padding-top: 6px;
}

.note-author {
    font-weight: 600;
}

.note-author.boss { color: var(--boss-color); }
.note-author.bell { color: var(--bell-color); }

.btn-delete-note {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: var(--transition-fast);
}

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

/* Checklist Styling */
.checklist-add-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.form-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.todo-list {
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(2px);
}

.todo-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    flex-grow: 1;
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--text-muted);
    outline: none;
    cursor: pointer;
    accent-color: var(--primary);
}

.todo-checkbox:checked + .todo-text-span {
    text-decoration: line-through;
    color: var(--text-muted);
}

.btn-delete-todo {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0.3;
    transition: var(--transition-fast);
}

.todo-item:hover .btn-delete-todo {
    opacity: 1;
}

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

/* Options Grid (Hotel/Car) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Option Card (Hotel/Car) */
.option-card {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid var(--glass-border);
}

.option-card.selected {
    border-color: var(--accent-gold);
    box-shadow: 0 12px 30px rgba(255, 184, 48, 0.15), 0 0 0 1.5px var(--accent-gold);
}

.selected-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent-gold), #f39c12);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.option-header {
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
}

.option-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.option-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    max-width: 80%;
}

.option-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.option-price-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    text-align: right;
    margin-top: -2px;
}

/* Pros and Cons panels */
.pros-cons-container {
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.pro-con-section {
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: 8px;
}

.pro-con-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pro-con-title.pros { color: var(--success); }
.pro-con-title.cons { color: var(--danger); }

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.tag-item {
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.tag-item.pro {
    background: #e8f9ec;
    color: #27ae60;
}

.tag-item.con {
    background: #ffebee;
    color: #c0392b;
}

/* Link area */
.option-link-area {
    padding: 0.5rem 1.25rem;
    display: flex;
    justify-content: flex-start;
}

.option-link {
    font-size: 0.8rem;
    color: var(--secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.option-link:hover {
    text-decoration: underline;
    color: var(--secondary-hover);
}

/* Voting Box & Action buttons */
.option-actions {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vote-control-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vote-buttons {
    display: flex;
    gap: 10px;
}

.btn-vote {
    border: none;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

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

.btn-vote-boss:hover {
    background: var(--boss-light);
    border-color: var(--boss-color);
    color: var(--boss-color);
}

.btn-vote-boss.voted {
    background: var(--boss-color);
    color: white;
    border-color: var(--boss-color);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-vote-bell:hover {
    background: var(--bell-light);
    border-color: var(--bell-color);
    color: var(--bell-color);
}

.btn-vote-bell.voted {
    background: var(--bell-color);
    color: white;
    border-color: var(--bell-color);
    box-shadow: 0 4px 10px rgba(253, 121, 168, 0.3);
}

.match-indicator {
    font-size: 0.72rem;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(255, 117, 140, 0.25);
    animation: heartbeat-small 2s infinite;
}

.card-action-btns {
    display: flex;
    gap: 8px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Itinerary Timeline View */
.itinerary-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.day-selector-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 1rem;
}

.day-selector-sidebar h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 8px;
}

.btn-day-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    text-align: left;
}

.btn-day-tab:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--secondary);
}

.btn-day-tab.active {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}

.btn-day-delete {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-fast);
    padding: 2px;
}

.btn-day-tab:hover .btn-day-delete,
.btn-day-tab.active .btn-day-delete {
    opacity: 1;
}

.btn-day-delete:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.timeline-container {
    padding: 2rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px dashed rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.timeline-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.badge {
    background: var(--secondary-light);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.timeline-flow {
    position: relative;
    padding-left: 2rem;
}

.timeline-flow::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(0, 0, 0, 0.08);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--secondary);
    border: 3px solid white;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.3);
    z-index: 2;
    transition: var(--transition-fast);
}

.timeline-item:hover::before {
    transform: scale(1.2);
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.3);
}

.timeline-item-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.timeline-info {
    flex-grow: 1;
}

.timeline-time {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.timeline-notes {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-top: 4px;
}

.timeline-cost {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    margin-right: 15px;
    align-self: center;
}

.timeline-actions-area {
    display: flex;
    align-items: center;
}

.btn-delete-timeline {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0.3;
    transition: var(--transition-fast);
    padding: 4px;
}

.timeline-item-card:hover .btn-delete-timeline {
    opacity: 1;
}

.btn-delete-timeline:hover {
    color: var(--danger);
    transform: scale(1.1);
}

/* Budget Tab Layout */
.budget-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.budget-limit-editor {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
}

.budget-limit-editor label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Budget Splitter Card */
.splitter-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.split-results {
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--glass-border);
}

.split-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.split-row:last-child {
    border-bottom: none;
}

.partner-name {
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.partner-name i {
    width: 14px;
    height: 14px;
}

.partner-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.boss-color { color: var(--boss-color); }
.bell-color { color: var(--bell-color); }

.split-total-info {
    text-align: right;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.split-total-info strong {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
}

/* Expenses Table List */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.expenses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    text-align: left;
}

.expenses-table th {
    background: rgba(0, 0, 0, 0.02);
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.06);
}

.expenses-table td {
    padding: 1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-main);
}

.expenses-table tbody tr:hover {
    background: rgba(255,255,255,0.3);
}

.expenses-table .expense-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

.expense-category-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.category-hotel { background: #ffe3e8; color: var(--primary); }
.category-car { background: #e8f4fc; color: var(--boss-color); }
.category-itinerary { background: #eef0fc; color: var(--secondary); }
.category-other { background: #f1f3f5; color: var(--text-muted); }

/* Modals Backdrops & Layout */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 17, 29, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

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

.modal-card {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.btn-close-modal:hover {
    background: rgba(0,0,0,0.05);
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fafbfd;
}

/* Radio buttons for note author selection */
.note-author-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-label {
    cursor: pointer;
}

.radio-label input {
    display: none;
}

.custom-radio {
    display: block;
    text-align: center;
    padding: 0.6rem;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(0,0,0,0.08);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.radio-label input:checked + .custom-radio.boss-radio {
    border-color: var(--boss-color);
    background: var(--boss-light);
    color: var(--boss-color);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.15);
}

.radio-label input:checked + .custom-radio.bell-radio {
    border-color: var(--bell-color);
    background: var(--bell-light);
    color: var(--bell-color);
    box-shadow: 0 4px 10px rgba(253, 121, 168, 0.15);
}

/* Note Color Dot Palette */
.note-color-palette {
    display: flex;
    gap: 12px;
}

.color-dot {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    border: 1.5px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-dot input {
    display: none;
}

.color-dot span {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.color-dot.yellow span { background: #ffd43b; }
.color-dot.pink span { background: #faa2c1; }
.color-dot.blue span { background: #74c0fc; }
.color-dot.green span { background: #8ce99a; }

.color-dot.active {
    box-shadow: 0 0 0 2.5px white, 0 0 0 4px var(--primary);
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.12); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    70% { transform: scale(1); }
}

@keyframes heartbeat-small {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-zoom {
    animation: zoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    .dashboard-details-grid {
        grid-template-columns: 1fr;
    }
    .budget-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .app-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    /* Transforming Sidebar into fixed bottom tab nav */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100% !important;
        height: 68px !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        padding: 0 10px !important;
        margin: 0 !important;
        border-right: none;
        border-top: 1px solid var(--glass-border);
        border-bottom: none;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
        z-index: 99;
    }
    .sidebar-header, .couple-profile, .sidebar-footer {
        display: none !important; /* Hide elements not suited for bottom bar */
    }
    .nav-menu {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: space-around !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .nav-btn {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 6px 0 !important;
        font-size: 0.72rem !important;
        color: var(--text-muted) !important;
        border-radius: 0 !important;
        width: 20% !important;
        text-align: center !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }
    .nav-btn i {
        width: 18px !important;
        height: 18px !important;
    }
    .nav-btn:hover {
        transform: none !important;
        background: transparent !important;
    }
    .nav-btn.active {
        background: transparent !important;
        color: var(--primary) !important;
        box-shadow: none !important;
        border-top: 3px solid var(--primary);
    }
    .nav-btn.active i {
        color: var(--primary) !important;
    }

    /* Main Content adjustments */
    .main-content {
        padding: 1rem 0.75rem 80px 0.75rem !important; /* Extra bottom padding for floating bottom tabbar */
        height: auto !important;
        overflow-y: visible !important;
    }
    .main-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    /* Bottom-sheet slide-up style modal on mobile */
    .modal-backdrop {
        align-items: flex-end;
    }
    .modal-card {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 85vh;
        width: 100%;
        animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* Welcome Banner & Countdown */
    .welcome-banner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 1.5rem;
    }
    .countdown-card {
        width: 100%;
    }

    /* Itinerary layout day tabs scrollbar hide */
    .itinerary-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .day-selector-sidebar {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 4px;
        gap: 8px;
    }
    .day-selector-sidebar::-webkit-scrollbar {
        display: none;
    }
    .btn-day-tab {
        white-space: nowrap;
        padding: 0.6rem 1rem;
        flex-shrink: 0;
    }

    /* Grid systems */
    .options-grid {
        grid-template-columns: 1fr;
    }
    .notes-container {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 1rem;
        gap: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
    .stat-value {
        font-size: 0.85rem;
    }
    .stat-info h4 {
        font-size: 0.7rem;
    }
    
    /* Header actions & cloud badge on mobile */
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .header-actions .btn {
        width: 100%;
    }
    .cloud-status-badge {
        width: 100%;
        justify-content: center;
        padding: 6px 12px;
    }
    
    /* Splitter budget & tables */
    .budget-layout {
        grid-template-columns: 1fr;
    }
    .expenses-table th, .expenses-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    .expenses-table td:nth-child(2) {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Tag Input Tool Styling */
.tag-input-container {
    display: flex;
    gap: 8px;
}

.tags-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-height: 24px;
}

.tag-preview-item {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-preview-item.pro {
    background: #e8f9ec;
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.12);
}

.tag-preview-item.con {
    background: #ffebee;
    color: #c0392b;
    border: 1px solid rgba(192, 57, 43, 0.12);
}

.btn-remove-tag {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: currentColor;
    display: inline-flex;
    align-items: center;
    padding: 0;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.btn-remove-tag:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Budget Summary Card & Details */
.card-divider {
    border: 0;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    margin: 1.25rem 0;
}

.budget-status-box {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.status-row.total-row {
    font-size: 1.15rem;
    font-weight: 700;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 8px;
    margin-bottom: 6px;
}

.status-row.total-row .val {
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.status-row .val {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.budget-result-status {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.budget-result-status.within {
    background: #e8f9ec;
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.15);
}

.budget-result-status.over {
    background: #ffebee;
    color: #c0392b;
    border: 1px solid rgba(192, 57, 43, 0.15);
}

.budget-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.breakdown-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.breakdown-label i {
    width: 16px;
    height: 16px;
}

.breakdown-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}
