/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* Mode Containers */
.chat-mode {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-height: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.chat-mode {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}


/* Floating Chat Icon */
.chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--gradient-yellow-blue);
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-icon:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.chat-icon i {
    color: white;
    font-size: 28px;
    -webkit-animation: bounce 2s infinite;
    animation: bounce 2s infinite;
}

/* Chat Window - Initially Hidden */
.chat-window {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 500px;
    height: 580px;
    background: white;
    border-radius: 15px;
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

.chat-window.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-animation: slideUp 0.4s ease forwards;
    animation: slideUp 0.4s ease forwards;
}

.chat-window.closing {
    -webkit-animation: slideDown 0.4s ease forwards;
    animation: slideDown 0.4s ease forwards;
}

/* Ensure the window stays visible during animation */
.chat-window.closing {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

/* Mobile full-screen class */
.chat-window.mobile-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 9999;
    -webkit-animation: slideInUp 0.3s ease forwards;
    animation: slideInUp 0.3s ease forwards;
}

/* Ensure content is properly sized in full-screen mode */
.chat-window.mobile-fullscreen .chat-mode,
.chat-window.mobile-fullscreen .quick-actions-mode {
    height: 100%;
}

/* Hide chat icon when in full-screen mode */
.chat-window.mobile-fullscreen~.chat-icon {
    display: none !important;
}

/* Chat Header */
.chat-header {
    background: var(--gradient-blue-yellow);
    color: white;
    padding: 15px 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    max-height: 88px;
}

.header-left sedo-h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 3px;
}

/* Online Status */
.online-status {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    opacity: 0.9;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    -webkit-box-shadow: 0 0 0 2px rgba(0, 209, 178, 0.3), 0 0 10px 2px rgba(0, 209, 178, 0.5);
    box-shadow: 0 0 0 2px rgba(0, 209, 178, 0.3), 0 0 10px 2px rgba(0, 209, 178, 0.5);
    -webkit-animation: pulse 2s infinite;
    animation: pulse 2s infinite;
}

.status-text {
    color: white;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.header-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 15px;
}

/* Header Button */
.header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    cursor: pointer;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.confirm-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 88px);
    background-color: rgba(51, 51, 51, 0.372);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-message.active {
    opacity: 1;
    visibility: visible;
}

.confirm-box {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    width: min(380px, 90%);
    box-shadow: var(--shadow-heavy);
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirm-message.active .confirm-box {
    transform: translateY(0);
}

#confirmText {
    color: var(--dark-gray);
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    padding: 0 10px;
    display: block;
}

.confirm-buttons {
    display: flex;
    gap: 28px;
    justify-content: center;
}

.confirm-btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: min(120px, 100%);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    outline: none;
    text-align: center;
}

.confirm-btn:focus {
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.3);
}

#confirmNoBtn,
#confirmYesBtn {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}


#confirmNoBtn:hover,
#confirmYesBtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .confirm-box {
        padding: 24px;
        width: 85%;
    }

    .confirm-buttons {
        gap: 12px;
    }

    #confirmText {
        font-size: 16px;
        margin-bottom: 24px;
    }
}