/* Modal de Confirmação Customizado */

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.confirm-modal {
    background: var(--bg-secondary, #1e1e1e);
    border: 1px solid var(--border-color, #2d2d2d);
    border-radius: 12px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: scaleIn 0.2s ease forwards;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.confirm-modal-icon {
    font-size: 2rem;
    color: var(--accent-primary, #7289da);
}

.confirm-modal-icon.warning {
    color: #ffa500;
}

.confirm-modal-icon.danger {
    color: #dc3545;
}

.confirm-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0;
}

.confirm-modal-message {
    color: var(--text-secondary, #b9bbbe);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.confirm-modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.confirm-modal-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confirm-modal-btn-cancel {
    background: var(--bg-tertiary, #2d2d2d);
    color: var(--text-primary, #ffffff);
}

.confirm-modal-btn-cancel:hover {
    background: var(--bg-hover, #3a3a3a);
}

.confirm-modal-btn-confirm {
    background: var(--accent-primary, #7289da);
    color: #ffffff;
}

.confirm-modal-btn-confirm:hover {
    background: var(--accent-hover, #5b6eae);
}

.confirm-modal-btn-confirm.danger {
    background: #dc3545;
}

.confirm-modal-btn-confirm.danger:hover {
    background: #c82333;
}

.confirm-modal-btn-confirm.warning {
    background: #ffa500;
}

.confirm-modal-btn-confirm.warning:hover {
    background: #ff8c00;
}

/* Material Icons */
.confirm-modal-btn .material-icons {
    font-size: 1.1rem;
}

/* Animação de saída */
.confirm-modal-overlay.closing {
    animation: fadeOut 0.2s ease forwards;
}

.confirm-modal-overlay.closing .confirm-modal {
    animation: scaleOut 0.2s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes scaleOut {
    to {
        transform: scale(0.9);
    }
}

/* Responsivo */
@media (max-width: 480px) {
    .confirm-modal {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .confirm-modal-title {
        font-size: 1.1rem;
    }
    
    .confirm-modal-message {
        font-size: 0.9rem;
    }
    
    .confirm-modal-buttons {
        flex-direction: column;
    }
    
    .confirm-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos para lista de itens a serem excluídos */
.delete-items-list {
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-tertiary, #2d2d2d);
    border-radius: 8px;
    padding: 8px;
    margin: 8px 0;
}

.delete-item-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-secondary, #1e1e1e);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: var(--text-primary, #ffffff);
}

.delete-item-preview:last-child {
    margin-bottom: 0;
}

.delete-item-preview .material-icons {
    font-size: 18px;
    color: var(--text-secondary, #b9bbbe);
}

.delete-item-preview span:not(.material-icons) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delete-more-items {
    text-align: center;
    padding: 8px;
    color: var(--text-secondary, #b9bbbe);
    font-size: 0.85rem;
    font-style: italic;
}

/* Scrollbar personalizada para lista de itens */
.delete-items-list::-webkit-scrollbar {
    width: 6px;
}

.delete-items-list::-webkit-scrollbar-track {
    background: transparent;
}

.delete-items-list::-webkit-scrollbar-thumb {
    background: var(--border-color, #3d3d3d);
    border-radius: 3px;
}

.delete-items-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary, #b9bbbe);
}
