/* 自定义样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 自定义架构样式 */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

#sidebar.active {
    margin-left: -250px;
}

#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}

/* 侧边栏样式 */
#sidebar .sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar ul.components {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-grow: 1;
}

#sidebar ul li a {
    padding: 10px;
    display: block;
    color: #fff;
    text-decoration: none;
}

#sidebar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebar ul li.active > a,
#sidebar ul ul li.active > a {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #007bff;
}

#sidebar ul ul a {
    padding-left: 30px;
    background-color: rgba(0, 0, 0, 0.2);
}

#sidebar .sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计，小屏幕时隐藏侧边栏 */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem;
    background-color: #fff;
}

.card-body {
    padding: 1.25rem;
}

/* 表单控件 */
.form-control:focus, .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* 表格样式 */
.table thead th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 用户列表表格中的链接样式 */
.table tbody tr td a.text-body {
    display: block;
    padding: 3px 0;
    color: inherit !important;
    transition: color 0.15s ease;
}

.table tbody tr:hover td a.text-body {
    color: #0d6efd !important;
    font-weight: 500;
}

.table tbody tr.clickable {
    cursor: pointer;
}

.table tbody tr:active {
    background-color: #e6f2ff;
    transform: translateY(0);
}

.btn-group .btn {
    border-radius: 0.25rem;
    margin-right: 0.25rem;
}

.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* 软件列表卡片样式 */
.card-img-top {
    height: 180px;
    object-fit: cover;
}

/* 模态框样式 */
.modal-header, .modal-footer {
    border-color: #f0f0f0;
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .row {
        margin-right: -0.5rem;
        margin-left: -0.5rem;
    }
    
    .col-md-6 {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
} 