* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    background-color: #f8e9ec;
    background-image: linear-gradient(45deg, #f8e9ec 0%, #ffdee5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    transition: background-color 0.5s ease-out, color 0.5s ease-out;
}

body.dark-mode {
    background-color: #2d2123;
    background-image: linear-gradient(45deg, #2d2123 0%, #20181a 100%);
    color: #e6e6e6;
}

.dark-mode .card {
    background-color: #121212;
    border-color: rgba(255, 107, 149, 0.3);
    box-shadow: 0 15px 35px rgba(255, 107, 149, 0.15);
}

.dark-mode h1,
.dark-mode .message,
.dark-mode .special-text {
    color: #ff8bb3;
}

.dark-mode .question {
    color: #d0d0d0;
}

.dark-mode .sakura-divider {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="10" viewBox="0 0 100 10"><path d="M 0,5 C 20,-5 30,15 50,5 C 70,-5 80,15 100,5" stroke="%23ff8bb3" stroke-width="2" fill="none" /></svg>') repeat-x;
}

.dark-mode .blossom {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M20 0C18 10 10 18 0 20C10 22 18 30 20 40C22 30 30 22 40 20C30 18 22 10 20 0Z" fill="%23ff8bb3" opacity="0.7"/></svg>');
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    cursor: pointer;
}

.theme-toggle label {
    width: 65px;
    height: 32px;
    position: relative;
    display: block;
    background: linear-gradient(45deg, #ffecf0, #fff5f8);
    border-radius: 30px;
    box-shadow: inset 0px 3px 8px rgba(255, 107, 149, 0.2), 0 3px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid rgba(255, 182, 193, 0.5);
    box-sizing: border-box;
}

.theme-toggle label:after {
    content: "";
    width: 26px;
    height: 26px;
    position: absolute;
    top: 1px;
    left: 2px;
    background: linear-gradient(45deg, #ffcc89, #ff9cbb);
    border-radius: 50%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.theme-toggle input {
    width: 0;
    height: 0;
    visibility: hidden;
    position: absolute;
}

.theme-toggle input:checked + label {
    background: linear-gradient(45deg, #282839, #262338);
    border-color: rgba(123, 104, 238, 0.4);
}

.theme-toggle input:checked + label:after {
    left: calc(100% - 28px);
    transform: translateX(0);
    background: linear-gradient(45deg, #7986cb, #5c6bc0);
}

.theme-toggle label svg {
    position: absolute;
    width: 14px;
    top: 7px;
    z-index: 100;
    transition: 0.3s;
}

.theme-toggle label svg.sun {
    left: 7px;
    fill: none;
    stroke: #ff6b95;
    stroke-width: 2;
}

.theme-toggle label svg.moon {
    right: 7px;
    fill: #5c6bc0;
    transform: scale(0.85);
}

.theme-toggle input:checked + label svg.sun {
    stroke: #ffb6c1;
    opacity: 0.6;
}

.theme-toggle input:checked + label svg.moon {
    fill: #e0e0ff;
}

.container {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    z-index: 10;
    max-height: 90vh;
    overflow-y: auto;
}

.card {
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(255, 138, 188, 0.2);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 2px solid rgba(255, 182, 193, 0.3);
}

.card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ffb6c1, #ffc8dd, #ffb6c1);
    border-radius: 5px 5px 0 0;
}

.card-content {
    position: relative;
    z-index: 2;
}

h1 {
    color: #ff6b95;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 2.2rem;
    text-shadow: 1px 1px 2px rgba(255, 107, 149, 0.1);
}

.special-text {
    color: #ff4d88;
    font-weight: 700;
    position: relative;
}

.special-text:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffc8dd, #ff6b95);
    border-radius: 2px;
}

.gorgeous {
    background: linear-gradient(45deg, #ff6b95, #ff8bb3, #ff6b95);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 2s linear infinite;
    text-shadow: 0 0 5px rgba(255, 107, 149, 0.3);
    letter-spacing: 0.5px;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.dark-mode .gorgeous {
    background: linear-gradient(45deg, #ff8bb3, #ffacc7, #ff8bb3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 5px rgba(255, 139, 179, 0.3);
}

.sakura-divider {
    height: 15px;
    margin: 15px auto;
    width: 80%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="10" viewBox="0 0 100 10"><path d="M 0,5 C 20,-5 30,15 50,5 C 70,-5 80,15 100,5" stroke="%23ffb6c1" stroke-width="2" fill="none" /></svg>') repeat-x;
    background-size: 100px 10px;
    opacity: 0.7;
}

.question {
    font-size: 26px;
    margin-bottom: 40px;
    color: #555;
    font-weight: 500;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.yes-btn {
    background: linear-gradient(45deg, #ff6b95, #ff8bb3);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 149, 0.4);
}

.yes-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 149, 0.5);
}

.yes-btn:active {
    transform: translateY(2px);
}

.yes-btn:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    width: 30px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(20deg);
    transition: all 0.6s;
}

.yes-btn:hover:before {
    left: 120%;
}

.no-btn {
    background: linear-gradient(45deg, #ff8bb3, #ff6b95);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 149, 0.4);
    border: none;
}

.no-btn:hover {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.hearts-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6b95"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-200vh) rotate(720deg);
        opacity: 0;
    }
}

.hearts-celebration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.message {
    margin-top: 20px;
    margin-bottom: 30px;
    color: #ff6b95;
    font-weight: 600;
    font-size: 22px;
}

.cute-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    position: relative;
}

.cat-svg {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(255, 107, 149, 0.3));
    animation: bounce 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.dark-mode .cat-svg g {
    fill: #ff8bb3;
}

.cat-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.cat-heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6b95"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.8;
    animation: catHeartFloat 4s ease-in-out infinite;
}

.dark-mode .cat-heart {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff8bb3"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat;
}

.ch1 {
    top: -15px;
    left: 50px;
    animation-delay: 0s;
}

.ch2 {
    top: 30px;
    right: 60px;
    animation-delay: 1.2s;
}

.ch3 {
    bottom: 10px;
    left: 60px;
    animation-delay: 0.6s;
}

.ch4 {
    top: 10px;
    right: 40px;
    transform: scale(0.7);
    animation-delay: 2s;
}

@keyframes catHeartFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.2);
    }
}

.next-step {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.next-step p {
    font-size: 18px;
    font-weight: 500;
    color: #777;
    margin-bottom: 15px;
}

.dark-mode .next-step p {
    color: #bbb;
}

.location-arrow {
    display: none;
}

.location-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.location-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.selected-location-message {
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.selected-location-message.show {
    opacity: 1;
    transform: translateY(0);
}

.cherry-blossoms {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.blossom {
    position: absolute;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M20 0C18 10 10 18 0 20C10 22 18 30 20 40C22 30 30 22 40 20C30 18 22 10 20 0Z" fill="%23ffb6c1" opacity="0.7"/></svg>');
    background-size: contain;
    pointer-events: none;
}

@keyframes fall {
    0% {
        opacity: 0;
        transform: translate(0, -10vh) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--random-x) * 10vw), calc(100vh + 20px)) rotate(calc(var(--random-r) * 360deg));
    }
}

.cute-arrow-pointer {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: 20;
    animation: floatArrow 3s ease-in-out infinite;
}

#yes-arrow {
    right: 30px;
    top: 58%;
}

