/* Custom Card */
.main-card {
    background: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 20px;
    border: none;
}

/* Tab Navigation */
.nav-tabs {
    border-bottom: none;
    background: #f8f9fa;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: white;
    color: #007bff;
    border-bottom: 3px solid #007bff;
}

.nav-tabs .nav-link:hover {
    background: #e9ecef;
    color: #007bff;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 60px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6c757d;
    margin: 0 1px;
    animation: typing 1.4s infinite ease-in-out;
}

.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: 0s;
}

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

/* TTS Controls */
.tts-controls {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tts-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 15px;
    padding: 4px 8px;
    color: white;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tts-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.tts-btn.speaking {
    background: rgba(255, 255, 255, 0.4);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.voice-settings {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.voice-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.voice-control:last-child {
    margin-bottom: 0;
}

.voice-select,
.voice-range {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.tts-indicator {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 5px;
}

/* Utility Classes */
.gradient-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.gradient-card:hover {
    transform: scale(1.02);
}

.promo-card-1 {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.promo-card-2 {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-bubble {
        max-width: 90%;
    }

    .container {
        padding: 10px;
    }

    .main-card {
        margin: 10px;
        border-radius: 15px;
    }
}

/* Chat Container */
.chat-container {
    height: 50vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 5px;
    border: 1px solid #dee2e6;
}

/* Chat Bubbles */
.chat-bubble {
    width: fit-content;
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 12px;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    margin-left: auto;
    text-align: right;
    border-bottom-right-radius: 4px;
}

.message-sender {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.9;
}

/* Chat Input */
.chat-input-container {
    background: white;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.chat-input {
    border: none;
    outline: none;
    box-shadow: none !important;
    background: transparent;
    padding: 8px 15px;
}

.btn-send-chat {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    transition: all 0.3s ease;
}

.btn-send-chat:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-clear-chat {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    transition: all 0.3s ease;
}

.btn-clear-chat:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* FAQ Styles */
.search-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.search-icon {
    background: white;
    border: none;
    color: #6c757d;
    padding: 12px 15px;
}

.search-input {
    border: none;
    outline: none;
    box-shadow: none !important;
    padding: 12px 15px;
    font-size: 1.1rem;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    border: none;
    background: white;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 0;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}