/* =========================================================
   研发项目管理系统 - 自定义主题
   AdminLTE 3 + 深蓝工业感渐变侧边栏
   ========================================================= */

/* ---------- 基础字体 ---------- */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 600;
}
.num, .mono {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
}

/* ---------- 侧边栏渐变 ---------- */
body .main-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    box-shadow: 4px 0 24px rgba(2, 6, 23, 0.2);
    border-right: none;
}
body .main-sidebar .brand-link {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body .main-sidebar .brand-link .brand-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f8fafc !important;
}
body .main-sidebar .brand-link img {
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.5));
}

/* 用户卡片 */
.sidebar-user-card {
    background: rgba(255, 255, 255, 0.04);
    margin: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}
.sidebar-user-card .avatar-wrap {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px; font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.sidebar-user-card .sidebar-user-name {
    color: #f8fafc;
    font-weight: 600;
    font-size: 14px;
}
.sidebar-user-card .sidebar-user-sub {
    color: #94a3b8;
    font-size: 12px;
}

/* 菜单 */
body .sidebar .nav-link {
    color: #cbd5e1 !important;
    border-radius: 10px;
    margin: 2px 8px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}
body .sidebar .nav-link:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #fff !important;
    transform: translateX(2px);
}
body .sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.05)) !important;
    color: #fff !important;
    border-left: 3px solid #3b82f6;
}
body .sidebar .nav-link i {
    width: 20px;
    text-align: center;
}
body .sidebar .nav-header {
    color: #64748b;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 16px 8px;
}

/* ---------- 顶部栏 ---------- */
body .main-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(2, 6, 23, 0.05);
}
body .main-header .navbar {
    padding: 0 16px;
}
.navbar-brand {
    color: #3b82f6 !important;
    font-weight: 700;
}
.topbar-btn {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
}
.topbar-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.topbar-btn .badge {
    position: absolute;
    top: 4px; right: 4px;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
}

/* 用户下拉按钮（不是小图标按钮，而是带名字的大按钮） */
.user-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    min-height: 38px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.user-top-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}
.user-top-btn .user-avatar-mini {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.user-top-btn .top-user-name {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-dropdown {
    display: inline-flex;
    align-items: center;
}
.user-dropdown .dropdown-menu {
    min-width: 180px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 8px;
}
.user-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}
.user-dropdown .dropdown-item:hover {
    background: #f1f5f9;
}
.user-dropdown .dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626 !important;
}
.user-dropdown .dropdown-divider {
    margin: 6px 0;
    opacity: 0.5;
}

/* ---------- 主内容区 ---------- */
body .content-wrapper {
    background: #f1f5f9;
    padding: 16px;
}
.content-header {
    padding: 20px 24px 0;
}
.content-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* 所有页面 row 统一 gutter + 底部间距 */
body .content-wrapper .row {
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: 16px;
}
body .content-wrapper .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

/* 全局 card 间距 */
.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    margin-bottom: 0;
}
.card-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 18px;
    background: #fff;
}
.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}
.card-body {
    padding: 18px;
}

.content-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
}
.content-header .breadcrumb a {
    color: #3b82f6;
}

/* ---------- 卡片 ---------- */
.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    margin-bottom: 20px;
    overflow: hidden;
}
.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 20px;
}
.card-header .card-title {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
}
.card-body {
    padding: 20px;
}

/* ---------- 状态卡片（Info Box 风格） ---------- */
.status-row { gap: 12px !important; margin-bottom: 20px; }
.status-col {
    flex: 0 0 250px;
    max-width: 250px;
}

/* ---------- 状态卡片 ---------- */
.status-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    border-top: 3px solid var(--card-color, #3b82f6);
    height: 100%;
}
.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.status-card .stat-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    background: color-mix(in srgb, var(--card-color) 12%, #fff);
    color: var(--card-color);
}
.status-card .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.status-card .stat-label {
    font-size: 13px;
    color: #64748b;
}
.status-card .stat-link {
    font-size: 12px;
    color: var(--card-color);
    text-decoration: none;
    font-weight: 500;
}
.status-card .stat-link:hover { text-decoration: underline; }

/* ---------- 按钮 ---------- */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 10px 22px;
    font-size: 14px;
    transition: all 0.2s;
    height: auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
    min-height: 34px;
}
.btn.btn-xs {
    padding: 3px 8px;
    font-size: 12px;
    min-height: 26px;
}

