/* APS Advanced Planning & Scheduling System - Premium Dark Theme V3 */
/* Enterprise-grade visual design with glass-morphism, animated accents, and polished transitions */

/* ==================== Variables & Reset ==================== */
:root {
    --bg-primary: #eef1f5;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #ffffff;
    --bg-card: #ffffff;
    --border-subtle: rgba(200, 210, 225, 0.7);
    --border-glow: rgba(59, 130, 246, 0.2);
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gold: #d4a843;
    --purple: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(59, 130, 246, 0.1);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Layui icon font path correction */
@font-face {
    font-family: 'layui-icon';
    src: url('/static/layui/font/iconfont.eot?v=293') format('embedded-opentype'),
         url('/static/layui/font/iconfont.woff2?v=293') format('woff2'),
         url('/static/layui/font/iconfont.woff?v=293') format('woff'),
         url('/static/layui/font/iconfont.ttf?v=293') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ==================== Global Base ==================== */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ==================== Animated Background Particles ==================== */
.aps-layout::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(59, 130, 246, 0.08), transparent),
        radial-gradient(1px 1px at 25% 60%, rgba(59, 130, 246, 0.06), transparent),
        radial-gradient(2px 2px at 40% 15%, rgba(59, 130, 246, 0.05), transparent),
        radial-gradient(1px 1px at 55% 70%, rgba(59, 130, 246, 0.07), transparent),
        radial-gradient(1.5px 1.5px at 70% 30%, rgba(59, 130, 246, 0.06), transparent),
        radial-gradient(1px 1px at 85% 80%, rgba(59, 130, 246, 0.05), transparent),
        radial-gradient(2px 2px at 15% 85%, rgba(59, 130, 246, 0.04), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(59, 130, 246, 0.07), transparent),
        radial-gradient(1.5px 1.5px at 50% 50%, rgba(59, 130, 246, 0.05), transparent),
        radial-gradient(1px 1px at 35% 40%, rgba(59, 130, 246, 0.06), transparent),
        radial-gradient(2px 2px at 75% 55%, rgba(59, 130, 246, 0.04), transparent),
        radial-gradient(1px 1px at 5% 45%, rgba(59, 130, 246, 0.07), transparent),
        radial-gradient(1.5px 1.5px at 60% 90%, rgba(59, 130, 246, 0.05), transparent),
        radial-gradient(1px 1px at 95% 45%, rgba(59, 130, 246, 0.06), transparent),
        radial-gradient(2px 2px at 30% 75%, rgba(59, 130, 246, 0.04), transparent);
    animation: particles-float 25s linear infinite;
}

.aps-layout::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(3px 3px at 20% 30%, rgba(59, 130, 246, 0.03), transparent),
        radial-gradient(4px 4px at 60% 70%, rgba(59, 130, 246, 0.02), transparent),
        radial-gradient(3px 3px at 80% 20%, rgba(59, 130, 246, 0.03), transparent),
        radial-gradient(5px 5px at 40% 80%, rgba(59, 130, 246, 0.02), transparent),
        radial-gradient(3px 3px at 10% 60%, rgba(59, 130, 246, 0.02), transparent),
        radial-gradient(4px 4px at 90% 90%, rgba(59, 130, 246, 0.02), transparent);
    animation: orbs-drift 35s ease-in-out infinite alternate;
}

@keyframes particles-float {
    0% { transform: translateY(0) translateX(0); opacity: 0.8; }
    25% { transform: translateY(-15px) translateX(10px); opacity: 1; }
    50% { transform: translateY(-5px) translateX(-8px); opacity: 0.7; }
    75% { transform: translateY(-20px) translateX(5px); opacity: 0.9; }
    100% { transform: translateY(0) translateX(0); opacity: 0.8; }
}

@keyframes orbs-drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -10px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
    100% { transform: translate(10px, -20px) scale(1.02); }
}

.aps-layout {
    min-height: 100vh;
    position: relative;
}

/* Ensure content renders above particles */
.aps-header,
.aps-sidebar,
.aps-body {
    position: relative;
    z-index: 1;
}

/* ==================== Page Entrance Animations ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Staggered entrance for cards */
.aps-card:nth-child(1) { animation: fadeInUp 0.4s ease-out 0.05s both; }
.aps-card:nth-child(2) { animation: fadeInUp 0.4s ease-out 0.1s both; }
.aps-card:nth-child(3) { animation: fadeInUp 0.4s ease-out 0.15s both; }
.aps-card:nth-child(4) { animation: fadeInUp 0.4s ease-out 0.2s both; }
.aps-card:nth-child(5) { animation: fadeInUp 0.4s ease-out 0.25s both; }
.aps-card:nth-child(6) { animation: fadeInUp 0.4s ease-out 0.3s both; }
.aps-card:nth-child(7) { animation: fadeInUp 0.4s ease-out 0.35s both; }
.aps-card:nth-child(8) { animation: fadeInUp 0.4s ease-out 0.4s both; }

/* ==================== Top Header Bar ==================== */
.aps-header {
    background: linear-gradient(90deg, #1e3a5f 0%, #2563eb 50%, #1e3a5f 100%);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.2);
    height: 60px;
    line-height: 60px;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    overflow: hidden;
}

/* Animated gradient sweep across the top bar */
.aps-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: header-sweep 6s ease-in-out infinite;
    pointer-events: none;
}

