/* Sorbit IR Site - Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography enhancements */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Chat container fixed height */
#chat-container {
    min-height: 500px;
}

/* Messages scrollbar */
#messages::-webkit-scrollbar {
    width: 6px;
}

#messages::-webkit-scrollbar-track {
    background: transparent;
}

#messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

#messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Typing indicator animation */
.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #9ca3af;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

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

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

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Input focus state */
input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:active:not(:disabled) {
    transform: scale(0.98);
}

/* Message bubble animations */
#messages > div {
    animation: message-slide-in 0.3s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    #chat-container {
        max-height: 60vh;
    }

    #chat-interface {
        height: 60vh !important;
    }
}

/* Link styling in messages */
#messages a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

#messages a:hover {
    text-decoration-thickness: 2px;
}

/* Loading state for send button */
#send-btn:disabled {
    cursor: not-allowed;
}

/* Form validation styles */
input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}

/* Gradient text effect for headings */
.gradient-text {
    background: linear-gradient(135deg, #38b6ff, #00bf63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.bg-white\/10 {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
