/* 自定义样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

/* 确保表头使用一致的浅色样式 */
.table-light th {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-bottom: 2px solid #dee2e6 !important;
    font-weight: 600;
}

/* 覆盖Bootstrap的table-warning背景色，改为白色 */
.table-warning,
.table-warning > td,
.table-warning > th {
    background-color: #ffffff !important;
    --bs-table-accent-bg: #ffffff !important;
}

/* 表格行悬停效果 */
.table-hover tbody tr:hover td {
    background-color: #f8f9fa !important;
}

/* 美化表格样式 */
.table {
    border-collapse: separate;
    border-spacing: 0 2px; /* 进一步减少行间距，更紧凑 */
}

.table td {
    vertical-align: middle;
    padding: 0.5rem 0.75rem; /* 进一步减少内边距 */
    border: none; /* 去掉边框 */
    background-color: #ffffff;
    border-bottom: 1px solid #f1f3f4; /* 只保留底部细线 */
}

.table th {
    vertical-align: middle;
    padding: 0.75rem;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
    border: none; /* 去掉边框 */
    border-bottom: 2px solid #dee2e6;
}

/* 按钮组美化 */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

/* 状态徽章美化 */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

.status-badge {
    font-size: 0.875em;
}

.status-draft {
    background-color: #6c757d;
}

.status-submitted {
    background-color: #0dcaf0;
}

.status-reviewing {
    background-color: #fd7e14;
}

.status-completed {
    background-color: #198754;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.file-upload-area.dragover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.university-dropdown {
    max-height: 200px;
    overflow-y: auto;
}

.payment-qr {
    text-align: center;
    padding: 2rem;
}

.payment-qr img {
    max-width: 200px;
    height: auto;
}

.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.earnings-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.review-card {
    border-left: 4px solid #0d6efd;
}

.review-card.urgent {
    border-left-color: #dc3545;
}

.review-card.completed {
    border-left-color: #198754;
}

.modal-lg {
    max-width: 800px;
}

.form-floating > label {
    color: #6c757d;
}

.pagination {
    justify-content: center;
}

.sidebar {
    background-color: #343a40;
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background-color: #495057;
}

.main-content {
    padding: 2rem;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .file-upload-area {
        padding: 1rem;
    }
}

/* 响应式表格 */
.table-responsive {
    border-radius: 0.375rem;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
