* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f1f38 0%, #2d2d2d 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.main-container {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #4A8BFF, #6BCB77, #4A8BFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
}

.chat-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #1c407f 0%, #14325e 100%);
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logo-container {
    position: relative;
    margin-bottom: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4A8BFF 0%, #6BCB77 100%);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    animation: pulse 2s infinite;
    box-shadow: 0 0 25px rgba(107, 203, 119, 0.5);
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border: 2px solid #6BCB77;
    border-radius: 50%;
    opacity: 0;
    animation: pulsate 3s ease-out infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 1s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 2s;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.header-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.connection-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6BCB77;
    opacity: 0.6;
    animation: blink 1.4s infinite both;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120" preserveAspectRatio="none"><path fill="%231c407f" d="M0,64L80,53.3C160,43,320,21,480,32C640,43,800,85,960,96C1120,107,1280,85,1360,74.7L1440,64L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.chat-messages {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    background: #252525;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    animation: fadeIn 0.5s ease;
}

.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #4A8BFF 0%, #3a6bc9 100%);
    border-bottom-right-radius: 5px;
}

.bot-message {
    align-self: flex-start;
    background: linear-gradient(135deg, #3D3D3D 0%, #2d2d2d 100%);
    border-bottom-left-radius: 5px;
    border: 1px solid #4a4a4a;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    background: #2d2d2d;
    border-radius: 18px;
    width: fit-content;
    border: 1px solid #4a4a4a;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #6BCB77;
    border-radius: 50%;
    opacity: 0.6;
    animation: typingBounce 1s infinite alternate;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #2d2d2d;
    border-top: 1px solid #3d3d3d;
}

.quick-reply {
    padding: 8px 15px;
    background: linear-gradient(135deg, #4A8BFF 0%, #3a6bc9 100%);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.quick-reply:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.emoji-picker {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    padding: 10px;
    background: #2d2d2d;
    border-top: 1px solid #3d3d3d;
    display: none;
}

.emoji {
    font-size: 1.5rem;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
    padding: 5px;
}

.emoji:hover {
    transform: scale(1.3);
}

.chat-input-container {
    display: flex;
    padding: 15px;
    background-color: #2d2d2d;
    border-top: 1px solid #3d3d3d;
    align-items: center;
}

.input-wrapper {
    display: flex;
    flex: 1;
    background: #3d3d3d;
    border-radius: 24px;
    padding: 5px 15px;
    align-items: center;
    margin-right: 10px;
}

#user-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 16px;
    background: transparent;
    color: white;
}

#emoji-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #7b7b7b;
    margin-right: 5px;
    transition: color 0.2s;
}

#emoji-btn:hover {
    color: #6BCB77;
}

#send-btn {
    background: linear-gradient(to right, #4A8BFF, #6BCB77);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(107, 203, 119, 0.4);
}

#send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(107, 203, 119, 0.5);
}

#send-btn i {
    font-size: 18px;
}

.instructions {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.instructions h2 {
    color: #6BCB77;
    margin-bottom: 15px;
}

.instructions ul {
    list-style-type: none;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
    position: relative;
}

.instructions li:before {
    content: "•";
    color: #4A8BFF;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(107, 203, 119, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(107, 203, 119, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(107, 203, 119, 0); }
}

@keyframes pulsate {
    0% { width: 90px; height: 90px; opacity: 1; }
    100% { width: 130px; height: 130px; opacity: 0; }
}

@keyframes blink {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typingBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
    100% { transform: translate(0, 0); }
}

@keyframes opacityChange {
    0% { opacity: 0.2; }
    50% { opacity: 0.6; }
    100% { opacity: 0.2; }
}

/* Responsive design */
@media (max-width: 768px) {
    h1 { 
        font-size: 2.5rem; 
    }
    
    .chat-container { 
        max-width: 100%; 
    }
    
    .header-title { 
        font-size: 1.5rem; 
    }
    
    .quick-replies {
        flex-direction: column;
    }
    
    .emoji-picker {
        grid-template-columns: repeat(6, 1fr);
    }
}