body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

#chat-window {
    height: calc(100vh - 140px);
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 10px;
}

#input-container {
    border: 1px solid #e5e7eb;
    background-color: white;
    padding: 10px;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

#user-input {
    resize: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    border: none;
    padding: 8px;
    max-height: 150px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4f46e5;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: #4f46e5;
  border-radius: 50%;
  display: inline-block;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

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

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    body {
        background-size: cover;
        background-attachment: scroll;
    }
    
    #chat-window {
        height: calc(100vh - 120px);
        padding: 6px;
    }
    
    #input-container {
        padding: 8px;
        gap: 6px;
        border-radius: 0.75rem;
    }
    
    #user-input {
        font-size: 0.9rem;
        padding: 6px;
    }
    
    .spinner {
        width: 20px;
        height: 20px;
        border-width: 3px;
    }
}

@media (max-width: 480px) {
    #chat-window {
        height: calc(100vh - 100px);
        padding: 4px;
    }
    
    #input-container {
        padding: 6px;
        gap: 4px;
        border-radius: 0.5rem;
    }
    
    #user-input {
        font-size: 0.85rem;
        padding: 4px;
    }
    
    .spinner {
        width: 18px;
        height: 18px;
        border-width: 2.5px;
    }
}