/* Starnatx Refined Theme (Unified) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* --- Brand Core Colors --- */
    --st-primary: #EB6146;
    /* Primary Orange-Red (Life Vitality) */
    --st-primary-hover: #D94E33;
    /* Darker shade for hover */
    --st-secondary: #00B4D8;
    /* Data & Interactive Color (Cyan - Target Specificity) */
    --st-navy: #1D2D44;
    /* Brand Secondary Color (Deep Sea Navy Blue-Black) */
    --st-dark: #1D2D44;
    /* Brand Secondary Color for headings */
    --st-text: #1D2D44;
    /* Brand Secondary Color for core text */
    --st-text-muted: #7F8C8D;
    /* Muted Text */

    /* --- Backgrounds --- */
    --st-light: #F4F6F9;
    /* Environment & Background Color (Sterile Gray) */
    --st-white: #FFFFFF;
    /* Base Canvas Color (Pure White) */

    /* --- Borders & Shadows --- */
    --st-border: #E0E0E0;
    --st-radius-container: 12px;
    --st-radius-btn: 6px;
    --st-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* --- Functional Colors --- */
    --st-success-bg: #e8f5e9;
    --st-success-border: #d1f2eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--st-light);
    color: var(--st-text);
    line-height: 1.6;
}

/* --- Navbar (Glassmorphism & Branding) --- */
.navbar {
    background: linear-gradient(135deg, var(--st-navy) 0%, #3C3D3D 100%) !important;
    box-shadow: 0 4px 15px rgba(19, 49, 91, 0.2);
    padding: 0.8rem 0;
    border-bottom: none;
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin-left: 1.5rem;
    position: relative;
    font-size: 15px;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--st-primary);
}

/* --- Cards & Containers --- */
.card {
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-btn);
    box-shadow: var(--st-card-shadow);
    background: var(--st-white);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--st-white);
    border-bottom: 2px solid var(--st-primary);
    font-weight: 600;
    color: var(--st-dark);
    padding: 1rem 1.25rem;
    font-size: 16px;
}

.bg-st-primary {
    background-color: var(--st-primary) !important;
    color: #fff !important;
}

/* --- Unified Page Layout Components (Extracted from user_entry.html) --- */
.main-container {
    background-color: var(--st-white);
    border-radius: var(--st-radius-container);
    box-shadow: var(--st-card-shadow);
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.page-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--st-border);
    padding-bottom: 20px;
}

.page-title {
    color: var(--st-primary);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 5px;
}

.page-subtitle {
    color: var(--st-text-muted);
    font-size: 14px;
}

/* --- Buttons (Standardized) --- */
.btn-primary {
    background-color: var(--st-primary);
    border-color: var(--st-primary);
    border-radius: var(--st-radius-btn);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--st-primary-hover) !important;
    border-color: var(--st-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 97, 70, 0.25);
}

.btn-action {
    background-color: var(--st-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--st-radius-btn);
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-action:hover {
    background-color: var(--st-primary-hover);
    color: white;
    transform: translateY(-1px);
}

/* --- Control Panels (Forms) --- */
.control-panel {
    background-color: var(--st-success-bg);
    border: 1px solid var(--st-success-border);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.control-label {
    font-weight: bold;
    color: var(--st-primary);
    margin-right: 5px;
}

.form-select-custom {
    display: inline-block;
    width: auto;
    padding: 8px 15px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-btn);
    margin-right: 20px;
}

/* --- Login Page Specifics --- */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Utility Classes --- */
.text-uppercase-small {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* --- Timesheet Table Styles (Extracted from user_entry.html) --- */
.table th {
    vertical-align: middle;
    text-align: center;
    background-color: var(--st-light);
    color: var(--st-dark);
    font-weight: 600;
}

.day-col {
    min-width: 45px;
}

.weekend {
    background-color: #fcfcfc;
}

.table-container {
    overflow-x: auto;
    padding-bottom: 20px;
}

.current-month-label {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--st-dark);
}

.timesheet-table-container {
    overflow-x: auto;
    border-radius: var(--st-radius-btn);
    border: 1px solid var(--st-border);
}

.timesheet-tbl {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.timesheet-tbl th {
    background-color: var(--st-light);
    color: var(--st-text-muted);
    font-weight: 600;
    padding: 15px 10px;
    text-align: center;
    border-bottom: 2px solid var(--st-border);
    font-size: 13px;
    text-transform: uppercase;
}

.timesheet-tbl td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--st-border);
    vertical-align: middle;
    text-align: center;
}

/* Date Column */
.col-date {
    width: 140px;
}