#success-arrow {
    right: -90px;
    bottom: 10px;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

@keyframes floatArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.arrow-circle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff5f8, #ffecf0);
    border: 2px solid #ff8bb3;
    box-shadow: 0 4px 10px rgba(255, 139, 179, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-arrow {
    transform: rotate(0deg) !important;
}

.right-arrow .arrow-shaft {
    width: 30px;
    height: 5px;
    left: 10px;
}

.right-arrow .arrow-head {
    right: 10px;
}

.arrow-shaft {
    position: absolute;
    width: 30px;
    height: 5px;
    background-color: #ff6b95;
    border-radius: 4px;
}

.arrow-head {
    position: absolute;
    width: 0;
    height: 0;
    right: 10px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #ff6b95;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-heart {
    position: absolute;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6b95"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.8;
    animation: floatHeartUp 4s ease-in-out infinite;
}

.h1 {
    top: -10px;
    left: 10px;
    animation: floatHeartUp 4s ease-in-out infinite;
    animation-delay: 0s;
}

.h2 {
    top: 10px;
    left: -5px;
    transform: scale(0.7);
    animation: floatHeartUp 4s ease-in-out infinite;
    animation-delay: 1s;
}

.h3 {
    top: 5px;
    left: 40px;
    transform: scale(0.6);
    animation: floatHeartUp 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floatHeartUp {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    25% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-40px) scale(0.4);
        opacity: 0;
    }
}

.nervous-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    transform: scale(0.7);
    pointer-events: none;
    animation: nervousShake 0.3s infinite;
}

