/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    min-height: calc(100vh - 56px);
    border-right: 1px solid #dee2e6;
}

.sidebar .list-group-item {
    border: none;
    border-radius: 0;
    padding: 12px 20px;
}

.sidebar .list-group-item:hover {
    background-color: #e9ecef;
}

.sidebar .list-group-item.active {
    background-color: #007bff;
    color: white;
}

/* 主内容区 */
.main-content {
    background-color: #f8f9fa;
    min-height: calc(100vh - 56px);
    overflow-y: auto;
}

/* 卡片样式 */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* 按钮样式 */
.btn-action {
    padding: 5px 10px;
    font-size: 0.875rem;
}

/* Badge样式 */
.badge-priority-A {
    background-color: #dc3545;
}

.badge-priority-B {
    background-color: #fd7e14;
}

.badge-priority-C {
    background-color: #ffc107;
}

.badge-priority-D {
    background-color: #6c757d;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
}
