.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-in-out;
}

.custom-dialog {
    background: white;
    padding: 30px;
    border-radius: 12px;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    animation: slideIn 0.3s ease-out;
}

.custom-dialog h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.custom-dialog p {
    margin: 0 0 25px 0;
    font-size: 1rem;
    color: #596777;
    line-height: 1.5;
}

.custom-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.custom-dialog-buttons button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.custom-dialog-buttons .cancel-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

.custom-dialog-buttons .cancel-btn:hover {
    background-color: #e9ecef;
}

.custom-dialog-buttons .confirm-btn {
    background-color: #dc3545;
    border: none;
    color: white;
}

.custom-dialog-buttons .confirm-btn:hover {
    background-color: #c82333;
}

.custom-message-overlay {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.custom-message {
    padding: 20px 25px;
    border-radius: 8px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.custom-message h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.custom-message p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.alert-success {
    background-color: #d1e7dd;
    border-left: 4px solid #198754;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #842029;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}