/* 表格操作列里的 .btn-sm 保持紧凑 */
.action-btns .btn-sm {
    width: 34px; height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- 状态 Badge ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: color-mix(in srgb, var(--badge-color) 15%, #fff);
    color: var(--badge-color);
    border: 1px solid color-mix(in srgb, var(--badge-color) 30%, #fff);
    white-space: nowrap;
}
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

/* ---------- 表格 ---------- */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.data-table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.data-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background: #f8fafc;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 进度条 */
.progress {
    height: 6px;
    border-radius: 20px;
    background: #e2e8f0;
    overflow: hidden;
}
.progress-bar {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 20px;
    transition: width 0.6s ease;
}

/* ---------- 表单 ---------- */
.form-control {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 11px 16px !important;
    font-size: 14px;
    height: auto;
    min-height: 42px;
    transition: all 0.2s;
}
.form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}

/* form-select 独立样式，不跟 form-control 合 */
.form-select {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 40px 10px 16px !important;
    font-size: 14px;
    min-height: 42px;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 14px !important;
    transition: all 0.2s;
    appearance: none !important;
}
.form-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}
.form-select-sm {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    padding-left: 12px !important;
    min-height: 34px;
    font-size: 13px;
}

.form-label {
    font-weight: 600;
    color: #334155;
    font-size: 13px;
    margin-bottom: 6px;
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    white-space: pre-wrap;
}
.form-group {
    margin-bottom: 18px;
}

/* form-switch 开关 + 文字对齐（彻底干掉 Bootstrap/AdminLTE 的默认偏移错位） */
.form-check.form-switch {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;              /* 子元素多了自动换行 */
    align-items: center !important;
    gap: 0 10px !important;                 /* row 方向 gap 10px，col 方向 0 */
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: 32px !important;
    position: relative !important;
}
.form-check.form-switch .form-check-input {
    position: relative !important;
    left: 0 !important;
    width: 48px !important;
    height: 26px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
}
.form-check.form-switch .form-check-label {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px;
    line-height: 26px;
    white-space: nowrap;
    cursor: pointer;
    flex: 0 0 auto !important;
    position: static !important;
}
/* form-switch 里如果有额外的提示文字（如 .small），独占一行 */
.form-check.form-switch > .small,
.form-check.form-switch > [class*="text-muted"],
.form-check.form-switch > div.small {
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    margin-top: 4px !important;
    padding-left: 0 !important;
}

/* ---------- 可视化单选组（替代原生 radio/select）---------- */
.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.option-group .option-item {
    position: relative;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    transition: all 0.2s;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.option-group .option-item:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}
.option-group .option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.option-group .option-item.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}
.option-group .option-item.active .option-icon {
    opacity: 1;
}
.option-group .option-item .option-icon {
    opacity: 0.5;
    font-size: 14px;
}
/* 给项目类型专用：带颜色区分 */
.option-group[data-type="projectType"] .option-item[data-value="Hardware"].active {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    color: #7c3aed;
}
.option-group[data-type="projectType"] .option-item[data-value="Software"].active {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
}
.option-group[data-type="projectType"] .option-item[data-value="Custom"].active {
    border-color: #ec4899;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    color: #db2777;
}
/* 用户角色专用颜色 */
.option-group[data-type="role"] .option-item[data-value="SuperAdmin"].active {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
}
.option-group[data-type="role"] .option-item[data-value="Operator"].active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
}
.option-group[data-type="role"] .option-item[data-value="User"].active {
    border-color: #64748b;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #475569;
}

/* ---------- Toast ---------- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-item {
    pointer-events: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 14px 20px;
    min-width: 280px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-item.show {
    transform: translateX(0);
    opacity: 1;
}
.toast-item i {
    font-size: 20px;
}
.toast-item span {
    font-size: 14px;
    color: #0f172a;
}

/* ---------- 登录页 ---------- */
.login-page-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
}
.login-page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.login-card {
    position: relative;
    width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 40px 36px;
    backdrop-filter: blur(20px);
}
.login-logo-wrap {
    width: 88px; height: 88px;
    border-radius: 50%;
    margin: -64px auto 20px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3), 0 0 0 4px #fff;
    overflow: hidden;
}
.login-logo-wrap img {
    width: 100%; object-fit: cover;
}
.login-title {
    text-align: center;
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.login-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.login-input-wrap {
    position: relative;
}
.login-input-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
}
.login-input-wrap input {
    padding-left: 42px !important;
    padding-right: 44px !important; /* 给眼睛按钮留空间 */
    height: 48px;
    border-radius: 12px !important;
}
.login-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px !important;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