/* Bottom edge glow line */
.aps-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #60a5fa 20%, #34d399 50%, #60a5fa 80%, transparent 100%);
    animation: header-glow 4s ease-in-out infinite;
}

@keyframes header-sweep {
    0%, 100% { transform: translateX(-25%); }
    50% { transform: translateX(25%); }
}

@keyframes header-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Logo visual tuning */
.aps-logo {
    font-size: 22px;
    font-weight: 800;
    color: #f8fbff;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1;
    padding-bottom: 2px;
}

.aps-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 56px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(96, 165, 250, 0.25));
    box-shadow: 0 0 14px rgba(148, 197, 255, 0.35);
}

.aps-logo span {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: rgba(226, 241, 255, 0.92);
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
    transform: translateY(-1px);
}

/* Navigation links */
.aps-nav {
    float: right;
}

.aps-nav a {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 25px;
    font-size: 14px;
    transition: color var(--transition-normal), text-shadow var(--transition-normal);
    position: relative;
}

.aps-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-normal), left var(--transition-normal);
}

.aps-nav a:hover::after,
.aps-nav a.active::after {
    width: 100%;
    left: 0;
}

.aps-nav a:hover,
.aps-nav a.active {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.aps-nav .layui-icon {
    margin-right: 4px;
    font-size: 16px;
}

/* ==================== Sidebar - Premium Light Glass Tech ==================== */
.aps-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 40%, #f1f5f9 100%);
    border-right: 1px solid rgba(200, 210, 225, 0.6);
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 998;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.06), inset -1px 0 0 rgba(255,255,255,0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding-bottom: 100px;
}

/* Animated tech grid background */
.aps-sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: grid-move 20s linear infinite;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

/* Top glow line */
.aps-sidebar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), rgba(139,92,246,0.4), rgba(59,130,246,0.5), transparent);
    pointer-events: none;
}

.aps-sidebar .layui-nav {
    background: transparent;
    width: 260px;
}

/* Nav items - pill style */
.aps-sidebar .layui-nav-tree .layui-nav-item a {
    color: #475569;
    height: 46px;
    line-height: 46px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: none;
    padding-left: 16px;
    margin: 3px 14px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.aps-sidebar .layui-nav-tree .layui-nav-item a::before {
    display: none;
}

.aps-sidebar .layui-nav-tree .layui-nav-item a:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.04));
    color: #2563eb;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

/* Active item - premium pill */
.aps-sidebar .layui-nav-tree .layui-this,
.aps-sidebar .layui-nav-tree .layui-this > a,
.aps-sidebar .layui-nav-tree .layui-nav-child .layui-this,
.aps-sidebar .layui-nav-tree .layui-nav-child .layui-this a {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08)) !important;
    color: #1e40af !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255,255,255,0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.aps-sidebar .layui-nav-tree .layui-this > a::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
    animation: active-dot-pulse 2s ease-in-out infinite;
}

@keyframes active-dot-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(96, 165, 250, 0.4); transform: translateY(-50%) scale(1); }
    50% { box-shadow: 0 0 20px rgba(96, 165, 250, 0.8); transform: translateY(-50%) scale(1.3); }
}

.aps-sidebar .layui-nav-tree .layui-nav-bar {
    display: none;
}

.aps-sidebar .layui-nav-item .layui-icon {
    margin-right: 10px;
    font-size: 17px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.04));
    border: 1px solid rgba(59,130,246,0.1);
}

.aps-sidebar .layui-nav-item:hover .layui-icon {
    transform: scale(1.15) rotate(-5deg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.08));
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.aps-sidebar .layui-nav-tree .layui-this .layui-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.12));
    color: #2563eb;
    border-color: rgba(59,130,246,0.25);
}

/* ==================== Main Content Area ==================== */
.aps-body {
    margin-left: 260px;
    margin-top: 60px;
    padding: 24px;
    min-height: calc(100vh - 60px);
    background: var(--bg-primary);
    position: relative;
}

/* Subtle grid pattern overlay */
.aps-body::before {
    content: '';
    position: fixed;
    top: 60px;
    left: 260px;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.aps-body > * {
    position: relative;
    z-index: 1;
}

/* ==================== Cards - Premium Glass Effect ==================== */
.aps-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle inner gradient overlay */
.aps-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 184, 255, 0.15), transparent);
    pointer-events: none;
}

.aps-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 15px rgba(0, 0, 0, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Border glow on hover */
.aps-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(77, 184, 255, 0.3) 50%, transparent 60%);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.aps-card:hover::after {
    opacity: 1;
    animation: card-border-shimmer 3s ease-in-out infinite;
}

@keyframes card-border-shimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.aps-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.aps-card-header .layui-icon {
    margin-right: 10px;
    color: var(--accent);
    font-size: 18px;
    filter: drop-shadow(0 0 6px rgba(77, 184, 255, 0.3));
}

.aps-card-body {
    padding: 20px 24px;
}

/* ==================== Breadcrumb Bar ==================== */
.aps-breadcrumb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}
.aps-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==================== Stat Cards - Premium Glass-Morphism ==================== */
.aps-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 130px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Animated gradient border effect */
.aps-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    animation: gradient-border-rotate 4s ease-in-out infinite;
}

.aps-stat-card:hover::before {
    opacity: 1;
}

@keyframes gradient-border-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Top accent bar with per-card colors */
.aps-stat-card .stat-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}