@keyframes nervousShake {
    0% { transform: scale(0.7) translateX(0) rotate(0deg); }
    25% { transform: scale(0.7) translateX(-3px) rotate(-1deg); }
    50% { transform: scale(0.7) translateX(0) rotate(1deg); }
    75% { transform: scale(0.7) translateX(3px) rotate(-0.5deg); }
    100% { transform: scale(0.7) translateX(0) rotate(0deg); }
}

.datetime-container {
    margin: 20px 0;
}

.datetime-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-end;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.date-input, .time-input, .date-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.date-input label, .time-input label, .date-display label {
    font-size: 14px;
    color: #ff6b95;
    font-weight: 600;
}

.dark-mode .date-input label, .dark-mode .time-input label, .dark-mode .date-display label {
    color: #ff8bb3;
}

.fixed-date {
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 2px solid #ff6b95;
    border-radius: 12px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 107, 149, 0.1);
    width: 100%;
}

.dark-mode .fixed-date {
    background: linear-gradient(135deg, #2d2d2d, #383838);
    border-color: #ff8bb3;
    color: #e6e6e6;
    box-shadow: 0 2px 8px rgba(255, 139, 179, 0.1);
}

.date-input input, .time-input input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 182, 193, 0.5);
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode .date-input input, .dark-mode .time-input input {
    background: #1e1e1e;
    border-color: rgba(255, 107, 149, 0.3);
    color: #e6e6e6;
}

.date-input input:focus, .time-input input:focus {
    border-color: rgba(255, 107, 149, 0.8);
    outline: none;
    box-shadow: 0 4px 10px rgba(255, 107, 149, 0.2);
}

.btn-icon {
    background: none;
    border: none;
    color: #ff6b95;
    cursor: pointer;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.btn-icon:hover {
    background: rgba(255, 107, 149, 0.1);
}

.dark-mode .btn-icon {
    color: #ff8bb3;
}

.dark-mode .btn-icon:hover {
    background: rgba(255, 139, 179, 0.2);
}

.add-btn {
    background: none;
    color: #ff6b95;
    margin: 10px 0 20px;
    padding: 10px 20px;
    box-shadow: none;
    font-size: 16px;
}

.add-btn:hover {
    background: rgba(255, 107, 149, 0.1);
}

.dark-mode .add-btn {
    color: #ff8bb3;
}

.dark-mode .add-btn:hover {
    background: rgba(255, 139, 179, 0.2);
}

.datetime-actions {
    margin-top: 30px;
}

.flatpickr-calendar {
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(255, 107, 149, 0.2);
    border: 2px solid rgba(255, 182, 193, 0.3);
    font-family: 'Quicksand', sans-serif;
    animation: calendar-pop 0.3s ease-out;
    overflow: hidden;
}

@keyframes calendar-pop {
    0% { transform: scale(0.95); opacity: 0; }
    70% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.flatpickr-months {
    background: linear-gradient(45deg, #ff6b95, #ff8bb3);
    padding: 5px 0;
    border-radius: 13px 13px 0 0;
}

.flatpickr-month {
    height: 40px;
}

.flatpickr-current-month {
    padding-top: 5px;
    font-size: 16px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year {
    font-weight: 600;
}

::-webkit-scrollbar,
* ::-webkit-scrollbar {
    width: 10px;
    display: block;
}

::-webkit-scrollbar-track,
* ::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}

::-webkit-scrollbar-thumb,
* ::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ffb6c1, #ff8bb3);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 5px rgba(255, 107, 149, 0.15);
}

::-webkit-scrollbar-thumb:hover,
* ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff6b95, #ffb6c1);
    box-shadow: 0 0 8px rgba(255, 107, 149, 0.3);
}

.dark-mode ::-webkit-scrollbar-thumb,
.dark-mode * ::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff8bb3, #ff6b95);
}

.dark-mode ::-webkit-scrollbar-thumb:hover,
.dark-mode * ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff6b95, #ff8bb3);
    box-shadow: 0 0 12px rgba(255, 139, 179, 0.5);
}

