/* ================= DESIGN SYSTEM VARIABLES ================= */
:root {
    --primary: hsl(345, 80%, 72%);
    --primary-hover: hsl(345, 80%, 65%);
    --primary-light: hsl(345, 100%, 96%);
    --secondary: hsl(25, 90%, 82%);
    --bg-overlay: rgba(255, 245, 245, 0.35);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(243, 156, 182, 0.15);
    
    /* Text colors */
    --text-main: hsl(220, 20%, 25%);
    --text-muted: hsl(220, 10%, 45%);
    --text-white: #ffffff;
    
    /* Font families */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================= BASE STYLES ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Beautiful dynamic background using generated assets */
    background-image: url('assets/default-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Base overlay for blending and text readability */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    z-index: 1;
    pointer-events: none;
}

/* Interactive Falling Hearts Canvas */
#heart-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Main Container Wrapper */
.app-container {
    position: relative;
    z-index: 3; /* Above canvas & overlay */
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px 80px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ================= MODERN STYLING: GLASSMORPHISM ================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

/* Buttons Styling */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), hsl(340, 85%, 75%));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 117, 140, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ================= HERO SECTION STYLING ================= */
.hero-section {
    width: 100%;
}

.hero-card {
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Avatar Showcase */
.avatars-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.avatar-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 24px rgba(243, 156, 182, 0.25);
    object-fit: cover;
    transition: var(--transition-bounce);
    cursor: pointer;
}

.avatar-img:hover {
    transform: scale(1.1) rotate(3deg);
    border-color: var(--primary);
}

.avatar-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px dashed transparent;
    transition: var(--transition-smooth);
}

.avatar-label[contenteditable="true"]:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.avatar-label[contenteditable="true"]:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 117, 140, 0.15);
}

/* Pulsing Heart between avatars */
.heart-pulse-container {
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.1);
    transition: var(--transition-bounce);
}

.heart-pulse-container:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.8);
}

.pulse-heart {
    width: 38px;
    height: 38px;
    animation: heartBeat 1.4s infinite ease-in-out;
    filter: drop-shadow(0 2px 8px rgba(255, 117, 140, 0.4));
}

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

/* Floating Animations for Avatars */
.animate-float {
    animation: float 4s infinite ease-in-out;
}
.animate-float-delay {
    animation: float 4s infinite ease-in-out;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Days Counter Display */
.days-counter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: italic;
    color: var(--text-muted);
}

.counter-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.counter-display:hover {
    transform: scale(1.05);
}

.days-number {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, hsl(345, 90%, 65%), hsl(25, 95%, 65%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(255, 117, 140, 0.15));
}

.days-unit {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.anniversary-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Countdown Card */
.countdown-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.countdown-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

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

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-block span:first-child {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

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

.time-divider {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    transform: translateY(-8px);
}

.countdown-target {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ================= FLOATING STICKY NAVIGATION BAR ================= */
.navigation-bar {
    display: flex;
    justify-content: space-around;
    padding: 8px;
    position: sticky;
    top: 16px;
    z-index: 50; /* Needs to float nicely over timeline elements */
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-radius: 16px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition-smooth);
}

.nav-tab:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.4);
}

.nav-tab.active {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(243, 156, 182, 0.1);
}

.nav-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-bounce);
}

.nav-tab.active .nav-icon {
    transform: scale(1.1) translateY(-1px);
    stroke: var(--primary);
    fill: rgba(255, 117, 140, 0.15);
}

/* ================= CONTENT PANELS SYSTEM ================= */
.content-panel {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-panel.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 1;
    transform: translateY(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
}

.panel-title span {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 6px;
}

/* ================= PANEL 1: TIMELINE STYLING ================= */
.timeline-container {
    position: relative;
    padding: 10px 0 32px 0;
    width: 100%;
}

/* Timeline Vertical central line */
.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), rgba(255,255,255,0.1));
    border-radius: 2px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Timeline Item Card */
.timeline-item {
    position: relative;
    padding-left: 52px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline Interactive Node (Circle Dot) */
.timeline-node {
    position: absolute;
    left: 11px;
    top: 20px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 117, 140, 0.15);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    cursor: pointer;
}

.timeline-item:hover .timeline-node {
    transform: scale(1.3);
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(255, 117, 140, 0.25);
}

