/* AI智能合同审核系统 - 主样式表 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* 侧边栏样式 */
#sidebar {
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

#sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    margin: 5px 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

#sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* 内容区域样式 */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 首页特性卡片 */
.card .bi {
    color: #0d6efd;
}

/* 表单样式 */
.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(10, 88, 202, 0.2);
}

/* 表格样式 */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* 页脚样式 */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #e5e5e5;
    margin-top: 30px;
    padding: 15px 0;
}

.footer .text-muted {
    font-size: 14px;
    color: #6c757d !important;
}

.footer a {
    color: #0d6efd;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
        padding: 10px 0;
    }
    
    .footer .text-muted {
        font-size: 12px;
    }
}

/* 徽章样式 */
.badge {
    padding: 6px 10px;
    font-weight: 500;
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        min-height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    main {
        margin-top: 60px;
    }
    
    #sidebar .nav-link {
        margin: 2px 5px;
        padding: 8px 10px;
    }
}

/* 文件上传区域样式 */
.file-upload-area {
    border: 2px dashed #0d6efd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background-color: rgba(13, 110, 253, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* 进度条样式 */
.progress {
    height: 10px;
    border-radius: 5px;
}

/* 警告提示样式 */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 分页样式 */
.pagination .page-link {
    color: #0d6efd;
    border-radius: 5px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 加载动画 */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #0d6efd;
}

/* 审核结果高亮 */
.highlight-risk {
    background-color: rgba(255, 193, 7, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
}

.highlight-danger {
    background-color: rgba(220, 53, 69, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
}

/* 用户下拉菜单 */
#user-dropdown {
    cursor: pointer;
}

/* 打印样式优化 */
@media print {
    #sidebar, .btn, .modal-footer {
        display: none !important;
    }
    
    .container-fluid, main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}