/* style.css */

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    color: #fff;
}

/* Neon particle canvas */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Chat container */
#chat-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    background: #111 url('https://takenupload.com/69200ccfd62da') no-repeat center center;
    background-size: 150px 150px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 50px #00fff0aa;
    display: flex;
    flex-direction: column;
    height: 80vh;
}

/* Overlay to soften background */
#chat-container::before {
    content: "";
    position: absolute;
    top:0; left:0;
    width: 100%; height: 100%;
    background: rgba(0,195,255,0.05);
    border-radius: 20px;
    pointer-events: none;
}

#header {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #00eaff;
    text-shadow: 0 0 10px #00eaff, 0 0 20px #00c3ff, 0 0 30px #00fff0;
    margin-bottom: 15px;
}

#messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.message {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s forwards;
}

.user {
    background: linear-gradient(120deg, #00c3ff66, #00ff99cc);
    align-self: flex-end;
}

.assistant {
    background: linear-gradient(120deg, #333, #00eaff33);
    border-left: 3px solid #00eaff;
    align-self: flex-start;
}

#input-container {
    display: flex;
    margin-top: 10px;
}

#prompt {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    resize: none;
    background: #111;
    color: #00eaff;
    font-size: 15px;
}

#send-btn {
    padding: 12px 20px;
    margin-left: 10px;
    background: #00c3ff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#send-btn:hover {
    background: #009fd1;
}

/* typing indicator */
.typing {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #00eaff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}
.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Animations */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
    #chat-container { height: 70vh; padding: 15px; }
    #header { font-size: 1.5rem; }
}