/* Timeline Card */
.timeline-card {
    padding: 20px;
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.timeline-emoji-tag {
    font-size: 20px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.timeline-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 12px;
    white-space: pre-wrap; /* Preserve spaces & linebreaks */
}

.timeline-img-wrapper {
    width: 100%;
    max-height: 360px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.timeline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.timeline-img:hover {
    transform: scale(1.03);
}

/* Timeline Item Operations */
.timeline-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
}

.btn-delete-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.btn-delete-item:hover {
    color: hsl(0, 85%, 60%);
}

.btn-delete-item svg {
    width: 14px;
    height: 14px;
}

/* ================= PANEL 2: WISHLIST STYLING ================= */
.stats-card {
    display: flex;
    justify-content: space-around;
    padding: 16px;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stats-num {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
}

.stats-lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.stats-divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
    align-self: stretch;
}

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

/* Wish Card */
.wish-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.wish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.8;
}

.wish-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.wish-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.wish-checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wish-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    background: #ffffff;
}

.wish-checkbox svg {
    width: 12px;
    height: 12px;
    stroke: #ffffff;
    stroke-width: 3;
    opacity: 0;
    transition: var(--transition-smooth);
}

.wish-card.completed {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.wish-card.completed::before {
    background: var(--text-muted);
}

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

.wish-card.completed .wish-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.wish-card.completed .wish-checkbox svg {
    opacity: 1;
}

.wish-body {
    flex-grow: 1;
}

.wish-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.wish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0,0,0,0.04);
}

.wish-stars {
    font-size: 11px;
    letter-spacing: 0.5px;
}

.btn-delete-wish {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 2px;
}

.btn-delete-wish:hover {
    color: hsl(0, 85%, 60%);
}

.btn-delete-wish svg {
    width: 14px;
    height: 14px;
}

/* ================= PANEL 3: WHISPERS BOARD STYLING ================= */
.whisper-input-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.whisper-sender-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.sender-radio {
    cursor: pointer;
}

.sender-radio input {
    display: none;
}

.radio-btn {
    padding: 4px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: inline-block;
    transition: var(--transition-smooth);
    font-weight: 600;
    font-size: 12px;
}

.sender-radio input:checked + .radio-boy {
    background: hsl(200, 90%, 82%);
    color: hsl(200, 90%, 30%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sender-radio input:checked + .radio-girl {
    background: hsl(345, 90%, 85%);
    color: hsl(345, 80%, 40%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Textarea & inputs */
textarea, input[type="text"], input[type="date"] {
    font-family: var(--font-body);
    width: 100%;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

textarea:focus, input[type="text"]:focus, input[type="date"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 117, 140, 0.12);
    background: #ffffff;
}

.whisper-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.note-color-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.color-options {
    display: flex;
    gap: 6px;
}

.color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-bounce);
}

.color-dot:hover {
    transform: scale(1.15);
}

.color-dot.active {
    border-color: var(--primary);
    transform: scale(1.15);
}

/* Whispers Board Card grid */
.whispers-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Elegant 3D Sticky Note Design */
.whisper-note-card {
    padding: 20px;
    border-radius: 2px; /* Straight edges for post-it note vibe */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    aspect-ratio: 1 / 1;
    position: relative;
    transition: var(--transition-bounce);
    /* Simulated page-curl tape at the top */
}

.whisper-note-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30%;
    right: 30%;
    height: 16px;
    background: rgba(255, 255, 255, 0.55);
    transform: skew(-10deg);
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Color schemes for sticky notes */
.whisper-note-card.color-1 { background-color: hsl(345, 90%, 94%); }
.whisper-note-card.color-2 { background-color: hsl(200, 90%, 94%); }
.whisper-note-card.color-3 { background-color: hsl(45, 95%, 92%); }
.whisper-note-card.color-4 { background-color: hsl(120, 70%, 93%); }

/* Random slight skew rotations on loading */
.whisper-note-card:nth-child(even) { transform: rotate(1deg); }
.whisper-note-card:nth-child(odd) { transform: rotate(-1.5deg); }
.whisper-note-card:nth-child(3n) { transform: rotate(0.5deg); }

.whisper-note-card:hover {
    transform: translateY(-5px) scale(1.03) rotate(0deg) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    z-index: 10;
}

.whisper-note-content {
    font-size: 14px;
    line-height: 1.6;
    color: hsl(220, 20%, 25%);
    font-weight: 500;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 4px;
    word-break: break-all;
}

/* Custom mini scrollbar for note */
.whisper-note-content::-webkit-scrollbar {
    width: 3px;
}
.whisper-note-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.whisper-note-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
}

.whisper-note-author {
    font-size: 11px;
    font-weight: 800;
}

.author-boy { color: hsl(200, 80%, 40%); }
.author-girl { color: hsl(345, 80%, 45%); }

.whisper-note-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.whisper-note-date {
    font-size: 9px;
    color: var(--text-muted);
}

.btn-delete-whisper {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 2px;
}

.btn-delete-whisper:hover {
    color: hsl(0, 85%, 60%);
}

.btn-delete-whisper svg {
    width: 14px;
    height: 14px;
}

/* ================= MODAL STYLES ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 235, 238, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    width: 100%;
    max-width: 500px;
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
}

.btn-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.btn-close:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Custom Emoji / Option Selectors in Modal */
.emoji-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.emoji-option, .star-option {
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0,0,0,0.06);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.emoji-option:hover, .star-option:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: var(--primary);
}

