/* 传真管理系统样式 */

/* 基础样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s;
}

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

.card:hover {
    transform: translateY(-2px);
}

/* 统计卡片 */
.card.bg-primary,
.card.bg-success,
.card.bg-info {
    border-radius: 15px;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

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

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* 徽章样式 */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* 表单样式 */
.form-control {
    border-radius: 8px;
    padding: 0.625rem 1rem;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    background-color: #f8f9fa;
}

/* 登录/注册卡片 */
.card.shadow-sm {
    border-radius: 15px;
    overflow: hidden;
}

/* 页脚 */
.footer {
    margin-top: auto;
}

/* 时间线样式 */
.timeline-item {
    padding-left: 20px;
    border-left: 2px solid #dee2e6;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #0d6efd;
    border-radius: 50%;
    position: absolute;
    left: -6px;
    top: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
}

/* 动画 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert 样式 */
.alert {
    border-radius: 10px;
    border: none;
}

/* 分页样式 */
.pagination {
    gap: 5px;
}

.page-link {
    border-radius: 8px;
    border: none;
    padding: 0.5rem 1rem;
}

.page-item.active .page-link {
    background-color: #0d6efd;
}

/* 代码块样式 */
pre {
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.875rem;
}

code {
    color: #d63384;
}

/* 用户下拉菜单 */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
}
