/* Compass Chatbot - Full Page Modern Design */
.chatbot-main {
    padding-top: 70px;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding-bottom: 0;
    overflow: hidden;
    position: relative;
}

/* Animated background effect */
.chatbot-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.chat-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: linear-gradient(135deg, #2664e9d8, #3b83f6d8);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Header - Full Width Glass Effect */
.chat-header {
    background: linear-gradient(135deg, #2564eb, #3b83f6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
    border-radius: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.chat-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.chat-header p {
    font-size: 1.1rem;
    opacity: 0.9; 
    color: #cbd5e1; 
    font-weight: 400; 
} 

/* Messages Area - Centered with Max Width */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: transparent;
    width: 100%;
    margin: 0 auto;
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 10px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(34, 53, 84, 0.3);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 10px;
    transition: background 0.3s;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* Message Containers */
.message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    animation: messageSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

/* Bot Message Styling */
.message-content {
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    color: #0f172a;
    border-bottom-left-radius: 6px;
}

.bot-message .message-content::before {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.bot-message .message-content strong {
    color: #2563eb;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
}

/* User Message Styling */
.user-message .message-content {
    background: linear-gradient(135deg, #2564eb, #3b83f6);
    color: white;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
    border-bottom-right-radius: 6px;
}

/* Message Lists */
.message-content ul {
    margin: 0.75rem 0;
    padding-left: 1.75rem;
}

.message-content li {
    margin: 0.5rem 0;
}

.message-content p {
    margin: 0.5rem 0;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    width: fit-content;
    border-bottom-left-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.typing-dot {
    width: 10px;
    height: 10px;
    background: #2563eb;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

/* Input Area - Full Width with Max Width Container */
.chat-input-container {
    padding: 2rem 2rem 2.5rem;
    background: #f4f4f4e6;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    max-width: 1400px;
    margin: 0 auto;
}

#user-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    resize: none;
    max-height: 200px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#user-input::placeholder {
    color: #64748b;
}

#user-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 4px 20px rgba(0, 0, 0, 0.15);
}

.send-button {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.send-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.send-button:hover::before {
    width: 300px;
    height: 300px;
}

.send-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

.send-button:active {
    transform: translateY(-1px);
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-main {
        padding-top: 60px;
    }

    .chat-container {
        height: calc(100vh - 60px);
    }

    .chat-header {
        padding: 1.75rem 1.5rem;
    }

    .chat-header h1 {
        font-size: 2rem;
    }

    .chat-header p {
        font-size: 0.95rem;
    }

    .chat-messages {
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }

    .message {
        max-width: 85%;
    }

    .message-content {
        padding: 1.25rem 1.5rem;
        font-size: 0.95rem;
    }

    .chat-input-container {
        padding: 1.5rem 1rem;
    }

    .input-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }

    #user-input {
        padding: 1rem 1.25rem;
    }

    .send-button {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .chat-messages {
        max-width: 900px;
    }

    .input-wrapper {
        max-width: 900px;
    }
}

/* Large screens - ensure content doesn't get too wide */
@media (min-width: 1600px) {
    .chat-messages {
        max-width: 1600px;
    }

    .input-wrapper {
        max-width: 1600px;
    }
}