
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.2s ease;
}

.custom-alert {
    background: white;
    border-radius: 16px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

/* Типы сообщений */
.custom-alert.success .custom-alert-header {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}
.custom-alert.error .custom-alert-header {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}
.custom-alert.warning .custom-alert-header {
    background: linear-gradient(135deg, #f9d423, #f83600);
}
.custom-alert.info .custom-alert-header {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.custom-alert.confirm .custom-alert-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.custom-alert-header {
    padding: 20px 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-alert-header i {
    font-size: 28px;
}

.custom-alert-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    flex: 1;
}

.custom-alert-body {
    padding: 24px;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}

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

.custom-alert-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-alert-btn-primary {
    background: #007bff;
    color: white;
}

.custom-alert-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.custom-alert-btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.custom-alert-btn-secondary:hover {
    background: #dee2e6;
}

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

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

@media (max-width: 480px) {
    .custom-alert { width: 95%; }
    .custom-alert-footer { flex-direction: column; }
    .custom-alert-btn { width: 100%; }
}