/* ---------- 欢迎条 ---------- */
.welcome-bar {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    padding: 22px 28px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.welcome-bar::before {
    content: '';
    position: absolute;
    right: -40px; top: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.welcome-bar h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}
.welcome-bar p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}
.welcome-bar .week-chip {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

/* ---------- 筛选面板 ---------- */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-chip {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    user-select: none;
}
.filter-chip:hover { background: #e2e8f0; }
.filter-chip.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* ---------- 周报横幅 ---------- */
.report-window-banner {
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.report-window-banner.in {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 1px solid #86efac;
}
.report-window-banner.out {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
}
.report-window-banner .banner-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.report-window-banner.in .banner-icon {
    background: #22c55e; color: #fff;
}
.report-window-banner.out .banner-icon {
    background: #f59e0b; color: #fff;
}

/* ---------- 分页 ---------- */
.pagination {
    gap: 4px;
}
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1px solid #e2e8f0;
    color: #475569;
    min-width: 36px;
    text-align: center;
}
.pagination .page-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.pagination .page-item.active .page-link {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
}

/* ---------- 头像 ---------- */
.avatar-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}
.avatar-circle.lg { width: 64px; height: 64px; font-size: 22px; }

/* ---------- 圆形进度 ---------- */
.circular-progress {
    position: relative;
    width: 120px; height: 120px;
}
.circular-progress svg {
    transform: rotate(-90deg);
}
.circular-progress .progress-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

/* ---------- 成员列表 ---------- */
.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.member-item:last-child { border-bottom: none; }

/* ---------- 时间线 ---------- */
.timeline-item {
    position: relative;
    padding-left: 28px;
    padding-bottom: 20px;
    border-left: 2px solid #e2e8f0;
}
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px; top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #3b82f6;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #3b82f6;
}

/* ---------- 附件 ---------- */
.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.15s;
}
.attachment-item:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}
.attachment-item .file-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: #eff6ff;
    color: #3b82f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

/* ---------- Chart 容器 ---------- */
.chart-box {
    position: relative;
    height: 280px;
}

/* ---------- 仪表盘：图表与本周待办等高 ---------- */
.dashboard-row > [class*="col-"] {
    display: flex;
}
.dashboard-row > [class*="col-"] > .card {
    width: 100%;
}
/* 待办列表高度与左侧图表卡片内容区（280 + 上下内边距 20*2）一致，超出滚动 */
.dashboard-todo-body {
    height: 320px;
    overflow-y: auto;
}
.dashboard-todo-body .empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ---------- 操作按钮组 ---------- */
.action-btns {
    display: flex;
    gap: 6px;
}
.action-btns .btn-sm {
    width: 30px; height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- 模态框 ---------- */
.modal-content {
    border-radius: 14px !important;
    border: none !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}
.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 18px 24px;
}
.modal-title {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 14px 24px;
}

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    height:302px
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
    width: 8px; height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .status-card { margin-bottom: 12px; }
    .welcome-bar { padding: 18px; }
    .welcome-bar h2 { font-size: 18px; }
    .login-card { width: 360px; padding: 32px 24px; }
    .content-header h1 { font-size: 18px; }
}

/* ========== 成员选择器 ========== */
.member-picker {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    /* height:100% 去掉，让内容自撑开，不会被列高拉伸 */
}
.member-picker-header {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}
.member-picker .member-multi {
    min-height: 64px;
    max-height: 120px;  /* 限制高度，人多了就滚动 */
    padding: 4px 6px;
    font-size: 13px;
}
.member-picker .member-multi option {
    padding: 4px 6px;
    border-radius: 4px;
}
.member-picker .member-multi option:checked {
    background: #3b82f6 linear-gradient(0deg, #3b82f6 0%, #3b82f6 100%);
    color: #fff;
}

/* 工具类：文字颜色 */
.text-purple { color: #8b5cf6; }
.text-amber  { color: #f59e0b; }
.text-teal   { color: #10b981; }
.text-blue   { color: #3b82f6; }

/* ========== 密码框通用眼睛按钮 ========== */
.pwd-wrap {
    position: relative;
    width: 100%;
    display: block;
}
.pwd-wrap > input {
    padding-right: 42px !important; /* 给眼睛按钮留空间 */
}
.pwd-eye {
    position: absolute;
    right: 8px;
    width: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    z-index: 2;
    /* top / height 由 JS syncEyeToInput 动态设置，精确贴合 input */
}
.pwd-eye:hover {
    color: #3b82f6;
    background: #eff6ff;
}
.pwd-eye:active,
.pwd-eye.showing {
    color: #3b82f6;
    background: #dbeafe;
}
.pwd-eye i {
    font-size: 15px;
    pointer-events: none; /* 防止 i 吞事件 */
}
/* login-input-wrap 特殊处理（已有 icon） */
.login-input-wrap.pwd-wrap .pwd-eye {
    right: 12px;
}
/* 覆盖 login-input-wrap i 的绝对定位规则 —— pwd-eye 里的 i 不能被拉去左边 */
.login-input-wrap.pwd-wrap .pwd-eye i {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

/* ========== 项目编号"生成"按钮 ========== */
.input-group .gen-no-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    padding: 0 18px;
    font-weight: 500;
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.input-group .gen-no-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    color: #fff;
}
.input-group .gen-no-btn:active {
    transform: translateY(0);
}
.input-group .gen-no-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
