/**
 * Стили для модального окна модерации заказов
 */

/* Модальное окно */
.pch-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pch-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Контент модального окна */
.pch-modal-content {
    background: #fff;
    border-radius: 18px;
    padding: 40px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pch-modal.active .pch-modal-content {
    transform: scale(1);
}

.pch-modal-body {
    text-align: center;
}

/* Лоадер */
.pch-loader {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: pch-spin 1s linear infinite;
}

@keyframes pch-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Иконки успеха и ошибки */
.pch-success-icon,
.pch-error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    margin: 0 auto 20px;
    animation: pch-scale-in 0.5s ease;
}

.pch-success-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff;
}

.pch-error-icon {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: #fff;
}

@keyframes pch-scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Заголовок */
.pch-modal-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 15px;
    color: #111827;
}

.pch-modal-title.success {
    color: #10b981;
}

.pch-modal-title.error {
    color: #ef4444;
}

/* Текст */
.pch-modal-text {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 15px;
}

/* Хинт текст */
.pch-modal-hint {
    font-size: 13px;
    line-height: 1.5;
    color: #9ca3af;
    margin: 10px 0 20px;
    font-style: italic;
}

/* Кнопка */
.pch-modal-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    min-width: 200px;
}

.pch-modal-btn.success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.pch-modal-btn.success:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.pch-modal-btn.error {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.pch-modal-btn.error:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.pch-modal-btn.primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.pch-modal-btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Адаптивность */
@media (max-width: 600px) {
    .pch-modal-content {
        padding: 30px 20px;
    }
    
    .pch-modal-title {
        font-size: 20px;
    }
    
    .pch-modal-text {
        font-size: 14px;
    }
    
    .pch-loader {
        width: 50px;
        height: 50px;
    }
    
    .pch-success-icon,
    .pch-error-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
}
