/* dialog_confirm.css */

/* Стилі для діалогу підтвердження */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.confirm-dialog-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.confirm-dialog-title {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.confirm-dialog-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.confirm-dialog-close:hover {
    background: #f5f5f5;
    color: #666;
}

.confirm-dialog-body {
    padding: 20px;
    color: #555;
    line-height: 1.5;
}

.confirm-dialog-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 15px 20px 20px;
    border-top: 1px solid #eee;
}

.confirm-dialog-footer .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.confirm-dialog-cancel {
    background: #f5f5f5;
    color: #666;
}

.confirm-dialog-cancel:hover {
    background: #e5e5e5;
}

.confirm-dialog-ok {
    background: #007bff;
    color: white;
}

.confirm-dialog-ok:hover {
    background: #0056b3;
}

/* Адаптивність для малих екранів */
@media (max-width: 480px) {
    .confirm-dialog-content {
        width: 95%;
        margin: 10px;
    }
    
    .confirm-dialog-header {
        padding: 15px 15px 0;
        padding-bottom: 12px;
    }
    
    .confirm-dialog-title {
        font-size: 1.1em;
    }
    
    .confirm-dialog-body {
        padding: 15px;
    }
    
    .confirm-dialog-footer {
        padding: 12px 15px 15px;
        flex-direction: column;
    }
    
    .confirm-dialog-footer .btn {
        width: 100%;
        padding: 12px;
    }
}

/* Адаптивність для великих екранів */
@media (min-width: 1200px) {
    .confirm-dialog-content {
        max-width: 450px;
    }
}
