/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 主布局容器 */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    background: #1a252f;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h5 {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

/* 导航菜单样式 */
.sidebar .components {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar .components li {
    border-bottom: 1px solid #34495e;
}

.sidebar .components a {
    color: #bdc3c7;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar .components a:hover {
    color: white;
    background: #34495e;
    border-left-color: #3498db;
}

.sidebar .components a.active {
    color: white;
    background: #3498db;
    border-left-color: #2980b9;
}

.sidebar .components i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar .components span {
    font-weight: 500;
}

/* 下拉菜单样式 */
.sidebar .collapse {
    background: #1a252f;
}

.sidebar .collapse a {
    padding-left: 55px;
    font-size: 0.95em;
    border-left: none;
}

.sidebar .collapse a:hover {
    background: #2c3e50;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 0;
    transition: all 0.3s ease;
}

/* 顶部导航栏 */
.navbar {
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    color: #2c3e50;
}

/* 内容区域 */
.content-area {
    padding: 30px;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* 统计卡片样式 */
.stats-card {
    text-align: center;
    padding: 25px;
}

.stats-card .card-title {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stats-card .stats-desc {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 颜色主题 */
.bg-primary { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.bg-success { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); }
.bg-info { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); }

.text-white { color: white !important; }

/* 表格样式 */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* 徽章样式 */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.bg-success { background-color: #28a745 !important; }
.bg-danger { background-color: #dc3545 !important; }
.bg-warning { background-color: #ffc107 !important; color: #212529 !important; }

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header h5,
    .sidebar .components span {
        display: none;
    }
    
    .sidebar .components a {
        text-align: center;
        padding: 15px 10px;
        justify-content: center;
    }
    
    .sidebar .components i {
        margin-right: 0;
        font-size: 1.3rem;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .content-area {
        padding: 15px;
    }
}

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

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

/* 滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #2c3e50;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #34495e;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #3498db;
}