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

:root {
    --christmas-red: #c41e3a;
    --christmas-green: #0f7d3a;
    --christmas-gold: #ffd700;
    --snow-white: #ffffff;
    --dark-bg: #0a1128;
    --card-bg: #1a2238;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-red: rgba(196, 30, 58, 0.5);
    --glow-green: rgba(15, 125, 58, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a1128 0%, #1a2238 50%, #0f1d3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Snowfall Animation */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 60px var(--glow-red);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 60px var(--glow-red);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 80px var(--glow-green);
    }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.santa-icon {
    font-size: 3.5rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--snow-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 20px var(--christmas-gold);
}

.tagline {
    font-size: 1.1rem;
    color: var(--christmas-gold);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Chat Container */
.chat-container {
    flex: 1;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 400px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.welcome-message {
    text-align: center;
    padding: 40px 20px;
}

.santa-avatar {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.welcome-message h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--christmas-gold);
}

.welcome-message p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Suggestion Chips */
.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.chip {
    background: linear-gradient(135deg, var(--christmas-red), #d4345f);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
    background: linear-gradient(135deg, #d4345f, var(--christmas-red));
}

.chip:active {
    transform: translateY(0);
}

/* Chat Messages */
.message {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

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

.message-avatar {
    font-size: 2rem;
    flex-shrink: 0;
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 15px;
    max-width: 80%;
    border: 1px solid var(--border-color);
}

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

.message.user .message-content {
    background: linear-gradient(135deg, var(--christmas-green), #127f47);
    border-color: var(--christmas-green);
}

.message.santa .message-content {
    background: linear-gradient(135deg, var(--christmas-red), #d4345f);
    border-color: var(--christmas-red);
}

.message-text {
    line-height: 1.6;
    font-size: 1rem;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--christmas-gold);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Input Container */
.input-container {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2),
                0 0 40px var(--glow-green);
    border: 1px solid var(--border-color);
}

.input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#messageInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 15px 25px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

#messageInput:focus {
    outline: none;
    border-color: var(--christmas-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

#messageInput::placeholder {
    color: var(--text-secondary);
}

.send-btn {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.send-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.6);
}

.send-btn:active {
    transform: scale(0.95);
}

.send-icon {
    font-size: 1.5rem;
}

.disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Scrollbar */
.chat-container::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--christmas-red);
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: var(--christmas-green);
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .santa-icon {
        font-size: 2.5rem;
    }
    
    .welcome-message h2 {
        font-size: 1.5rem;
    }
    
    .suggestion-chips {
        flex-direction: column;
    }
    
    .chip {
        width: 100%;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .chat-container {
        max-height: calc(100vh - 450px);
    }
}