.emoji-option.active, .star-option.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* Image Upload Component */
.image-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    transition: var(--transition-smooth);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-upload-wrapper:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.85);
}

.image-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.upload-icon {
    width: 32px;
    height: 32px;
    stroke: var(--text-muted);
}

.upload-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-remove-preview {
    margin-top: 10px;
    background: hsl(0, 85%, 60%);
    color: #ffffff;
    font-weight: 600;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.hidden {
    display: none !important;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations for Modal scale */
.animate-scale-in {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.modal-overlay.active .animate-scale-in {
    transform: scale(1);
    opacity: 1;
}

/* ================= FOOTER ================= */
.app-footer {
    text-align: center;
    padding: 16px 0;
    margin-top: 16px;
}

.app-footer p {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 600px) {
    .app-container {
        padding: 12px 10px 80px 10px;
        gap: 16px;
    }
    .hero-card {
        padding: 24px 16px;
        gap: 20px;
    }
    .avatars-container {
        gap: 16px;
    }
    .avatar-img {
        width: 76px;
        height: 76px;
    }
    .days-number {
        font-size: 56px;
    }
    .wish-grid, .whispers-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .whisper-note-card {
        aspect-ratio: 1.1 / 1;
    }
}

/* Sync Status Banner */
.sync-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.sync-banner.local-mode {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: hsl(45, 90%, 25%);
}

.sync-banner.local-mode .banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffc107;
    box-shadow: 0 0 8px #ffc107;
}

.sync-banner.cloud-mode {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: hsl(120, 70%, 20%);
}

.sync-banner.cloud-mode .banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    box-shadow: 0 0 8px #28a745;
    animation: blink-dot 2s infinite ease-in-out;
}

@keyframes blink-dot {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ================= PASSWORD OVERLAY LOCK SCREEN ================= */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(255, 240, 245, 0.75) 0%, rgba(255, 228, 225, 0.85) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    padding: 20px;
    box-sizing: border-box;
}

.password-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.password-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 50px rgba(255, 117, 140, 0.12), 
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lock-heart-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-heart {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 10px rgba(255, 117, 140, 0.3));
    animation: lock-pulse 2s infinite ease-in-out;
}

.lock-icon-inner {
    position: absolute;
    font-size: 26px;
    color: #ffffff;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

@keyframes lock-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 10px rgba(255, 117, 140, 0.3));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 8px 18px rgba(255, 117, 140, 0.5));
    }
}

.lock-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    background: linear-gradient(135deg, hsl(345, 80%, 45%), hsl(25, 90%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lock-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.password-input-group {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 117, 140, 0.25);
    border-radius: 18px;
    padding: 6px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.03);
    transition: var(--transition-smooth);
}

.password-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(255, 117, 140, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

#access-password-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--text-main);
    width: 100%;
}

#access-password-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

#btn-submit-password {
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 0 24px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 117, 140, 0.25);
    transition: var(--transition-bounce);
}

#btn-submit-password:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 117, 140, 0.35);
}

#btn-submit-password:active {
    transform: scale(0.95);
}

.password-error {
    color: hsl(354, 70%, 54%);
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: block;
    animation: fade-in 0.3s ease;
    transition: var(--transition-smooth);
}

.password-error.hidden {
    display: none !important;
}

/* Card Shake Animation for wrong password */
.shake-anim {
    animation: card-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes card-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* App container unlock slide in */
.app-container.unlocked-entry {
    animation: app-slide-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes app-slide-in {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

