/* ========================================
   LEAVE CHAT MODAL
   Admin confirmation to leave chat
   Matches chat-action-modal design system
   ======================================== */

/* ==================== MODAL BACKDROP ==================== */

#leaveChatModal .modal-backdrop {
    display: none !important;
}

#leaveChatModal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
}

/* ==================== MODAL CONTENT ==================== */

.leave-chat-modal-content {
    max-width: 420px;
}

/* ==================== HEADER ==================== */

.leave-chat-icon {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}

/* ==================== BODY ==================== */

.leave-chat-body {
    padding: 24px !important;
}

.leave-chat-description {
    margin-bottom: 16px;
}

.leave-chat-description p {
    margin: 0;
    font-size: 15px;
    color: #b0b3b8;
    line-height: 1.5;
}

/* Info box */
.leave-chat-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    font-size: 13px;
    color: #8b8e94;
    line-height: 1.5;
}

.leave-chat-info i {
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    color: #6b7280;
}

/* ==================== FOOTER ==================== */

.leave-chat-footer {
    padding: 16px 24px 24px !important;
}

/* Confirm button - red theme */
.leave-chat-btn-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    min-width: 140px;
    justify-content: center;
    font-weight: 600 !important;
}

.leave-chat-btn-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4) !important;
}

.leave-chat-btn-confirm:active:not(:disabled) {
    transform: translateY(0);
}

.leave-chat-btn-confirm:disabled {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #6b7280 !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* ==================== LIGHT THEME ==================== */

html[data-theme='light'] .leave-chat-description p {
    color: #4b5563;
}

html[data-theme='light'] .leave-chat-info {
    background: rgba(0, 0, 0, 0.02);
    color: #65676b;
}

html[data-theme='light'] .leave-chat-info i {
    color: #9ca3af;
}

html[data-theme='light'] .leave-chat-btn-confirm:disabled {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #9ca3af !important;
}

/* ==================== MOBILE RESPONSIVE ==================== */

@media (max-width: 768px) {
    #leaveChatModal.show {
        padding: 16px;
    }
    
    .leave-chat-modal-content {
        max-width: 100%;
    }
    
    .leave-chat-body {
        padding: 20px !important;
    }
    
    .leave-chat-description p {
        font-size: 14px;
    }
    
    .leave-chat-info {
        padding: 12px 14px;
    }
    
    .leave-chat-info span {
        font-size: 13px;
    }
    
    .leave-chat-footer {
        flex-direction: column-reverse !important;
        gap: 10px !important;
        padding: 12px 20px 20px !important;
    }
    
    .leave-chat-footer .chat-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .leave-chat-btn-confirm {
        min-width: auto !important;
    }
}

/* ==================== ANIMATION ==================== */

#leaveChatModal .leave-chat-modal-content {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#leaveChatModal.show .leave-chat-modal-content {
    transform: scale(1);
    opacity: 1;
}

