html, body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

.sidebar {
    background-color: #1e1e1e;
    min-height: 100vh;
    position: sticky;
    top: 0;
    padding: 20px 0;
}

.main-content {
    padding: 20px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    border: none;
    background-color: #2d2d2d;
    color: #e0e0e0;
}

.card-header {
    background-color: #252525;
    border-bottom: 1px solid #333;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0 !important;
}

.card-body {
    padding: 20px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.log-container {
    height: 200px;
    overflow-y: auto;
    background-color: #1a1a1a;
    border-radius: 5px;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
}

.log-entry {
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 3px;
}

.log-info {
    color: #64b5f6;
}

.log-success {
    color: #81c784;
}

.log-warning {
    color: #ffb74d;
}

.log-error {
    color: #e57373;
}

.form-control {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

.form-control:focus {
    background-color: #3a3a3a;
    color: #fff;
    border-color: #666;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.form-control:read-only {
    background-color: #2a2a2a;
}

.form-label {
    color: #bbb;
}

table {
    font-size: 14px;
    color: #e0e0e0;
}

.table {
    color: #e0e0e0;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-hover>tbody>tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.table th {
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        position: relative;
    }
}

/* 按钮悬停效果 */
.btn {
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* 暗色模式下的按钮样式调整 */
.btn-outline-secondary {
    color: #bbb;
    border-color: #555;
}

.btn-outline-secondary:hover {
    background-color: #444;
    color: #fff;
    border-color: #666;
}

/* 表单开关样式调整 */
.form-check-input {
    background-color: #444;
    border-color: #666;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
