/* FAQ Buttons Styles */
.faq-buttons-container {
    margin: 15px 0;
    padding: 0 10px;
    transition: opacity 0.3s ease;
}

.faq-title {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
    text-align: left;
}

.faq-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-button:hover {
    background: linear-gradient(135deg, #FF6600 0%, #ea580c 100%);
    color: white;
    border-color: #FF6600;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.faq-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.faq-button:active {
    transform: translateX(5px) scale(0.98);
}

/* Chatbot Styles */

#chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

/* Toggle Button Container */
.chatbot-toggle-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6600 0%, #ea580c 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.5);
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-toggle svg {
    width: 28px;
    height: 28px;
}

/* Circular Text Animation */
.circular-text {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 0;
    left: 0;
    animation: rotate 10s linear infinite;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.circular-text text {
    fill: #FF6600;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Noto Sans Ethiopic', 'Poppins', sans-serif;
}

.chatbot-toggle-wrapper.chat-open .circular-text {
    opacity: 0;
}

/* Hide toggle button when chat is open (all screen sizes) */
.chatbot-toggle-wrapper.chat-open {
    display: none !important;
}

/* Chatbot Label Container */
.chatbot-label-container {
    text-align: center;
    margin-top: 8px;
    opacity: 1;
    transition: all 0.3s ease;
    animation: labelPulse 2s ease-in-out infinite;
}

.chatbot-toggle-wrapper.chat-open ~ .chatbot-label-container {
    display: none !important;
}

/* Chatbot Label */
.chatbot-label {
    font-size: 15px;
    font-weight: 700;
    color: #FF6600;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: drop-shadow(0 2px 4px rgba(255, 102, 0, 0.2));
}

.label-text {
    display: inline-block;
    animation: textFloat 2s ease-in-out infinite;
}

.label-icon {
    font-size: 12px;
    display: inline-block;
    animation: iconTwinkle 1.5s ease-in-out infinite;
}

.label-icon:first-child {
    animation-delay: 0s;
}

.label-icon:last-child {
    animation-delay: 0.75s;
}

.label-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    margin-top: 4px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    animation: subtitleFade 2s ease-in-out infinite;
}

@keyframes textFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes iconTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

@keyframes labelPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

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

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

/* Hidden state */
.chatbot-hidden {
    display: none !important;
}

/* Chatbot Window */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 600px;
    max-height: calc(100vh - 150px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

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

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, #FF6600 0%, #ea580c 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.chatbot-avatar svg {
    width: 24px;
    height: 24px;
}

.chatbot-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.chatbot-status {
    font-size: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

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

.chatbot-header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 8px;
    min-width: 40px;
    min-height: 40px;
}

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

.chatbot-header-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.4);
}

.chatbot-header-btn svg {
    width: 24px;
    height: 24px;
}

/* Messages Container */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Messages */
.chatbot-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: fadeIn 0.3s ease-in;
}

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

.chatbot-message-user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot-message-bot .message-avatar {
    background: linear-gradient(135deg, #FF6600 0%, #ea580c 100%);
    color: white;
}

.chatbot-message-user .message-avatar {
    background: #e5e7eb;
    color: #6b7280;
}

.message-avatar svg {
    width: 18px;
    height: 18px;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chatbot-message-bot .message-bubble {
    background: white;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chatbot-message-user .message-bubble {
    background: linear-gradient(135deg, #FF6600 0%, #ea580c 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Typing Indicator */
.typing-bubble {
    display: flex;
    gap: 4px;
    padding: 16px !important;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite;
}

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

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

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* Input Container */
.chatbot-input-container {
    display: flex;
    padding: 16px;
    background: white;
    border-top: 1px solid #e5e7eb;
    gap: 10px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 24px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.2s;
    min-height: 48px;
}

.chatbot-input:focus {
    border-color: #FF6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.chatbot-input::placeholder {
    color: #9ca3af;
}

.chatbot-send-btn {
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF6600 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.2);
}

.chatbot-send-btn:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}

.chatbot-send-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chatbot-send-btn svg {
    width: 22px;
    height: 22px;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        right: 20px;
        max-height: calc(100vh - 140px);
    }

    .chatbot-header {
        padding: 16px;
    }

    .chatbot-messages {
        padding: 16px;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    #chatbot-container {
        bottom: 6px;
        right: 6px;
    }

    .chatbot-toggle-wrapper {
        width: 60px;
        height: 60px;
    }

    .chatbot-toggle {
        width: 44px;
        height: 44px;
    }

    .chatbot-toggle svg {
        width: 20px;
        height: 20px;
    }

    .chatbot-label {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .label-subtitle {
        font-size: 8px;
    }

    .circular-text {
        width: 60px;
        height: 60px;
    }

    .circular-text text {
        font-size: 9px;
    }

    .chatbot-window {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        max-width: 100vw;
        position: fixed;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .chatbot-header {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .chatbot-avatar {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .chatbot-avatar svg {
        width: 18px;
        height: 18px;
    }

    .chatbot-title {
        font-size: 14px;
    }

    .chatbot-status {
        font-size: 10px;
    }

    .status-dot {
        width: 6px;
        height: 6px;
        margin-right: 4px;
    }

    .chatbot-header-btn {
        min-width: 36px;
        min-height: 36px;
        padding: 6px;
    }

    .chatbot-header-btn svg {
        width: 20px;
        height: 20px;
    }

    .chatbot-messages {
        padding: 10px;
        gap: 8px;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .message-bubble {
        max-width: 85%;
        font-size: 13px;
        padding: 8px 12px;
    }

    .chatbot-input-container {
        padding: 8px;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .chatbot-input {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 8px 10px;
        min-height: 40px;
        flex: 1;
        width: auto;
        box-sizing: border-box;
        border-width: 1px;
    }

    .chatbot-send-btn {
        min-width: 40px;
        min-height: 40px;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .chatbot-send-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Better message avatar sizing on mobile */
    .message-avatar {
        width: 28px;
        height: 28px;
    }

    .message-avatar svg {
        width: 16px;
        height: 16px;
    }
}

/* Accessibility */
.chatbot-toggle:focus,
.chatbot-send-btn:focus,
.chatbot-header-btn:focus {
    outline: 2px solid #FF6600;
    outline-offset: 2px;
}