/* Per-color theming */
.aps-stat-card:nth-child(1)::before { background: linear-gradient(135deg, #60a5fa, transparent 40%, transparent 60%, #60a5fa); background-size: 300% 300%; }
.aps-stat-card:nth-child(1) .stat-icon { color: #60a5fa; }
.aps-stat-card:nth-child(1) .stat-bar { background: linear-gradient(90deg, #60a5fa, #7dd3ff); }

.aps-stat-card:nth-child(2)::before { background: linear-gradient(135deg, #d4a843, transparent 40%, transparent 60%, #d4a843); background-size: 300% 300%; }
.aps-stat-card:nth-child(2) .stat-icon { color: #d4a843; }
.aps-stat-card:nth-child(2) .stat-bar { background: linear-gradient(90deg, #d4a843, #f0cc73); }

.aps-stat-card:nth-child(3)::before { background: linear-gradient(135deg, #ffb43c, transparent 40%, transparent 60%, #ffb43c); background-size: 300% 300%; }
.aps-stat-card:nth-child(3) .stat-icon { color: #ffb43c; }
.aps-stat-card:nth-child(3) .stat-bar { background: linear-gradient(90deg, #ffb43c, #ffd080); }

.aps-stat-card:nth-child(4)::before { background: linear-gradient(135deg, #4ade80, transparent 40%, transparent 60%, #4ade80); background-size: 300% 300%; }
.aps-stat-card:nth-child(4) .stat-icon { color: #4ade80; }
.aps-stat-card:nth-child(4) .stat-bar { background: linear-gradient(90deg, #4ade80, #88ffbb); }

.aps-stat-card:nth-child(5)::before { background: linear-gradient(135deg, #a78bfa, transparent 40%, transparent 60%, #a78bfa); background-size: 300% 300%; }
.aps-stat-card:nth-child(5) .stat-icon { color: #a78bfa; }
.aps-stat-card:nth-child(5) .stat-bar { background: linear-gradient(90deg, #a78bfa, #c4b5fd); }

.aps-stat-card:nth-child(6)::before { background: linear-gradient(135deg, #ff4d4d, transparent 40%, transparent 60%, #ff4d4d); background-size: 300% 300%; }
.aps-stat-card:nth-child(6) .stat-icon { color: #ff4d4d; }
.aps-stat-card:nth-child(6) .stat-bar { background: linear-gradient(90deg, #ff4d4d, #ff8888); }

.aps-stat-card:nth-child(7)::before { background: linear-gradient(135deg, #06b6d4, transparent 40%, transparent 60%, #06b6d4); background-size: 300% 300%; }
.aps-stat-card:nth-child(7) .stat-icon { color: #06b6d4; }
.aps-stat-card:nth-child(7) .stat-bar { background: linear-gradient(90deg, #06b6d4, #67e8f9); }

.aps-stat-card:nth-child(8)::before { background: linear-gradient(135deg, #ec4899, transparent 40%, transparent 60%, #ec4899); background-size: 300% 300%; }
.aps-stat-card:nth-child(8) .stat-icon { color: #ec4899; }
.aps-stat-card:nth-child(8) .stat-bar { background: linear-gradient(90deg, #ec4899, #f9a8d4); }

.aps-stat-card:nth-child(9)::before { background: linear-gradient(135deg, #14b8a6, transparent 40%, transparent 60%, #14b8a6); background-size: 300% 300%; }
.aps-stat-card:nth-child(9) .stat-icon { color: #14b8a6; }
.aps-stat-card:nth-child(9) .stat-bar { background: linear-gradient(90deg, #14b8a6, #5eead4); }

.aps-stat-card:nth-child(10)::before { background: linear-gradient(135deg, #f97316, transparent 40%, transparent 60%, #f97316); background-size: 300% 300%; }
.aps-stat-card:nth-child(10) .stat-icon { color: #f97316; }
.aps-stat-card:nth-child(10) .stat-bar { background: linear-gradient(90deg, #f97316, #fdba74); }

.aps-stat-card:nth-child(11)::before { background: linear-gradient(135deg, #8b5cf6, transparent 40%, transparent 60%, #8b5cf6); background-size: 300% 300%; }
.aps-stat-card:nth-child(11) .stat-icon { color: #8b5cf6; }
.aps-stat-card:nth-child(11) .stat-bar { background: linear-gradient(90deg, #8b5cf6, #c4b5fd); }

.aps-stat-card:nth-child(12)::before { background: linear-gradient(135deg, #64748b, transparent 40%, transparent 60%, #64748b); background-size: 300% 300%; }
.aps-stat-card:nth-child(12) .stat-icon { color: #64748b; }
.aps-stat-card:nth-child(12) .stat-bar { background: linear-gradient(90deg, #64748b, #94a3b8); }

.aps-stat-card:nth-child(13)::before { background: linear-gradient(135deg, #3b82f6, transparent 40%, transparent 60%, #3b82f6); background-size: 300% 300%; }
.aps-stat-card:nth-child(13) .stat-icon { color: #3b82f6; }
.aps-stat-card:nth-child(13) .stat-bar { background: linear-gradient(90deg, #3b82f6, #93c5fd); }

.aps-stat-card:nth-child(14)::before { background: linear-gradient(135deg, #d4a843, transparent 40%, transparent 60%, #d4a843); background-size: 300% 300%; }
.aps-stat-card:nth-child(14) .stat-icon { color: #d4a843; }
.aps-stat-card:nth-child(14) .stat-bar { background: linear-gradient(90deg, #d4a843, #f0cc73); }

.aps-stat-card:nth-child(15)::before { background: linear-gradient(135deg, #ffb43c, transparent 40%, transparent 60%, #ffb43c); background-size: 300% 300%; }
.aps-stat-card:nth-child(15) .stat-icon { color: #ffb43c; }
.aps-stat-card:nth-child(15) .stat-bar { background: linear-gradient(90deg, #ffb43c, #ffd080); }

.aps-stat-card:nth-child(16)::before { background: linear-gradient(135deg, #22c55e, transparent 40%, transparent 60%, #22c55e); background-size: 300% 300%; }
.aps-stat-card:nth-child(16) .stat-icon { color: #22c55e; }
.aps-stat-card:nth-child(16) .stat-bar { background: linear-gradient(90deg, #22c55e, #86efac); }

.aps-stat-card:nth-child(17)::before { background: linear-gradient(135deg, #a78bfa, transparent 40%, transparent 60%, #a78bfa); background-size: 300% 300%; }
.aps-stat-card:nth-child(17) .stat-icon { color: #a78bfa; }
.aps-stat-card:nth-child(17) .stat-bar { background: linear-gradient(90deg, #a78bfa, #c4b5fd); }

.aps-stat-card:nth-child(18)::before { background: linear-gradient(135deg, #ef4444, transparent 40%, transparent 60%, #ef4444); background-size: 300% 300%; }
.aps-stat-card:nth-child(18) .stat-icon { color: #ef4444; }
.aps-stat-card:nth-child(18) .stat-bar { background: linear-gradient(90deg, #ef4444, #fca5a5); }

/* Background glow orb */
.aps-stat-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(77, 184, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.aps-stat-card:hover::after {
    transform: scale(1.5);
    opacity: 0.8;
}

/* Shine sweep animation on hover */
.aps-stat-card .shine-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.04), transparent);
    transform: skewX(-15deg);
    transition: none;
    pointer-events: none;
}

.aps-stat-card:hover .shine-sweep {
    animation: shine-sweep 0.8s ease-out forwards;
}

@keyframes shine-sweep {
    0% { left: -60%; }
    100% { left: 120%; }
}

.aps-stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.06),
        0 0 30px rgba(59, 130, 246, 0.1);
}

.aps-stat-card .stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.9;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    filter: drop-shadow(0 2px 8px currentColor);
}

.aps-stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(-5deg);
    opacity: 1;
}

.aps-stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.aps-stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Stat value animation */
.stat-value.animate {
    animation: pulse-count 0.6s ease-out;
}

@keyframes pulse-count {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* ==================== KPI Summary Cards (Report Page) ==================== */
.kpi-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.kpi-card {
    flex: 1;
    min-width: 180px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.kpi-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    transition: width 0.3s ease;
}

.kpi-card:nth-child(1)::before { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.kpi-card:nth-child(2)::before { background: linear-gradient(180deg, #4ade80, #16a34a); }
.kpi-card:nth-child(3)::before { background: linear-gradient(180deg, #d4a843, #8a6d3b); }
.kpi-card:nth-child(4)::before { background: linear-gradient(180deg, #ffb43c, #9c6a2a); }
.kpi-card:nth-child(5)::before { background: linear-gradient(180deg, #06b6d4, #0e7490); }
.kpi-card:nth-child(6)::before { background: linear-gradient(180deg, #ec4899, #be185d); }

.kpi-card:hover::before {
    width: 4px;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(59, 130, 246, 0.25);
}

.kpi-card .kpi-icon {
    font-size: 38px;
    opacity: 0.85;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px currentColor);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kpi-card:hover .kpi-icon {
    transform: scale(1.1);
}

.kpi-card:nth-child(1) .kpi-icon { color: #60a5fa; }
.kpi-card:nth-child(2) .kpi-icon { color: #4ade80; }
.kpi-card:nth-child(3) .kpi-icon { color: #d4a843; }
.kpi-card:nth-child(4) .kpi-icon { color: #ffb43c; }
.kpi-card:nth-child(5) .kpi-icon { color: #06b6d4; }
.kpi-card:nth-child(6) .kpi-icon { color: #ec4899; }

.kpi-card .kpi-info {
    flex: 1;
}

.kpi-card .kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
}

.kpi-card .kpi-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ==================== Tables - Premium Complex ==================== */
.aps-table {
    background: transparent;
}

.aps-table .layui-table {
    background: #ffffff;
    color: var(--text-secondary);
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(200, 210, 225, 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 0 0 1px rgba(255,255,255,0.8) inset;
}

.aps-table .layui-table thead tr {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 50%, #dbeafe 100%);
}

.aps-table .layui-table thead th {
    color: #334155;
    font-weight: 700;
    border-bottom: 2px solid #cbd5e1;
    border-right: 1px solid rgba(200, 210, 225, 0.4);
    padding: 14px 16px;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    background: transparent;
    position: relative;
}

.aps-table .layui-table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), transparent);
}

.aps-table .layui-table thead th:last-child {
    border-right: none;
}

/* Zebra striping with gradient */
.aps-table .layui-table tbody tr:nth-child(even) {
    background: linear-gradient(90deg, rgba(241, 245, 249, 0.6), rgba(248, 250, 252, 0.4));
}

.aps-table .layui-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.aps-table .layui-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: row-slide-in 0.4s ease-out both;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

/* Staggered row animation */
.aps-table .layui-table tbody tr:nth-child(1) { animation-delay: 0.03s; }
.aps-table .layui-table tbody tr:nth-child(2) { animation-delay: 0.06s; }
.aps-table .layui-table tbody tr:nth-child(3) { animation-delay: 0.09s; }
.aps-table .layui-table tbody tr:nth-child(4) { animation-delay: 0.12s; }
.aps-table .layui-table tbody tr:nth-child(5) { animation-delay: 0.15s; }
.aps-table .layui-table tbody tr:nth-child(6) { animation-delay: 0.18s; }
.aps-table .layui-table tbody tr:nth-child(7) { animation-delay: 0.21s; }
.aps-table .layui-table tbody tr:nth-child(8) { animation-delay: 0.24s; }
.aps-table .layui-table tbody tr:nth-child(9) { animation-delay: 0.27s; }
.aps-table .layui-table tbody tr:nth-child(10) { animation-delay: 0.3s; }

@keyframes row-slide-in {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.aps-table .layui-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.03));
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15) inset;
    transform: scale(1.002);
}

.aps-table .layui-table td {
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    border-right: 1px solid rgba(226, 232, 240, 0.3);
    padding: 13px 16px;
    font-size: 13px;
    transition: all 0.2s;
    vertical-align: middle;
}

.aps-table .layui-table td:last-child {
    border-right: none;
}

.aps-table .layui-table tbody tr:hover td {
    color: var(--text-primary);
}

.aps-table .layui-table-page {
    background: transparent;
    padding: 15px 10px;
}

.aps-table .layui-laypage a,
.aps-table .layui-laypage span {
    background: #ffffff;
    color: var(--text-secondary);
    border: 1px solid rgba(200, 210, 225, 0.6);
    border-radius: 8px;
    transition: all 0.25s ease;
    font-weight: 500;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
}

.aps-table .layui-laypage a:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.aps-table .layui-laypage .layui-laypage-curr .layui-laypage-em {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    border-radius: 8px;
    font-weight: 700;
}

/* Enhanced table header actions */
.table-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid rgba(200, 210, 225, 0.4);
    border-radius: 10px;
}

.table-header-actions .action-group {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 12px;
    border-right: 1px solid rgba(200, 210, 225, 0.4);
}

.table-header-actions .action-group:last-child {
    border-right: none;
    padding-right: 0;
}

.table-header-actions .action-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== Buttons ==================== */
.aps-btn-primary {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

/* Button shine effect */
.aps-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-15deg);
    transition: none;
}

.aps-btn-primary:hover::before {
    animation: btn-shine 0.6s ease-out forwards;
}

@keyframes btn-shine {
    0% { left: -60%; }
    100% { left: 120%; }
}

.aps-btn-primary:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: #fff;
}

.aps-btn-primary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
}

.aps-btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    color: #fff;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.aps-btn-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: #fff;
}

.aps-btn-danger:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.2);
}

.aps-btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border: none;
    color: #fff;
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.aps-btn-success:hover {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: #fff;
}

.aps-btn-success:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 4px rgba(34, 197, 94, 0.2);
}

/* Icon button with animation */
.icon-btn {
    padding: 0 6px;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 24px;
    line-height: 24px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

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

.icon-btn .layui-icon {
    font-size: 12px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Table action buttons container */
.action-btns {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

/* ==================== Forms ==================== */
.aps-form .layui-input,
.aps-form .layui-textarea,
.aps-form .layui-select {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    padding: 0 14px;
}

.aps-form .layui-input:focus,
.aps-form .layui-textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 2px 8px rgba(59, 130, 246, 0.08) !important;
    background: var(--bg-card);
}

.aps-form .layui-form-label {
    color: var(--text-muted);
    font-weight: 500;
}

.aps-form .layui-form-select dl {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.aps-form .layui-form-select dl dd {
    color: var(--text-secondary);
    transition: background 0.2s, color 0.2s;
}

.aps-form .layui-form-select dl dd:hover,
.aps-form .layui-form-select dl dd.layui-this {
    background: rgba(77, 184, 255, 0.12);
    color: var(--accent);
}

/* ==================== Login Page ==================== */
.aps-login-bg {
    background: linear-gradient(135deg, #eef1f5 0%, #dbeafe 40%, #bfdbfe 70%, #93c5fd 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Login page floating orbs */
.aps-login-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(77, 184, 255, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: float-glow 10s ease-in-out infinite;
}

.aps-login-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float-glow 12s ease-in-out infinite reverse;
}

@keyframes float-glow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33% { transform: translate(-30px, 20px) scale(1.05); opacity: 0.8; }
    66% { transform: translate(20px, -15px) scale(0.95); opacity: 1; }
}

.aps-login-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(200, 210, 225, 0.8);
    border-radius: 16px;
    padding: 50px 40px;
    width: 420px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1), 0 0 40px rgba(59, 130, 246, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    z-index: 1;
    animation: login-appear 0.5s ease-out;
}

@keyframes login-appear {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.aps-login-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(77, 184, 255, 0.2), transparent 50%, rgba(77, 184, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.aps-login-box .login-title {
    text-align: center;
    margin-bottom: 40px;
}

.aps-login-box .login-title h2 {
    color: #ffffff;
    font-size: 26px;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(77, 184, 255, 0.3);
}

.aps-login-box .login-title p {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 1px;
}

.aps-login-box .layui-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    height: 46px;
    line-height: 46px;
    padding-left: 45px;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.aps-login-box .layui-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.aps-login-box .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 18px;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.3));
}

.aps-login-box .layui-btn {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    border: none;
    height: 46px;
    line-height: 46px;
    font-size: 16px;
    letter-spacing: 2px;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(77, 184, 255, 0.3);
    transition: all 0.3s ease;
}

.aps-login-box .layui-btn:hover {
    box-shadow: 0 6px 25px rgba(77, 184, 255, 0.4);
    transform: translateY(-1px);
}

/* ==================== Gantt Chart ==================== */
.aps-gantt {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-subtle);
}

.aps-gantt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.aps-gantt-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 10px 10px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    font-size: 13px;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.aps-gantt-table td {
    border: 1px solid var(--border-subtle);
    padding: 6px 8px;
    text-align: center;
    height: 42px;
    position: relative;
    transition: background 0.2s;
}

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

.aps-gantt-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}

/* Gantt bars with enhanced styling */
.aps-gantt-bar {
    height: 28px;
    line-height: 28px;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    position: relative;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 0.3px;
}

.aps-gantt-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 6px 6px 0 0;
    pointer-events: none;
}

.aps-gantt-bar:hover {
    opacity: 0.9;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}

.aps-gantt-bar.status-0 { background: linear-gradient(135deg, #7c5e2d, #c49a3a); }
.aps-gantt-bar.status-1 { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.aps-gantt-bar.status-2 { background: linear-gradient(135deg, #15803d, #22c55e); }
.aps-gantt-bar.status-3 { background: linear-gradient(135deg, #4b4b4b, #888888); }

/* ==================== Progress Bars with Shimmer ==================== */
.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    min-width: 80px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) inset;
}

.progress-bar .progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #60a5fa, #4ade80);
    position: relative;
    box-shadow: 0 0 8px rgba(77, 184, 255, 0.3);
}

/* Shimmer effect on progress fill */
.progress-bar .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: shimmer 2.5s ease-in-out infinite;
}

.progress-bar .progress-fill.low {
    background: linear-gradient(90deg, #d4a843, #ffb43c);
    box-shadow: 0 0 8px rgba(212, 168, 67, 0.3);
}

.progress-bar .progress-fill.low::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.progress-bar .progress-fill.critical {
    background: linear-gradient(90deg, #ff4d4d, #d4a843);
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.3);
    animation: critical-pulse 2s ease-in-out infinite;
}

.progress-bar .progress-fill.critical::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes critical-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ==================== Priority Tags ==================== */
.priority-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.priority-tag:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.priority-1 {
    background: rgba(255, 77, 77, 0.12);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.25);
}

.priority-2 {
    background: rgba(255, 180, 60, 0.12);
    color: #ffb43c;
    border: 1px solid rgba(255, 180, 60, 0.25);
}

.priority-3 {
    background: rgba(77, 184, 255, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(77, 184, 255, 0.25);
}

.priority-4 {
    background: rgba(140, 160, 190, 0.12);
    color: #8ca0be;
    border: 1px solid rgba(140, 160, 190, 0.2);
}

/* ==================== Status Tags ==================== */
.status-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.status-tag:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-0 {
    background: rgba(212, 168, 67, 0.12);
    color: #d4a843;
    border: 1px solid rgba(212, 168, 67, 0.25);
}

.status-1 {
    background: rgba(42, 90, 156, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(42, 90, 156, 0.25);
}

.status-2 {
    background: rgba(42, 124, 74, 0.12);
    color: #4ade80;
    border: 1px solid rgba(42, 124, 74, 0.25);
}

.status-3 {
    background: rgba(90, 90, 90, 0.12);
    color: #999999;
    border: 1px solid rgba(90, 90, 90, 0.2);
}

.status-4 {
    background: rgba(156, 42, 42, 0.12);
    color: #ff4d4d;
    border: 1px solid rgba(156, 42, 42, 0.25);
}

/* ==================== Inventory Alert ==================== */
.stock-warning {
    color: var(--danger);
    font-weight: 700;
    animation: stock-blink 1.5s ease-in-out infinite;
}

@keyframes stock-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stock-normal {
    color: var(--success);
    font-weight: 600;
}

/* ==================== Modal / Dialog ==================== */
.aps-modal .layui-layer-content {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 12px;
}

.aps-modal .layui-layer-title {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.aps-modal .layui-layer-btn .layui-layer-btn0 {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.2);
    transition: all 0.25s ease;
}

.aps-modal .layui-layer-btn .layui-layer-btn0:hover {
    box-shadow: 0 5px 18px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

/* ==================== Chart Container ==================== */
.chart-container {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 18px;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chart-container:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ==================== Typography Enhancements ==================== */
.aps-heading {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Gradient text for important headings */
.aps-heading-gradient {
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.aps-text-muted {
    color: var(--text-muted);
    font-weight: 400;
}

.aps-text-accent {
    color: var(--accent);
    font-weight: 600;
}

.aps-text-success {
    color: var(--success);
    font-weight: 600;
}

.aps-text-warning {
    color: var(--warning);
    font-weight: 600;
}

.aps-text-danger {
    color: var(--danger);
    font-weight: 600;
}

/* ==================== Loading / Skeleton States ==================== */
.aps-skeleton {
    background: linear-gradient(90deg,
        var(--bg-secondary) 25%,
        var(--bg-tertiary) 50%,
        var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.aps-skeleton-line {
    height: 14px;
    margin-bottom: 10px;
}

.aps-skeleton-line:last-child {
    margin-bottom: 0;
    width: 70%;
}

.aps-skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 14px;
}

.aps-skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.aps-skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
}

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

/* Loading spinner */
.aps-loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(77, 184, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Loading overlay for cards */
.aps-card-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

/* ==================== Empty State ==================== */
.aps-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    animation: fadeIn 0.5s ease-out;
}

.aps-empty .empty-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
    animation: empty-float 3s ease-in-out infinite;
}

@keyframes empty-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.aps-empty .empty-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.aps-empty .empty-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== Badge / Notification Dot ==================== */
.aps-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--danger);
    box-shadow: 0 0 6px rgba(255, 77, 77, 0.4);
}

.aps-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 6px rgba(255, 77, 77, 0.5);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ==================== Tooltip ==================== */
.aps-tooltip {
    position: relative;
    cursor: help;
}

.aps-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(30, 41, 59, 0.95);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.aps-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* ==================== Divider ==================== */
.aps-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 184, 255, 0.15), transparent);
    margin: 20px 0;
}

/* ==================== Tag / Label ==================== */
.aps-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.aps-tag-info {
    background: rgba(77, 184, 255, 0.12);
    color: var(--accent);
    border: 1px solid rgba(77, 184, 255, 0.2);
}

.aps-tag-success {
    background: rgba(77, 255, 136, 0.1);
    color: var(--success);
    border: 1px solid rgba(77, 255, 136, 0.2);
}

.aps-tag-warning {
    background: rgba(255, 180, 60, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 180, 60, 0.2);
}

.aps-tag-danger {
    background: rgba(255, 77, 77, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 77, 77, 0.2);
}

/* ==================== Breadcrumb ==================== */
.aps-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.aps-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.aps-breadcrumb a:hover {
    color: var(--accent);
}

.aps-breadcrumb .separator {
    margin: 0 6px;
    opacity: 0.4;
}

.aps-breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
    border-radius: 4px;
    transition: background 0.25s;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.55);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* ==================== Page Transition Animation ==================== */
.aps-body > .layui-row,
.aps-body > .aps-card {
    animation: fadeInUp 0.45s ease-out both;
}

/* ==================== Utility Classes ==================== */
.aps-fade-in {
    animation: fadeIn 0.4s ease-out both;
}

.aps-slide-up {
    animation: fadeInUp 0.4s ease-out both;
}

.aps-slide-left {
    animation: slideInLeft 0.4s ease-out both;
}

.aps-slide-right {
    animation: slideInRight 0.4s ease-out both;
}

.aps-glow {
    box-shadow: var(--shadow-glow);
}

.aps-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* ==================== Sidebar Enhancements ==================== */
/* ==================== Sidebar Brand - Premium Light ==================== */
.sidebar-brand {
    padding: 24px 20px 18px;
    text-align: center;
    border-bottom: 1px solid rgba(200, 210, 225, 0.4);
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(248,250,252,0.4));
}
.sidebar-brand .brand-icon {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #60a5fa);
    background-size: 200% 200%;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff;
    margin-bottom: 12px;
    box-shadow: 0 6px 25px rgba(59,130,246,0.35), 0 0 0 4px rgba(59,130,246,0.08);
    animation: brand-pulse 3s ease-in-out infinite, brand-gradient 4s ease infinite;
    position: relative;
}
@keyframes brand-pulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(59,130,246,0.3); }
    50% { box-shadow: 0 6px 35px rgba(59,130,246,0.5); }
}
@keyframes brand-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.sidebar-brand .brand-text {
    font-size: 16px; font-weight: 800; color: #1e293b; letter-spacing: 1.5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.sidebar-brand .brand-sub {
    font-size: 10px; color: #64748b; margin-top: 5px; letter-spacing: 1px;
    font-weight: 600;
}

/* ==================== Sidebar User Card - Premium Light ==================== */
.sidebar-user-card {
    margin: 16px 14px 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(139,92,246,0.03));
    border: 1px solid rgba(200, 210, 225, 0.4);
    border-radius: 14px;
    display: flex; align-items: center; gap: 14px;
    position: relative; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.sidebar-user-card::before {
    content: '';
    position: absolute; top: -40%; right: -25%;
    width: 90px; height: 90px;
    background: radial-gradient(circle, rgba(59,130,246,0.06), transparent 70%);
    pointer-events: none;
}
.sidebar-user-card .user-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59,130,246,0.2);
}
.sidebar-user-card .user-info { flex: 1; }
.sidebar-user-card .user-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.sidebar-user-card .user-role { font-size: 11px; color: #64748b; margin-top: 3px; letter-spacing: 0.3px; font-weight: 500; }
.sidebar-user-card .user-status {
    width: 10px; height: 10px; border-radius: 50%; background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.4);
    animation: status-blink 2s ease-in-out infinite;
    flex-shrink: 0;
    position: relative;
}
.sidebar-user-card .user-status::after {
    content: '';
    position: absolute; inset: -3px;
    border-radius: 50%;
    border: 1.5px solid rgba(34,197,94,0.2);
    animation: status-ring 2s ease-in-out infinite;
}
@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes status-ring {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0; }
}

/* ==================== Sidebar Nav Header ==================== */
.sidebar-nav-header {
    padding: 14px 24px 8px;
    font-size: 10px; color: #64748b;
    text-transform: uppercase; letter-spacing: 2px;
    font-weight: 700;
}

/* ==================== Sidebar Footer ==================== */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    border-top: 1px solid rgba(200, 210, 225, 0.3);
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(248,250,252,0.8));
    backdrop-filter: blur(10px);
}
.sidebar-footer .footer-version {
    font-size: 11px; color: #475569; font-weight: 600;
    margin-bottom: 4px;
}
.sidebar-footer .footer-copy {
    font-size: 9px; color: #94a3b8;
}
.sidebar-footer .system-health {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 10px; padding: 6px 10px;
    background: rgba(34,197,94,0.08); border-radius: 20px;
    font-size: 10px; color: #16a34a; font-weight: 600;
    border: 1px solid rgba(34,197,94,0.15);
}
.sidebar-footer .system-health .health-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
    animation: status-blink 2s ease-in-out infinite;
}

/* ==================== Sidebar Badge - Premium ==================== */
.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 10px; font-size: 10px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
    margin-left: auto;
}

/* ==================== Sidebar Mini Widget ==================== */
.sidebar-widget {
    margin: 0 14px 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(59,130,246,0.04), rgba(139,92,246,0.02));
    border: 1px solid rgba(200, 210, 225, 0.35);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.sidebar-widget .widget-title {
    font-size: 10px; color: #64748b; letter-spacing: 1.2px;
    text-transform: uppercase; font-weight: 700; margin-bottom: 10px;
}
.sidebar-widget .widget-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: #64748b; margin-bottom: 8px;
}
.sidebar-widget .widget-row:last-child { margin-bottom: 0; }
.sidebar-widget .widget-value { color: #1e293b; font-weight: 700; }
.sidebar-widget .widget-bar {
    height: 4px; background: rgba(200, 210, 225, 0.3); border-radius: 2px; margin-top: 10px; overflow: hidden;
}
.sidebar-widget .widget-bar-fill {
    height: 100%; border-radius: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 1s ease;
}

/* ==================== Batch Toolbar ==================== */
.batch-toolbar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid rgba(200,210,225,0.5);
    border-radius: 10px; margin-bottom: 12px;
}
.batch-toolbar .batch-label {
    font-size: 12px; color: #64748b; font-weight: 500;
    padding-right: 8px; border-right: 1px solid #e2e8f0;
}

/* ==================== Table Quick Stats ==================== */
.table-quick-stats {
    display: flex; gap: 12px; margin-bottom: 14px;
}
.table-quick-stats .qs-item {
    flex: 1; min-width: 120px;
    background: #fff; border: 1px solid rgba(200,210,225,0.5);
    border-radius: 10px; padding: 12px 16px;
    display: flex; align-items: center; gap: 10px;
    transition: all 0.3s ease;
}
.table-quick-stats .qs-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: rgba(59,130,246,0.2);
}
.table-quick-stats .qs-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.table-quick-stats .qs-item:nth-child(1) .qs-icon { background: rgba(59,130,246,0.1); color: #3b82f6; }
.table-quick-stats .qs-item:nth-child(2) .qs-icon { background: rgba(34,197,94,0.1); color: #22c55e; }
.table-quick-stats .qs-item:nth-child(3) .qs-icon { background: rgba(245,158,11,0.1); color: #f59e0b; }
.table-quick-stats .qs-item:nth-child(4) .qs-icon { background: rgba(239,68,68,0.1); color: #ef4444; }
.table-quick-stats .qs-value { font-size: 18px; font-weight: 700; color: #1e293b; }
.table-quick-stats .qs-label { font-size: 11px; color: #94a3b8; }

/* ==================== Chart Header Enhancements ==================== */
.chart-header-meta {
    display: flex; align-items: center; gap: 16px;
    margin-top: 6px;
}
.chart-header-meta .meta-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #64748b;
}
.chart-header-meta .meta-dot {
    width: 8px; height: 8px; border-radius: 50%;
}

/* ==================== Enhanced Table Header ==================== */
.aps-table-enhanced thead th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    font-weight: 600; font-size: 12px; color: #475569;
    padding: 14px 16px; border-bottom: 2px solid #cbd5e1;
    text-transform: uppercase; letter-spacing: 0.8px;
    white-space: nowrap;
}

/* ==================== Section Divider ==================== */
.section-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0 16px;
}
.section-divider .div-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,210,225,0.6), transparent);
}
.section-divider .div-text {
    font-size: 12px; color: #94a3b8; font-weight: 500;
    letter-spacing: 1px; text-transform: uppercase;
}

/* ==================== Responsive ==================== */
@media screen and (max-width: 768px) {
    .aps-sidebar {
        width: 0;
    }
    .aps-body {
        margin-left: 0;
    }
    .aps-stat-card {
        min-height: 110px;
        padding: 18px 14px;
    }
    .aps-stat-card .stat-value {
        font-size: 26px;
    }
    .aps-body {
        padding: 16px;
    }
}