.scrollbar-decoration {
    position: fixed;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body:hover .scrollbar-decoration {
    opacity: 1;
}

.scrollbar-heart {
    position: absolute;
    width: 12px;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6b95"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat;
    background-size: contain;
    animation: floatScrollbarHeart 3s ease-in-out infinite;
}

.dark-mode .scrollbar-heart {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff8bb3"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat;
}

.scroll-h1 {
    top: -5px;
    right: 5px;
    animation-delay: 0s;
}

.scroll-h2 {
    top: 10px;
    right: 0px;
    transform: scale(0.7);
    animation-delay: 1s;
}

.scroll-h3 {
    top: 18px;
    right: 8px;
    transform: scale(0.8);
    animation-delay: 1.5s;
}

@keyframes floatScrollbarHeart {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.toast {
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.custom-btn.shake {
    animation: shake 0.5s ease-in-out;
}

.location-counter {
    background: linear-gradient(45deg, #ff6b95, #ff8bb3);
    color: white;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin: 10px 0;
    box-shadow: 0 4px 10px rgba(255, 107, 149, 0.25);
    animation: badge-pop 0.3s ease-out;
}

@keyframes badge-pop {
    0% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.dark-mode .location-counter {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes svgWiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.info-icon {
    cursor: help;
    display: inline-block;
    margin-left: 5px;
    font-size: 16px;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.info-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

.local-storage-info {
    background: rgba(255, 107, 149, 0.9);
    color: white;
    border-radius: 20px;
    padding: 10px 15px;
    margin-top: 15px;
    font-size: 14px;
    animation: fadeIn 0.5s ease-out forwards;
    box-shadow: 0 4px 10px rgba(255, 107, 149, 0.3);
}

.dark-mode .local-storage-info {
    background: rgba(255, 139, 179, 0.9);
}

.clear-data-btn {
    background: none;
    border: 2px solid rgba(255, 107, 149, 0.5);
    color: #ff6b95;
    margin-top: 20px;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-data-btn:hover {
    background: rgba(255, 107, 149, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 149, 0.2);
}

.dark-mode .clear-data-btn {
    color: #ff8bb3;
    border-color: rgba(255, 139, 179, 0.5);
}

.dark-mode .clear-data-btn:hover {
    background: rgba(255, 139, 179, 0.15);
    box-shadow: 0 4px 8px rgba(255, 139, 179, 0.3);
}

.clear-data-confirmation {
    margin-top: 10px;
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 20px;
    display: inline-block;
    animation: fadeIn 0.5s ease-out;
    transition: opacity 0.5s ease;
}

.dark-mode .clear-data-confirmation {
    background: rgba(76, 175, 80, 0.2);
    color: #8BC34A;
}

#food-card {
    max-width: 550px;
}

.final-message {
    margin: 20px 0;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 107, 149, 0.05);
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.final-message.show {
    transform: translateY(0);
    opacity: 1;
}

#food-next-btn {
    position: relative;
    overflow: hidden;
}

#food-next-btn:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    animation: buttonShine 2s infinite;
}

@keyframes buttonShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.heart-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.cursor-heart {
    position: fixed;
    width: 15px;
    height: 15px;
    pointer-events: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6b95"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat;
    background-size: contain;
    animation: floatUp 1.5s ease-out forwards;
    opacity: 0.8;
}

.dark-mode .cursor-heart {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff8bb3"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat;
}

@keyframes floatUp {
    0% {
        transform: translate(0, 0) scale(0.3);
        opacity: 0.8;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        transform: translate(calc(var(--random-x, 0) * 30px), -60px) scale(0);
        opacity: 0;
    }
}

#drinks-card {
    position: relative;
}

.custom-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-color: #f9f7f7;
    color: #333;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: #fff9fa;
}

.custom-btn.selected {
    background-color: #ffe2e9;
    border-color: #ff6b95;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 149, 0.25);
    animation: selected-pulse 1.5s infinite;
}

.custom-btn.selected:after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: white;
    color: #ff6b95;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: check-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark-mode .custom-btn {
    background-color: #2a2329;
    color: #e6e6e6;
    border-color: #3d323a;
}

.dark-mode .custom-btn:hover {
    background-color: #332830;
}

.dark-mode .custom-btn.selected {
    background-color: #3c2a33;
    border-color: #ff6b95;
    box-shadow: 0 4px 12px rgba(255, 107, 149, 0.15);
    animation: selected-pulse-dark 1.5s infinite;
}

@keyframes selected-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 149, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 149, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 149, 0); }
}

@keyframes selected-pulse-dark {
    0% { box-shadow: 0 0 0 0 rgba(255, 139, 179, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(255, 139, 179, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 139, 179, 0); }
}

@keyframes check-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#completion-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: 20;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 550px;
    width: 90%;
}

#completion-card.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.completion-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.food-selection-status, .drink-selection-status {
    margin: 15px 0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.food-selection-status {
    background: rgba(255, 107, 149, 0.05);
    color: #888;
}

