/* 自定义模态框样式 */

.custom-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.custom-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 20px 25px;
    color: white;
}

.custom-modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.custom-modal-title i {
    font-size: 1.2rem;
}

.custom-modal-body {
    padding: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.custom-modal-footer {
    padding: 20px 25px;
    border: none;
    background-color: #f8f9fa;
    justify-content: center;
    gap: 10px;
}

.custom-modal-footer .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    min-width: 80px;
}

.custom-modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.custom-modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.custom-modal-footer .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.custom-modal-footer .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.custom-modal-footer .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.custom-modal-footer .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

/* 模态框动画 */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out;
    transform: translate(0, -50px) scale(0.9);
}

.modal.show .modal-dialog {
    transform: translate(0, 0) scale(1);
}

/* 成功状态样式 */
.custom-modal-header.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* 错误状态样式 */
.custom-modal-header.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* 警告状态样式 */
.custom-modal-header.warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

/* 加载动画 */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 576px) {
    .custom-modal-content {
        margin: 10px;
        border-radius: 15px;
    }
    
    .custom-modal-header,
    .custom-modal-body,
    .custom-modal-footer {
        padding: 15px 20px;
    }
    
    .custom-modal-footer {
        flex-direction: column;
    }
    
    .custom-modal-footer .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .custom-modal-content {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        color: #e2e8f0;
    }
    
    .custom-modal-body {
        color: #e2e8f0;
    }
    
    .custom-modal-footer {
        background-color: #2d3748;
    }
}