.date-text {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

/* Copy Button */
.btn-copy {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
    transition: background-color 0.2s;
}

.btn-copy:hover {
    background-color: #d35400;
}

.btn-copy:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- Project Input Cell Components --- */
.project-cell {
    min-width: 100px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.alloc-input {
    width: 70px;
    text-align: center;
    border: 1px solid var(--st-border);
    border-radius: 4px;
    padding: 5px;
    font-size: 14px;
}

/* --- Range Slider (CRITICAL FIX) --- */
.alloc-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    margin-top: 5px;
}

.alloc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

/* --- Totals & Status Colors --- */
.total-col {
    width: 100px;
    font-weight: bold;
}

.total-val {
    color: #e67e22;
    /* Default incomplete */
    font-size: 16px;
}

.total-val.success {
    color: #27ae60;
}

.total-val.error {
    color: #e74c3c;
}

.row-weekend {
    background-color: #fdf2e9;
    /* Light orange for weekend */
}

/* Bottom Actions */
.bottom-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-submit-month {
    background-color: #e74c3c;
    /* Keep specific color for distinct action */
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
}

.btn-clear-all {
    background-color: #c0392b;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* --- UI Rescue: Enhanced Timesheet Styles --- */

/* 1. 美化下拉框 */
.form-select-custom {
    display: inline-block;
    width: auto;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--st-text);
    background-color: #fff;
    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='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-btn);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    appearance: none;
}

.form-select-custom:focus {
    border-color: var(--st-secondary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(243, 156, 18, 0.25);
}

/* 2. 美化日期旁的复制按钮 - 恢复胶囊文本按钮 */
.btn-copy {
    background-color: var(--st-light) !important;
    color: var(--st-text-muted) !important;
    border: 1px solid var(--st-border) !important;
    padding: 4px 12px !important;
    font-size: 11px;
    border-radius: 20px !important;
    cursor: pointer;
    width: auto !important;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-copy:hover {
    background-color: #fff !important;
    color: var(--st-secondary) !important;
    border-color: var(--st-secondary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-copy::before {
    content: "↺";
    font-size: 12px;
}

/* 3. 输入区域大修 */
.input-wrapper {
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    /*box-shadow: 0 1px 3px rgba(0,0,0,0.05);*/
    border: 1px solid transparent;
    /* 预留边框位置 */
    transition: all 0.2s;
}

.input-wrapper:hover {
    border-color: var(--st-border);
    background: #fdfdfd;
}

.alloc-input {
    width: 60px !important;
    text-align: right !important;
    /* 数字右对齐 */
    border: 1px solid var(--st-border) !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 14px;
    font-family: 'Inter', monospace;
    /* 数字字体 */
    margin-bottom: 6px;
    /* 与滑块的间距 */
    color: var(--st-dark);
}

.alloc-input:focus {
    border-color: var(--st-primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(235, 97, 70, 0.1);
}

/* 4. 滑块美化 */
.alloc-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px !important;
    border-radius: 2px;
    background: #eee !important;
    outline: none;
}

.alloc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50%;
    background: var(--st-white);
    border: 2px solid var(--st-primary);
    /* 空心圆点设计 */
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.alloc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--st-primary);
}

/* 5. 底部按钮修复 */
.btn-submit-month {
    background-color: var(--st-primary) !important;
    color: white !important;
    border: none;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(231, 76, 60, 0.2);
    transition: transform 0.2s;
    cursor: pointer;
}

.btn-submit-month:hover {
    background-color: var(--st-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}

.btn-clear-all {
    background-color: white !important;
    color: var(--st-text-muted) !important;
    border: 1px solid var(--st-border) !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 600;
    cursor: pointer;
}

.btn-clear-all:hover {
    border-color: var(--st-dark) !important;
    color: var(--st-dark) !important;
    background-color: var(--st-light) !important;
}

/* 6. 表格微调与滚动 */
.timesheet-tbl td {
    padding: 12px 8px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.timesheet-table-container {
    max-height: 70vh;
    /* 限制高度实现滚动 */
    overflow-y: auto;
    position: relative;
    /* 确保sticky生效 */
}

/* 覆盖 .timesheet-tbl th 的样式 */
.timesheet-tbl th {
    font-weight: 800 !important;
    /* 加粗表头 */
    color: var(--st-dark) !important;
    background-color: #f8f9fa !important;
    border-bottom: 2px solid var(--st-border) !important;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.05);
    /* 滚动时显示阴影 */
}

.weekend {
    background-color: #fafafa !important;
}

/* 7. 控制面板对齐 (已在HTML中通过Bootstrap类处理，保留基本背景) */
.control-panel {
    background-color: white !important;
    border: 1px solid var(--st-border) !important;
}

/* --- Phase 2.1: Skeleton Loading Animation --- */
.skeleton {
    background: #f0f2f5;
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 37%, #f0f2f5 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

.skeleton-text {
    height: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-rect {
    height: 100%;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* --- Phase 3: Finance Report Styles --- */

/* 未提交人员标签云 */
.missing-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 120px;
    /* 默认折叠高度 */
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: relative;
}

.missing-tags-container.expanded {
    max-height: 2000px;
    /* 展开高度 */
}

.missing-user-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
    border-radius: 50px;
    font-size: 13px;
    transition: all 0.2s;
    cursor: default;
}

.missing-user-tag:hover {
    background-color: #ffccc7;
    transform: translateY(-1px);
}

.missing-user-tag i {
    margin-right: 4px;
    font-size: 1.1em;
}

.btn-expand-more {
    color: var(--st-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}

.btn-expand-more:hover {
    text-decoration: underline;
}

/* 财务表格特定优化 */
.finance-table-container {
    max-height: 65vh;
    overflow-y: auto;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.val-zero {
    color: #d9d9d9;
    /* 让0值更淡，突出有数据的项 */
    font-size: 0.9em;
}

.row-group-header {
    background-color: #fff7e6 !important;
    font-weight: 700;
    color: #d46b08;
}

.row-subtotal {
    background-color: #fafafa !important;
    font-weight: 600;
    border-top: 2px solid #f0f0f0;
}




/* --- Phase 2: Premium Login Page Styles --- */

/* 动态背景 */
.login-body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glassmorphism 卡片 */
.login-card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

/* 品牌 Logo 区域 */
.login-brand-area {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-brand-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* --- Timesheet Redesign 2026 (Minimalist) --- */

/* 1. Date Cell - Calendar Block Style */
.date-cell-calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    color: var(--st-dark);
}

.date-day-number {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--st-navy);
}

.date-day-text {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--st-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.weekend .date-day-number {
    color: var(--st-primary);
}

.weekend .date-day-text {
    color: var(--st-primary);
    opacity: 0.8;
}

/* 2. Minimalist Input Fields */
.input-wrapper-minimal {
    position: relative;
    width: 100%;
    height: 48px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
}

.alloc-input-minimal {
    width: 100% !important;
    max-width: 80px;
    height: 36px;
    text-align: center !important;
    border: 1px solid transparent !important;
    /* Invisible by default */
    background-color: transparent;
    border-radius: 6px !important;
    font-size: 15px;
    color: var(--st-text);
    font-weight: 500;
    transition: all 0.2s;
    padding: 0 !important;
}

/* Hover state */
.input-wrapper-minimal:hover .alloc-input-minimal {
    background-color: #f8f9fa;
    border-color: #e9ecef !important;
}

/* Focus state - clear visibility */
.alloc-input-minimal:focus {
    background-color: #fff !important;
    border-color: var(--st-primary) !important;
    box-shadow: 0 0 0 3px rgba(235, 97, 70, 0.15) !important;
    outline: none;
}

/* Zero value styling (make it faint) */
.alloc-input-minimal[value="0"],
.alloc-input-minimal[value="0.0"],
.alloc-input-minimal[value="0.00"] {
    color: #cbd5e0;
}

/* Bold for filled values */
.alloc-input-minimal.has-value {
    font-weight: 800 !important;
    color: #2c3e50 !important;
}

/* 3. Smart Actions (Copy Icon) - Highlights */
.col-actions {
    width: 60px;
    text-align: center;
}

.btn-icon-action {
    color: var(--st-primary);
    background-color: rgba(235, 97, 70, 0.1);
    border: 1px solid rgba(235, 97, 70, 0.2);
    cursor: pointer;
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
    opacity: 1 !important;
    /* Always visible as requested */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

tr:hover .btn-icon-action {
    background-color: var(--st-primary);
    color: white;
    box-shadow: 0 2px 5px rgba(235, 97, 70, 0.3);
}

.btn-icon-action:hover {
    transform: scale(1.1);
}

/* Tip styling */
.alert-soft-primary {
    background-color: #f0f7ff;
    color: #004085;
    border: 1px solid #cce5ff;
}

.alert-soft-primary .bi-info-circle-fill {
    color: #007bff;
}

/* 4. Table Row Improvements */
/* Stronger weekend contrast */
.row-weekend {
    background-color: #fff8f3 !important;
    /* Warm tint */
    border-top: 1px solid #ffead6;
    border-bottom: 1px solid #ffead6;
}

/* Active row highlight */
.timesheet-tbl tr {
    transition: background-color 0.1s;
}

.timesheet-tbl tr:hover {
    background-color: #fcfcfc;
}

.timesheet-tbl tr.row-weekend:hover {
    background-color: #fff3e6 !important;
}

/* Ensure header stays strictly on top and looks clean */
.timesheet-tbl th {
    padding: 12px 6px !important;
    font-size: 12px;
    background: #fff !important;
    border-bottom: 2px solid #edf2f7 !important;
    white-space: nowrap;
}

/* Total Column Enhancement */
.total-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}



.login-title {
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: #596275;
    font-size: 0.95rem;
}

/* 浮动标签 (Floating Labels) 覆盖 Bootstrap */
.form-floating>.form-control {
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.form-floating>.form-control:focus {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.15);
    border-color: var(--st-primary);
    background: white;
}

.form-floating>label {
    color: #7f8c8d;
}

/* 登录按钮 */
.btn-login-premium {
    background: linear-gradient(135deg, var(--st-primary), #c0392b);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-login-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, #ff7e67, #d35400);
}

/* 底部链接 */
.login-footer-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.login-footer-links a {
    color: #57606f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-footer-links a:hover {
    color: var(--st-primary);
}

/* =========================================
   Dashboard / Console Styles
   ========================================= */

/* Dashboard Hero Section */
.dashboard-hero {
    background: linear-gradient(135deg, var(--st-navy) 0%, #2c3e50 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-welcome h1 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.hero-welcome p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.user-profile-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    background: var(--st-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-info h6 {
    margin: 0;
    font-weight: 700;
}

.profile-info span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: white;
}

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

.service-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.service-card:hover .service-icon-wrapper {
    animation: bounce-icon 0.5s ease;
}

@keyframes bounce-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Specific Card Colors */
.card-timesheet .service-icon-wrapper {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.card-vault .service-icon-wrapper {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.card-admin .service-icon-wrapper {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.service-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--st-navy);
}

.service-desc {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Quick Action Links in Cards */
.quick-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-card-action {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: var(--st-navy);
    padding: 0.6rem;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-card-action:hover {
    background: var(--st-navy);
    color: white;
    border-color: var(--st-navy);
}

.btn-card-primary {
    background: var(--st-primary);
    color: white;
    border: none;
}

.btn-card-primary:hover {
    background: #c0392b;
    /* Darker red */
    color: white;
    transform: translateY(-1px);
}

/* Dashbord Hero & Cards Polish */

/* Keep dashboard content comfortably inset from the viewport edge. */
.dashboard-container {
    max-width: 1260px;
}

/* 1. Hero Section Enhanced */
.dashboard-hero {
    background: linear-gradient(135deg, var(--st-white) 0%, #f8f9fa 100%);
    border-radius: var(--st-radius-container);
    padding: 2rem 1.75rem 1.25rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

@media (max-width: 767.98px) {
    .dashboard-hero {
        padding: 1.5rem 1.25rem;
    }

}

.hero-welcome h1 {
    font-weight: 800;
    color: var(--st-dark);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

/* 2. Service Cards Enhanced */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 4px solid transparent;
    /* Prepare for accent color */
    overflow: hidden;
    position: relative;
    background: #fff;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Card Specific Accents */
.card-timesheet {
    border-top-color: var(--st-primary);
}

.card-vault {
    border-top-color: var(--st-secondary);
}

.card-admin {
    border-top-color: #dc3545;
}

/* 3. Icon Wrappers */
.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    padding: 15px;
}

/* Icon Colors */
.card-timesheet .service-icon-wrapper {
    background-color: rgba(235, 97, 70, 0.1);
    color: var(--st-primary);
}

.card-vault .service-icon-wrapper {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--st-secondary);
}

.card-admin .service-icon-wrapper {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Title & Desc */
.service-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--st-dark);
}

.service-desc {
    color: var(--st-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    min-height: 48px;
    /* Alignment fix for concise text */
}

/* Button Tweaks for Cards */
.btn-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-card-primary {
    background-color: transparent;
    /* Fallback */
}

/* --- Utility Classes for Finance Users Page --- */
.icon-box-lg {
    width: 48px;
    height: 48px;
    color: var(--st-danger);
}

.scroll-y-300 {
    height: 300px;
    overflow-y: auto;
}

.scroll-y-max-300 {
    max-height: 300px;
    overflow-y: auto;
}

.scroll-y-max-400 {
    max-height: 400px;
    overflow-y: auto;
}

.min-h-pill-container {
    min-height: 60px;
}

.text-limit-280 {
    max-width: 280px;
}

.text-limit-200 {
    max-width: 200px;
}

.fs-11 {
    font-size: 11px;
}

:root {
    --st-danger: #dc3545;
}