.drink-selection-status {
    background: rgba(107, 181, 255, 0.05);
    color: #888;
}

.food-selection-status.active {
    background: rgba(255, 107, 149, 0.1);
    color: #ff6b95;
    font-weight: 500;
}

.drink-selection-status.active {
    background: rgba(107, 181, 255, 0.1);
    color: #5c6bc0;
    font-weight: 500;
}

.dark-mode .food-selection-status.active {
    background: rgba(255, 139, 179, 0.15);
    color: #ff8bb3;
}

.dark-mode .drink-selection-status.active {
    background: rgba(139, 164, 255, 0.15);
    color: #8b93ff;
}

@media (max-width: 500px) {
    ::-webkit-scrollbar,
    * ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-thumb,
    * ::-webkit-scrollbar-thumb {
        border-width: 2px;
    }

    .scrollbar-decoration {
        right: 5px;
        bottom: 5px;
        width: 30px;
        height: 30px;
    }
    
    .scrollbar-heart {
        width: 10px;
        height: 10px;
    }
    
    .nervous-cat {
        transform: scale(0.5);
        top: 5px;
        left: 5px;
    }
    
    @keyframes nervousShake {
        0% { transform: scale(0.5) translateX(0) rotate(0deg); }
        25% { transform: scale(0.5) translateX(-3px) rotate(-1deg); }
        50% { transform: scale(0.5) translateX(0) rotate(1deg); }
        75% { transform: scale(0.5) translateX(3px) rotate(-0.5deg); }
        100% { transform: scale(0.5) translateX(0) rotate(0deg); }
    }
}

/* Main style for the new tile buttons */
.tile-btn {
    position: relative;
    border: 3px solid transparent;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tile-btn .tile-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 10px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.tile-btn:hover img {
    transform: scale(1.1);
}


.tile-btn.selected {
    border-color: #ff6b95;
    box-shadow: 0 0 15px rgba(255, 107, 149, 0.5);
}

.dark-mode .tile-btn.selected {
    border-color: #ff8bb3;
    box-shadow: 0 0 15px rgba(255, 139, 179, 0.5);
}

/* The checkmark for the selected tile */
.tile-btn.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: #ff6b95;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: check-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes check-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.custom-input-container {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.custom-text-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 182, 193, 0.5);
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.dark-mode .custom-text-input {
    background: #1e1e1e;
    border-color: rgba(255, 107, 149, 0.3);
    color: #e6e6e6;
}

.custom-text-input:focus {
    border-color: rgba(255, 107, 149, 0.8);
    outline: none;
    box-shadow: 0 4px 10px rgba(255, 107, 149, 0.2);
}

.word-counter {
    font-size: 12px;
    text-align: right;
    color: #888;
    margin-top: 5px;
}

.dark-mode .word-counter {
    color: #aaa;
}

.note-container {
    margin: 20px 0;
}

#note-textarea,
#custom-plan-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid rgba(255, 182, 193, 0.5);
    border-radius: 15px;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    background: white;
    color: #333;
    resize: vertical;
    transition: all 0.3s ease;
}

.dark-mode #note-textarea,
.dark-mode #custom-plan-textarea {
    background: #1e1e1e;
    border-color: rgba(255, 107, 149, 0.3);
    color: #e6e6e6;
}

#note-textarea:focus,
#custom-plan-textarea:focus {
    border-color: rgba(255, 107, 149, 0.8);
    outline: none;
    box-shadow: 0 4px 10px rgba(255, 107, 149, 0.2);
}

.note-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}


/* Map container styling */
.map-container {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 107, 149, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.dark-mode .map-container {
    background: rgba(255, 139, 179, 0.1);
}

.map-instruction {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.dark-mode .map-instruction {
    color: #bbb;
}

#location-map {
    height: 300px;
    width: 100%;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 149, 0.2);
    overflow: hidden;
}

.dark-mode #location-map {
    border-color: rgba(255, 107, 149, 0.3);
}

.map-selected-info {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    text-align: center;
}

.dark-mode .map-selected-info {
    background: rgba(76, 175, 80, 0.2);
}

.selected-coordinates {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 600;
    margin: 0;
}

.dark-mode .selected-coordinates {
    color: #8BC34A;
}

.big-message {
    font-size: 24px;
    font-weight: 600;
    color: #ff6b95;
    margin: 15px 0;
}

.dark-mode .big-message {
    color: #ff8bb3;
}
