/* ==========================================
   现代扁平化 UI 美化（纯CSS新增覆盖，不破坏原有逻辑）
   ========================================== */

/* 全局字体与背景 */
body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

/* 侧边栏美化（深蓝渐变） */
.sidebar {
    background: linear-gradient(180deg, #1e3a5f 0%, #2b4c7e 100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.menu-title {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 1px;
    font-weight: 600;
}

.menu-item, .sub-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover, .menu-item.active {
    background-color: rgba(255,255,255,0.1);
    border-left: 3px solid #00b4d8;
}

.submenu .sub-item {
    background-color: rgba(0,0,0,0.2);
}

.submenu .sub-item:hover, .submenu .sub-item.active {
    background-color: rgba(0,0,0,0.4);
    border-left: 3px solid #00b4d8;
}

/* 主内容区卡片化 */
.panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: none;
    padding: 24px;
    margin: 20px;
}

/* 按钮美化（统一圆角、渐变、动画） */
button {
    border-radius: 8px;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 表格美化（斑马纹 + 悬停高亮） */
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

tr:nth-child(even) {
    background-color: #fcfcfc;
}

tr:hover {
    background-color: #e9ecef;
    transition: background-color 0.2s;
}

/* 弹窗与卡片阴影 */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: none;
}

/* 输入框与下拉框美化 */
input[type="text"], input[type="number"], input[type="date"], select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0,180,216,0.2);
}

/* 状态颜色优化 */
.status-warning { color: #ffc107; font-weight: bold; }
.status-success { color: #28a745; font-weight: bold; }
.status-danger  { color: #dc3545; font-weight: bold; }

/* 预览浮窗圆角 */
.preview-popup {
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border: 1px solid #e0e0e0;
}