/* ============================================ */
/* MODAL CONFIRM - Modální okno pro potvrzení */
/* ============================================ */

.modal-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
    padding: 20px;
}

.modal-confirm-overlay.hiding {
    animation: fadeOut 0.2s ease-out forwards;
}

.modal-confirm-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    animation: slideInScale 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-confirm-overlay.hiding .modal-confirm-container {
    animation: slideOutScale 0.3s ease-out forwards;
}

.modal-confirm-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-confirm-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.modal-confirm-icon.warning {
    color: #ffc107;
}

.modal-confirm-icon.danger {
    color: #dc3545;
}

.modal-confirm-icon.info {
    color: #17a2b8;
}

.modal-confirm-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.modal-confirm-body {
    padding: 24px;
}

.modal-confirm-message {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.modal-confirm-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.modal-confirm-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    min-width: 100px;
}

.modal-confirm-button-primary {
    background-color: #007bff;
    color: #fff;
}

.modal-confirm-button-primary:hover {
    background-color: #0056b3;
}

.modal-confirm-button-danger {
    background-color: #dc3545;
    color: #fff;
}

.modal-confirm-button-danger:hover {
    background-color: #c82333;
}

.modal-confirm-button-secondary {
    background-color: #6c757d;
    color: #fff;
}

.modal-confirm-button-secondary:hover {
    background-color: #545b62;
}

.modal-confirm-button:active {
    transform: scale(0.98);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideInScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideOutScale {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.9);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-confirm-container {
        max-width: calc(100% - 40px);
        margin: 20px;
    }
    
    .modal-confirm-header,
    .modal-confirm-body,
    .modal-confirm-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .modal-confirm-footer {
        flex-direction: column-reverse;
    }
    
    .modal-confirm-button {
        width: 100%;
    }
}

