/* 全局样式 */
body {
    background-color: #f5f7fa;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

/* 导航栏样式 */
.navbar {
    background-color: #3e8ef7 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.navbar-brand {
    font-weight: bold;
    color: #fff !important;
}

.nav-link {
    color: #fff !important;
    font-size: 14px;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px;
}

/* 左侧菜单样式 */
.sidebar {
    background-color: #3e8ef7;
    color: white;
    min-height: 100vh;
    padding: 0;
    width: 140px;
}

.sidebar .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background-color: #3e8ef7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .logo {
    width: 36px;
    height: 36px;
    background-color: white;
    color: #3e8ef7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
}

.sidebar-heading {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 10px 15px;
    position: relative;
    cursor: pointer;
    font-size: 14px;
}

.sidebar-menu li:hover,
.sidebar-menu li.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu li.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: white;
}

.sidebar-menu i {
    margin-right: 8px;
    font-size: 16px;
}

/* 卡片样式 */
.card {
    border-radius: 4px;
    margin-bottom: 15px;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e8eef3;
    padding: 12px 15px;
    font-weight: 500;
    font-size: 15px;
}

/* 数据卡片 */
.stat-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.stat-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
}

.stat-card.red .icon {
    background-color: #ff5652;
}

.stat-card.orange .icon {
    background-color: #ffa454;
}

.stat-card.blue .icon {
    background-color: #3e8ef7;
}

.stat-card.green .icon {
    background-color: #4caf50;
}

.stat-card.purple .icon {
    background-color: #7460ee;
}

.stat-card .data .number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.stat-card .data .label {
    font-size: 12px;
    color: #999;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 500;
    background-color: #f8f9fa;
    color: #495057;
    font-size: 13px;
    border-bottom: 1px solid #e8eef3;
    padding: 8px;
}

.table td {
    vertical-align: middle;
    padding: 8px;
    font-size: 13px;
    border-top: none;
    border-bottom: 1px solid #e8eef3;
}

.table tr:hover {
    background-color: #f5f7fa;
}

/* 按钮样式 */
.btn {
    border-radius: 2px;
    font-size: 13px;
    padding: 0.25rem 0.75rem;
}

.btn-primary {
    background-color: #3e8ef7;
    border-color: #3e8ef7;
}

.btn-success {
    background-color: #4caf50;
    border-color: #4caf50;
}

.btn-info {
    background-color: #00bcd4;
    border-color: #00bcd4;
}

.btn-warning {
    background-color: #ffa454;
    border-color: #ffa454;
}

.btn-danger {
    background-color: #ff5652;
    border-color: #ff5652;
}

.btn-sm {
    padding: 0.2rem 0.5rem;
    font-size: 12px;
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 2px;
    padding: 0.375rem 0.75rem;
    font-size: 13px;
    border: 1px solid #e8eef3;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #495057;
}

/* 模态框样式 */
.modal-header {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e8eef3;
}

.modal-title {
    font-size: 15px;
    font-weight: 500;
}

.modal-footer {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e8eef3;
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: #3e8ef7;
    border-color: #e8eef3;
    font-size: 13px;
}

.pagination .page-item.active .page-link {
    background-color: #3e8ef7;
    border-color: #3e8ef7;
}

/* 徽章样式 */
.badge {
    padding: 0.25em 0.5em;
    font-size: 11px;
    font-weight: normal;
}

/* 筛选区域样式 */
.filter-area {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    padding: 15px;
    margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-menu span {
        display: none;
    }
} 