/* 现代化考勤系统样式 */

/* 全局变量 */
:root {
    --primary-color: #1f2937;
    --primary-hover: #111827;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-color: #111827;
    --text-muted: #6b7280;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    
    --border-radius: 6px;
    --border-radius-sm: 4px;
    --border-radius-lg: 8px;
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9fafb;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    font-size: 1.8rem;
}

/* 多色系简约导航栏 */
.nav {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-item {
    flex: 1;
    min-width: 140px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    border-right: 1px solid #f3f4f6;
}

.nav-item:last-child .nav-link {
    border-right: none;
}

/* 首页 - 蓝色 */
.nav-item:nth-child(1) .nav-link:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.nav-item:nth-child(1) .nav-link.active {
    background: #dbeafe;
    color: #1d4ed8;
}

.nav-item:nth-child(1) .nav-link.active::after {
    background: #3b82f6;
}

/* 考勤录入 - 绿色 */
.nav-item:nth-child(2) .nav-link:hover {
    background: #f0fdf4;
    color: #15803d;
}

.nav-item:nth-child(2) .nav-link.active {
    background: #dcfce7;
    color: #15803d;
}

.nav-item:nth-child(2) .nav-link.active::after {
    background: #22c55e;
}

/* 考勤分析 - 紫色 */
.nav-item:nth-child(3) .nav-link:hover {
    background: #faf5ff;
    color: #7c3aed;
}

.nav-item:nth-child(3) .nav-link.active {
    background: #e9d5ff;
    color: #7c3aed;
}

.nav-item:nth-child(3) .nav-link.active::after {
    background: #8b5cf6;
}

/* 系统配置 - 橙色 */
.nav-item:nth-child(4) .nav-link:hover {
    background: #fff7ed;
    color: #ea580c;
}

.nav-item:nth-child(4) .nav-link.active {
    background: #fed7aa;
    color: #ea580c;
}

.nav-item:nth-child(4) .nav-link.active::after {
    background: #f97316;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

/* 导航图标 */
.nav-icon {
    font-size: 1.1rem;
}

/* 响应式导航 */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item {
        min-width: auto;
    }
    
    .nav-link {
        padding: 1rem;
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

/* 主要内容区域 */
.main-content {
    background: #ffffff;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.content-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1e293b;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.content-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 1px;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.content-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

.content-body {
    padding: 2rem;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--light-color);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--secondary-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--light-color);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control:invalid {
    border-color: var(--danger-color);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #219a52;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 1rem 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr:hover {
    background: rgba(52, 152, 219, 0.05);
}

.table-striped tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* 考勤表格特殊样式 */
.attendance-table {
    font-size: 0.85rem;
}

.attendance-table th,
.attendance-table td {
    padding: 0.5rem;
    text-align: center;
    min-width: 60px;
}

/* 首列数据单元格（员工姓名）固定在左侧 */
.attendance-table tbody td.employee-name {
    position: sticky;
    left: 0;
    background: #fff;
    text-align: center;
}

/* 明确首列（姓名）居中显示 */
.attendance-table thead th.employee-name,
.attendance-table tbody td.employee-name {
    text-align: center;
}

/* 表头“姓名”单元格也固定在左侧，且层级更高，避免被右侧表头覆盖 */
.attendance-table thead th.employee-name {
    position: sticky;
    left: 0;
    top: 0;
    background: #fff; /* 使用不透明底色，避免“透明效果” */
    z-index: 20; /* 高于 .table th 的 z-index:10 与数据单元格 */
}

.attendance-table .weekend {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

/* 法定节假日：略偏青绿，和调班日（绿色）拉开层次 */
.attendance-table .holiday {
    background: rgba(20, 184, 166, 0.10); /* teal-500 with opacity */
    color: #14b8a6; /* teal */
}

/* 调班日：紫色系，与考勤日历统一 */
.attendance-table .adjust-workday {
    background: #e9d5ff;
    color: #7c3aed;
}

.attendance-table .workday {
    background: transparent;
    color: inherit;
}

.attendance-select {
    width: 100%;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

/* 消息提示样式 */
.messages {
    list-style: none;
    margin-bottom: 1.5rem;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.message-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.message-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.message-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

/* 统计卡片 */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.stats-icon {
    font-size: 3rem;
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #667eea;
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* Badge 样式 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--border-radius-sm);
}

.badge-primary {
    color: #ffffff;
    background-color: var(--primary-color);
}

.badge-secondary {
    color: #ffffff;
    background-color: var(--secondary-color);
}

.badge-success {
    color: #ffffff;
    background-color: var(--success-color);
}

.badge-warning {
    color: #ffffff;
    background-color: var(--warning-color);
}

.badge-danger {
    color: #ffffff;
    background-color: var(--danger-color);
}

.badge-info {
    color: #ffffff;
    background-color: var(--info-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nav-link {
        justify-content: center;
    }
    
    .content-title {
        font-size: 1.5rem;
    }
    
    .content-body {
        padding: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .attendance-table {
        font-size: 0.75rem;
    }
    
    .attendance-table th,
    .attendance-table td {
        padding: 0.25rem;
        min-width: 50px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .content-header {
        padding: 1.5rem 1rem;
    }
    
    .content-title {
        font-size: 1.25rem;
    }
    
    .content-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-muted { color: #6c757d; }

.bg-primary { background-color: var(--primary-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-light { background-color: var(--light-color); }

/* 自动保存指示器动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.auto-save-indicator {
    transition: all 0.3s ease;
}

/* 配置页面导航 */
.config-nav {
    margin-bottom: 2rem;
}

.config-nav-item {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 基础配置 - 蓝色 */
.config-nav-item:nth-child(1):hover {
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.config-nav-item:nth-child(1).active {
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.config-nav-item:nth-child(1).active::after {
    background: #3b82f6;
}

.config-nav-item:nth-child(1).active .config-nav-title {
    color: #1d4ed8;
}

/* 员工管理 - 绿色 */
.config-nav-item:nth-child(2):hover {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.config-nav-item:nth-child(2).active {
    background: #dcfce7;
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.config-nav-item:nth-child(2).active::after {
    background: #22c55e;
}

.config-nav-item:nth-child(2).active .config-nav-title {
    color: #15803d;
}

/* 节假日管理 - 紫色 */
.config-nav-item:nth-child(3):hover {
    background: #faf5ff;
    border-color: #c4b5fd;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.config-nav-item:nth-child(3).active {
    background: #e9d5ff;
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.config-nav-item:nth-child(3).active::after {
    background: #8b5cf6;
}

.config-nav-item:nth-child(3).active .config-nav-title {
    color: #7c3aed;
}

/* 状态配置 - 橙色 */
.config-nav-item:nth-child(4):hover {
    background: #fff7ed;
    border-color: #fdba74;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.config-nav-item:nth-child(4).active {
    background: #ffedd5;
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.config-nav-item:nth-child(4).active::after {
    background: #f97316;
}

.config-nav-item:nth-child(4).active .config-nav-title {
    color: #c2410c;
}

.config-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 10px 10px 0 0;
}

.config-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.config-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.config-nav-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.config-section {
    display: none;
}

.config-section.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* iframe 容器样式 */
.config-iframe-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.config-iframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.config-iframe-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.config-iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .config-iframe {
        height: 500px;
    }
}

/* 配置重定向卡片样式 */
.config-redirect-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.config-redirect-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.config-redirect-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.config-redirect-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.config-redirect-desc {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.config-redirect-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.feature-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.config-redirect-actions {
    margin-bottom: 2rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.config-redirect-note {
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .config-redirect-card {
        padding: 2rem 1.5rem;
    }
    
    .config-redirect-features {
        grid-template-columns: 1fr;
    }
    
    .config-redirect-title {
        font-size: 1.5rem;
    }
    
    .config-redirect-icon {
        font-size: 3rem;
    }
}

/* Alert 样式 */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
/* config.html 专用样式 */
.config-content-container {
    position: relative;
    min-height: 400px;
}

.config-section {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.config-section.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.config-placeholder-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.config-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.config-placeholder-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.config-placeholder-desc {
    color: #64748b;
    margin-bottom: 2rem;
}

/* AJAX加载状态样式 */
.loading-placeholder, .error-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    font-size: 1.2rem;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.error-placeholder {
    color: #dc2626;
    background: #fee2e2;
    border-color: #fca5a5;
}
/* 图表无数据占位符 */
.no-data-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    font-size: 1.1rem;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 6px;
}

/* ===================== 假期管理-紧凑模式 ===================== */
.holidays-compact .content-header { padding: 1rem 1.25rem; }
.holidays-compact .content-title { font-size: 1.4rem; margin-bottom: 0.25rem; }
.holidays-compact .content-subtitle { font-size: 0.95rem; }
.holidays-compact .content-body { padding: 1rem 1.25rem; }

.holidays-compact .grid { gap: 1rem; }
.holidays-compact #basic-config .info-grid { grid-template-columns: 1fr; }

/* ===================== Lists in content/cards ===================== */
/*Restore bullets and indentation for lists inside content areas.
   Scoped to content/card bodies to avoid affecting nav/messages lists. */
.content-body ul,
.card-body ul,
.holidays-compact .content-body ul,
.content-body ol,
.card-body ol,
.holidays-compact .content-body ol {
  list-style-type: disc;
  list-style-position: inside; /* keep markers inside card to avoid clipping */
  padding-left: 0.25rem;
  margin-left: 0;
}
.content-body ul ul,
.card-body ul ul,
.holidays-compact .content-body ul ul { list-style: circle; }
.content-body ol,
.card-body ol,
.holidays-compact .content-body ol { list-style-type: decimal; list-style-position: inside; }
.content-body ol ol,
.card-body ol ol,
.holidays-compact .content-body ol ol { list-style: lower-alpha; }
.card-body li { margin: 0.25rem 0; }

.holidays-compact .card { margin-bottom: 1rem; }
.holidays-compact .card-header { padding: 0.75rem 1rem; }
.holidays-compact .card-body { padding: 1rem; }

.holidays-compact .form-group { margin-bottom: 0.75rem; }
.holidays-compact .form-control { padding: 0.5rem 0.6rem; font-size: 0.9rem; }
.holidays-compact .btn { padding: 0.5rem 0.9rem; font-size: 0.9rem; }

.holidays-compact .table-container { margin: 0.75rem 0; }
.holidays-compact .table th,
.holidays-compact .table td { padding: 0.4rem 0.5rem; }

.holidays-compact .stats-card { padding: 1rem; }
.holidays-compact .stats-number { font-size: 1.6rem; }
/* Make basic-config two cards symmetric (equal width & equal height) */
.holidays-compact #basic-config .grid.grid-2 { grid-template-columns: 1fr 1fr; align-items: stretch; }
.holidays-compact #basic-config .grid.grid-2 > .card { display: flex; flex-direction: column; }
.holidays-compact #basic-config .grid.grid-2 > .card .card-body { flex: 1 1 auto; }
/* System config extra compact tweaks */
.holidays-compact .card { margin-bottom: 0.75rem; }
.holidays-compact .card-header { padding: 0.6rem 0.9rem; }
.holidays-compact .card-header h3 { font-size: 1rem; }
.holidays-compact .card-body { padding: 0.75rem 0.9rem; }
.holidays-compact .config-nav { margin-bottom: 0.75rem; }
.holidays-compact .config-nav .grid { gap: 0.75rem; }
.holidays-compact .config-nav-item { padding: 1.0rem; }

.holidays-compact .form-group { margin-bottom: 0.6rem; }
.holidays-compact .form-control { padding: 0.5rem 0.6rem; font-size: 0.95rem; }
.holidays-compact .btn { padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.holidays-compact .stats-card { padding: 0.85rem; }
.holidays-compact .stats-number { font-size: 1.6rem; }

/* 员工记录详细表格 - 徽章颜色（统一5大类配色） */
/* 调休/公休 */
.badge-chart-blue {
  background-color: #fed7aa;
  color: #c2410c;
  border: 1px solid #fdba74;
}

/* 产假/检假 */
.badge-chart-purple {
  background-color: #e9d5ff;
  color: #7c3aed;
  border: 1px solid #c084fc;
}

/* 病假/事假 */
.badge-chart-orange {
  background-color: #fef3c7;
  color: #a16207;
  border: 1px solid #fde047;
}

/* 婚假/丧假 */
.badge-chart-red {
  background-color: #fce7f3;
  color: #be185d;
  border: 1px solid #f9a8d4;
}

/* 加班 */
.badge-chart-green {
  background-color: rgba(59, 130, 246, 0.15);
  color: #2563eb;
  border: 1px solid #93c5fd;
}