body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #667eea;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

.chatbot-popup.chatbot-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    z-index: 9999;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.header-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.status-indicator {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-indicator::before {
    content: '●';
    color: #4CAF50;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.close-btn {
    background: rgba(181, 6, 6, 0.6);
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.message {
    margin-bottom: 15px;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    font-size: 0.8rem;
    background: white;
    padding: 11px;
    border-radius: 11px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
    border-left: 4px solid #667eea;
    position: relative;

}

.options-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-btn {
    background: #044b93;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: none !important;
}

.option-btn:hover {
    background: #6b47b2;
    color: #fff;
    border-color: #5a67d8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.option-btn.primary {
    border-color: #044b93;
}

.option-btn.primary:hover {
    background: #6b47b2;
    color: white;
    border-color: #667eea;
}

.option-btn.secondary {
    border-color: none;
    color: #fff;
    background: #cf0501;
    transition: all 0.2s ease;
}


.option-btn.secondary:hover {
    background: linear-gradient(0deg, #910604, #ce0501);
    color: white;
}

.option-btn.danger {
    border-color: #dc3545;
    color: #dc3545;
    background: linear-gradient(135deg, #ffffff, #044b93);
}


.option-btn.danger:hover {
    background: #dc3545;
    color: white;
}

.option-btn.success {
    border-color: none;
    color: #ffffff;
    background: #00a552;
    transition: all 0.2s ease;
}

.option-btn.success:hover {
    background: linear-gradient(0deg, #00552a, #00a451);
    color: #fff;
}

.option-btn.success,
.option-btn.secondary {
    justify-content: center;
    text-align: center;
    border: none !important;
}

.option-btn.link {
    border-color: #6b47b2;
    color: #fff;
}

.option-btn.link:hover {
    background: #6b47b2;
    color: white;
}

.chat-footer {
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #e9ecef;
    min-height: 50px;
}

.navigation-controls {
    display: flex;
    width: 100%;
    margin-bottom: 0;
    padding: 0;
}

.nav-btn-left,
.nav-btn-center,
.nav-btn-right {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav-btn-left {
    justify-content: flex-start;
}

.nav-btn-center {
    justify-content: center;
}

.nav-btn-right {
    justify-content: flex-end;
}

.nav-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 70px;
    max-width: 120px;
    width: 90%;
    justify-content: center;
}

.nav-btn:hover {
    /*background: #667eea;*/
    background: #044b93;
    color: white;
    border-color: #044b93;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.danger {
    border-color: #dc3545;
    color: #dc3545;
}

.nav-btn.danger:hover {
    background: #dc3545;
    color: white;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.5s ease;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.feedback-title {
    color: #667eea;
    text-align: center;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ratings-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 5px 0;
}

.rating-btn {
    padding: 10px 5px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 12px;
}

.rating-btn .emoji {
    font-size: 20px;
}

.rating-btn .rating-text {
    font-size: 10px;
    white-space: nowrap;
}

.rating-btn .rating-value {
    font-size: 10px;
    opacity: 0.7;
}

.rating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.feedback-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.skip-feedback {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    background: #044b93;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.skip-feedback:hover {
    background: #6b47b2;
    color: #fff;
}

@media (max-width: 480px) {
    .chatbot-popup {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-header {
        border-radius: 0;
        padding: 10px;
    }

    .chat-footer {
        border-radius: 0;
    }

    .options-container.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }

    .ratings-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }

    .rating-btn {
        padding: 8px 3px;
    }

    .rating-btn .emoji {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .chatbot-popup.chatbot-fullscreen {
        width: 100vw !important;
        right: 2.5vw;
        height: 70vh !important;
    }
    #chatbot-modal {
        right: 10px;
        left: 10px;
        bottom: 80px;
        width: auto;
        max-height: 90vh;
    }
}