/* Import Google Font - Quicksand (cute and modern) */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    color: #2c3e50;
    min-height: 100vh;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><text y="15" font-size="16">💕</text></svg>'), auto;
}

/* Smooth transitions for all interactive elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

button, a, input, textarea {
    transition: all 0.3s ease;
}

/* Dreamy Animated Background */
.dream-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0c3fc 0%, #f5f7fa 50%, #fbc2eb 100%);
    z-index: -1;
    animation: dreamyGradient 45s ease-in-out infinite;
}

/* Smooth gradient animation - chỉ dùng màu pastel pink-purple nhẹ nhàng */
@keyframes dreamyGradient {
    0% {
        background: linear-gradient(135deg, #e0c3fc 0%, #f5f7fa 50%, #fbc2eb 100%);
    }
    16.66% {
        background: linear-gradient(135deg, #e5caf7 0%, #f6f8fb 50%, #f9c7ec 100%);
    }
    33.33% {
        background: linear-gradient(135deg, #ead0f2 0%, #f7f9fc 50%, #f6cded 100%);
    }
    50% {
        background: linear-gradient(135deg, #efd7ed 0%, #f8fafd 50%, #f3d3ee 100%);
    }
    66.66% {
        background: linear-gradient(135deg, #ead0f2 0%, #f7f9fc 50%, #f6cded 100%);
    }
    83.33% {
        background: linear-gradient(135deg, #e5caf7 0%, #f6f8fb 50%, #f9c7ec 100%);
    }
    100% {
        background: linear-gradient(135deg, #e0c3fc 0%, #f5f7fa 50%, #fbc2eb 100%);
    }
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-hearts::before,
.floating-hearts::after {
    content: '💕';
    position: absolute;
    font-size: 30px;
    animation: float 20s infinite;
    opacity: 0.3;
}

.floating-hearts::before {
    left: 20%;
    animation-delay: 0s;
}

.floating-hearts::after {
    content: '💖';
    left: 70%;
    animation-delay: 5s;
}

/* Love Decorations */
.love-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration-heart {
    position: absolute;
    font-size: 40px;
    opacity: 0.15;
    animation: floatSlow 15s ease-in-out infinite;
    filter: blur(1px);
}

.decoration-heart:nth-child(2n) {
    animation-direction: alternate-reverse;
    animation-duration: 18s;
}

.decoration-star {
    position: absolute;
    font-size: 30px;
    opacity: 0.2;
    animation: twinkle 3s ease-in-out infinite, floatSlow 20s ease-in-out infinite;
}

.decoration-star:nth-child(2n) {
    animation-delay: 1s;
}

.decoration-cloud {
    position: absolute;
    font-size: 50px;
    opacity: 0.1;
    animation: drift 30s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) translateX(10px) rotate(5deg);
    }
    66% {
        transform: translateY(-10px) translateX(-10px) rotate(-5deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(50px);
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
    position: relative;
}

/* Settings Button */
.settings-btn {
    position: absolute;
    top: 0;
    right: 120px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #764ba2;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) rotate(90deg);
    box-shadow: 0 6px 18px rgba(118, 75, 162, 0.4);
}

/* Logout Button */
.logout-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #667eea;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-pics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

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

.heart-icon {
    font-size: 30px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
}

.title {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 700;
}

.anniversary-info {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.anniversary-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.anniversary-input {
    padding: 10px 20px;
    font-size: 18px;
    border: 2px solid #667eea;
    border-radius: 10px;
    background: white;
    margin-bottom: 10px;
    text-align: center;
}

.time-together {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
    margin-top: 10px;
}

/* Sticky Notes */
.sticky-notes-container {
    position: relative;
    min-height: 400px;
    margin-bottom: 40px;
}

.sticky-note {
    position: absolute;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #fff9b0 0%, #fff3c4 100%);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    cursor: move;
    transform: rotate(-2deg);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: noteAppear 0.5s ease;
}

@keyframes noteAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(-2deg);
    }
}

.sticky-note:nth-child(2) {
    background: linear-gradient(135deg, #ffd6e8 0%, #ffe5f0 100%);
    transform: rotate(3deg);
}

.sticky-note:nth-child(3) {
    background: linear-gradient(135deg, #c2f0ff 0%, #d9f5ff 100%);
    transform: rotate(-3deg);
}

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

.sticky-note textarea {
    width: 100%;
    height: 130px;
    background: transparent;
    border: none;
    resize: none;
    font-family: 'Comic Sans MS', cursive;
    font-size: 14px;
    color: #333;
    outline: none;
}

.note-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s;
}

.sticky-note:hover .note-delete {
    opacity: 1;
}

.add-note-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s;
}

.add-note-btn:hover {
    transform: scale(1.05);
}

/* Recommendations Section */
.recommendations-section {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.rec-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.rec-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rec-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.rec-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.rec-card p {
    font-size: 16px;
    color: #555;
}

/* Chat Container */
.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: height 0.3s;
    z-index: 1000;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 18px;
}

.toggle-chat {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
}

.chat-box {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-box.collapsed {
    display: none;
}

.messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
    animation: messageSlide 0.3s ease;
}

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

.message.sent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message.received {
    background: #f0f0f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chat-input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    margin-top: 20px;
    line-height: 1.8;
    color: #555;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #667eea;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 32px;
    }

    .sticky-notes-container {
        min-height: 300px;
    }

    .sticky-note {
        width: 150px;
        height: 150px;
    }

    .chat-container {
        width: 100%;
        right: 0;
        left: 0;
        bottom: 0;
        border-radius: 20px 20px 0 0;
    }

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

/* Calendar Section */
.calendar-section {
    margin: 40px 0;
}

.calendar-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

.calendar-header h3 {
    font-size: 24px;
    color: #667eea;
}

.calendar-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.calendar-nav:hover {
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #667eea;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    font-size: 14px;
}

.calendar-day:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.calendar-day.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
}

.calendar-day.has-event {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event::after {
    content: '💕';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
}

.calendar-day.other-month {
    opacity: 0.3;
}

.add-event-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.add-event-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.upcoming-events {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.upcoming-events h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.event-item {
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s;
    cursor: pointer;
}

.event-item:hover {
    transform: translateX(10px);
}

.event-item h4 {
    color: #667eea;
    margin-bottom: 5px;
}

.event-item p {
    color: #666;
    font-size: 14px;
}

.event-date {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* Event Form */
.event-form, .settings-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-input, .form-textarea {
    padding: 12px 18px;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.save-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

/* Settings Form */
.profile-upload-section {
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    text-align: center;
}

.profile-upload-section h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.profile-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.profile-preview-img.active {
    display: block;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
}

.profile-placeholder.hidden {
    display: none;
}

.file-input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px dashed #667eea;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

.upload-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}

.upload-btn:hover {
    transform: scale(1.05);
}

.form-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
}

.form-section h3 {
    color: #667eea;
    margin-bottom: 15px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

/* Preferences Form */
.preferences-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.preference-box {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.preference-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.preference-box h3 {
    color: #667eea;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.pref-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #667eea;
    border-radius: 15px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    background: white;
}

.pref-input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.heart-divider {
    font-size: 48px;
    animation: heartbeat 1.5s infinite;
    flex-shrink: 0;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-day {
        font-size: 12px;
    }

    .calendar-weekdays {
        font-size: 12px;
    }

    .profile-preview {
        width: 120px;
        height: 120px;
    }

    .preferences-form {
        flex-direction: column;
    }

    .heart-divider {
        transform: rotate(90deg);
    }
}

/* Groq AI Chat Widget (Floating Bottom LEFT) */
.ai-chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ai-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.ai-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.ai-icon {
    font-size: 30px;
    animation: ai-bounce 2s ease-in-out infinite;
}

@keyframes ai-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.ai-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: ai-badge-pulse 1.5s ease-in-out infinite;
}

@keyframes ai-badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 550px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: ai-window-slide-up 0.3s ease-out;
}

.ai-chat-window.active {
    display: flex;
}

@keyframes ai-window-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.ai-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-icon-header {
    font-size: 28px;
}

.ai-header-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.ai-status {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: ai-status-blink 2s ease-in-out infinite;
}

@keyframes ai-status-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.ai-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-welcome-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: ai-message-fade-in 0.4s ease-out;
}

@keyframes ai-message-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: ai-message-fade-in 0.4s ease-out;
}

.ai-message.user {
    flex-direction: row-reverse;
}

.ai-avatar {
    font-size: 32px;
    flex-shrink: 0;
}

.ai-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word;
}

.ai-bubble-assistant {
    background: white;
    color: #2c3e50;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ai-bubble-user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-loading {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ai-loading .ai-bubble {
    display: flex;
    gap: 4px;
    padding: 16px;
}

.ai-loading-dot {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: ai-loading-bounce 1.4s ease-in-out infinite;
}

.ai-loading-dot:nth-child(1) {
    animation-delay: 0s;
}

.ai-loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes ai-loading-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.ai-chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.ai-chat-input:focus {
    border-color: #667eea;
}

.ai-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.ai-send-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ai-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive for AI Chat Widget */
@media (max-width: 480px) {
    .ai-chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        bottom: 80px;
    }

    .ai-chat-toggle {
        width: 56px;
        height: 56px;
    }

    .ai-icon {
        font-size: 26px;
    }
}
