/* 自定义模态框样式 - 提取自 layouts/footer.php */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 440px;
    padding: 0;
    animation: modalSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-header {
    padding: 24px 24px 16px;
    text-align: center;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.modal-icon.danger {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-body {
    padding: 0 24px 20px;
    text-align: center;
}

.modal-message {
    margin: 0 0 8px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.modal-detail {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 24px 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}

.modal-footer .btn {
    min-width: 100px;
    justify-content: center;
}

/* 危险按钮增强 */
.modal-footer .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    transition: all 0.2s;
}

.modal-footer .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.modal-footer .btn-outline:hover {
    background: #f3f4f6;
}
