/* 周小熊文件交付系统 - 自定义样式 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏 */
.navbar-brand {
    font-weight: 600;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 头像样式 */
.avatar-container {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* 订单号输入框 */
.order-number-input {
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 500;
}

/* 状态徽章 */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-in-progress {
    background-color: #cfe2ff;
    color: #084298;
}

.status-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-delivered {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #842029;
}

/* 文件列表 */
.file-item {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: white;
    transition: all 0.2s;
}

.file-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.file-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.file-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.download-btn {
    white-space: nowrap;
}

/* 下载进度 */
.download-progress {
    font-size: 0.875rem;
    color: #6c757d;
}

.progress {
    height: 0.5rem;
    margin-top: 0.5rem;
}

/* 管理员侧边栏 */
.admin-sidebar {
    background-color: #212529;
    min-height: calc(100vh - 56px);
    padding: 1.5rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1.25rem;
}

/* 统计卡片 */
.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card.stat-pending {
    border-left-color: var(--warning-color);
}

.stat-card.stat-in-progress {
    border-left-color: var(--info-color);
}

.stat-card.stat-completed {
    border-left-color: var(--success-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 表格样式 */
.table-hover tbody tr {
    transition: background-color 0.2s;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* 文件上传区域 */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .order-number-input {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .file-item {
        flex-direction: column;
        text-align: center;
    }
    
    .file-icon {
        margin-bottom: 1rem;
    }
    
    .download-btn {
        margin-top: 1rem;
        width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 加载动画 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* 页脚 */
footer {
    background-color: #212529;
    color: rgba(255, 255, 255, 0.75);
    padding: 2rem 0;
    margin-top: 4rem;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

footer a:hover {
    color: white;
}
