/* ============================================
   SAINT LUKE'S NEUROSCIENCE RESEARCH DATABASE
   Complete Design System & Animations
   Phase 1-3 Implementation
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2e;
    --bg-card: #141432;
    --bg-card-hover: #1a1a40;
    --bg-elevated: #1e1e4a;
    --bg-input: #12122e;
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #10b981;
    --translational: #00d4ff;
    --clinical: #7c3aed;
    --computational: #10b981;
    --status-active: #10b981;
    --status-enrolling: #3b82f6;
    --status-analysis: #f59e0b;
    --status-completed: #6b7280;
    --status-pending: #f59e0b;
    --status-expiring: #ef4444;
    --deadline-green: #10b981;
    --deadline-yellow: #f59e0b;
    --deadline-red: #ef4444;
    --text-primary: #e8e8f0;
    --text-secondary: #9999b8;
    --text-muted: #666688;
    --text-accent: #00d4ff;
    --border-default: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(0, 212, 255, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --nav-height: 56px;
    --header-height: 60px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

#neuralCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.4;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-primary); display: flex; align-items: center;
    justify-content: center; z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-content { text-align: center; }
.brain-loader { width: 100px; height: 100px; margin: 0 auto 24px; }
.brain-svg { width: 100%; height: 100%; }
.brain-path { fill: none; stroke-dasharray: 300; stroke-dashoffset: 300; animation: drawBrain 2s ease forwards; }
.brain-detail { fill: none; stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawBrain 2s ease 0.5s forwards; }
.brain-dot { animation: dotPulse 1.5s ease-in-out infinite; }
@keyframes drawBrain { to { stroke-dashoffset: 0; } }
@keyframes dotPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

.loading-text {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem;
    font-weight: 600; color: var(--text-primary); margin-bottom: 8px; letter-spacing: 0.05em;
}
.loading-subtext { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; letter-spacing: 0.08em; }
.loading-bar { width: 200px; height: 3px; background: var(--bg-elevated); border-radius: 3px; margin: 0 auto; overflow: hidden; }
.loading-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); border-radius: 3px; animation: loadingFill 1.5s ease forwards; }
@keyframes loadingFill { to { width: 100%; } }

/* ============================================
   LOGIN / AUTH SCREENS
   ============================================ */
.login-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: transparent; display: flex; align-items: center;
    justify-content: center; z-index: 5000; padding: 20px;
}
.login-card {
    background: rgba(15, 15, 46, 0.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-hover); border-radius: 24px; padding: 40px;
    width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(0,212,255,0.05);
    animation: loginSlideUp 0.5s ease; position: relative; overflow: hidden;
}
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
}
.login-card.wide-card { max-width: 560px; }
@keyframes loginSlideUp { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo.small-logo { margin-bottom: 24px; }
.login-brain-svg { width: 64px; height: 64px; margin-bottom: 16px; filter: drop-shadow(0 0 12px rgba(0,212,255,0.3)); }
.login-logo h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; letter-spacing: 0.02em; }
.login-logo p { font-size: 0.85rem; color: var(--text-secondary); letter-spacing: 0.04em; }

.password-field { position: relative; display: flex; align-items: center; }
.password-field input { padding-right: 44px; }
.toggle-pw {
    position: absolute; right: 10px; width: 32px; height: 32px; border: none;
    background: transparent; color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center; border-radius: 6px;
    transition: var(--transition-fast);
}
.toggle-pw:hover { color: var(--accent-primary); background: rgba(0,212,255,0.08); }

.btn-full { width: 100%; justify-content: center; padding: 12px 18px; font-size: 0.9rem; font-weight: 600; }

.login-links { display: flex; justify-content: center; gap: 24px; margin-top: 20px; }
.login-links a { font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; transition: var(--transition-fast); display: flex; align-items: center; gap: 6px; }
.login-links a:hover { color: var(--accent-primary); }

.password-rules { margin-top: 12px; padding: 14px; background: rgba(0,0,0,0.2); border-radius: 10px; border: 1px solid var(--border-default); }
.pw-rule { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-muted); padding: 4px 0; transition: var(--transition-fast); }
.pw-rule i { font-size: 0.5rem; transition: var(--transition-fast); }
.pw-rule.met { color: var(--status-active); }
.pw-rule.met i { color: var(--status-active); }
.pw-match-msg { margin-top: 8px; font-size: 0.78rem; font-weight: 500; }
.pw-match-msg.match { color: var(--status-active); }
.pw-match-msg.no-match { color: var(--status-expiring); }

/* ============================================
   TOP HEADER
   ============================================ */
.top-header {
    position: fixed; top: 0; left: 0; right: 0; height: var(--header-height);
    background: rgba(10,10,26,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-default); display: flex; align-items: center;
    justify-content: space-between; padding: 0 24px; z-index: 1000;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.logo-container { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 36px; height: 36px; color: var(--accent-primary); animation: logoPulse 3s ease-in-out infinite; }
@keyframes logoPulse { 0%,100% { filter: drop-shadow(0 0 4px rgba(0,212,255,0.3)); } 50% { filter: drop-shadow(0 0 12px rgba(0,212,255,0.6)); } }
.logo-brain { width: 100%; height: 100%; }
.logo-text h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; }
.logo-text span { font-size: 0.7rem; color: var(--text-secondary); font-weight: 400; letter-spacing: 0.04em; }

.header-center { flex: 1; max-width: 480px; margin: 0 24px; }
.search-container { position: relative; display: flex; align-items: center; background: var(--bg-input); border: 1px solid var(--border-default); border-radius: 10px; padding: 8px 14px; transition: var(--transition-normal); }
.search-container:focus-within { border-color: var(--accent-primary); box-shadow: 0 0 20px rgba(0,212,255,0.1); }
.search-container i { color: var(--text-secondary); margin-right: 10px; font-size: 0.85rem; }
.search-container input { flex: 1; background: none; border: none; color: var(--text-primary); font-size: 0.85rem; font-family: inherit; outline: none; }
.search-container input::placeholder { color: var(--text-secondary); }
.search-container kbd { background: var(--bg-elevated); color: var(--text-secondary); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-family: inherit; border: 1px solid var(--border-default); }

.header-right { display: flex; align-items: center; gap: 8px; }
.header-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border-default); background: transparent; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: var(--transition-normal); position: relative; }
.header-btn:hover { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border-hover); }

.notification-badge { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; background: #ef4444; color: white; font-size: 0.65rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: badgePop 0.3s ease; }
@keyframes badgePop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }

.user-menu { position: relative; }
.user-avatar { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: white; cursor: pointer; transition: var(--transition-normal); }
.user-avatar:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0,212,255,0.3); }

.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 240px; background: var(--bg-secondary); border: 1px solid var(--border-hover); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; display: none; animation: dropdownSlide 0.2s ease; z-index: 2000; }
.user-dropdown.active { display: block; }
@keyframes dropdownSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.user-dropdown-header { padding: 16px; border-bottom: 1px solid var(--border-default); }
.user-dropdown-header strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.user-dropdown-header span { font-size: 0.78rem; color: var(--text-secondary); }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; transition: var(--transition-fast); }
.user-dropdown a:hover { background: rgba(0,212,255,0.06); color: var(--text-primary); }
.user-dropdown a i { width: 16px; text-align: center; font-size: 0.85rem; }
.user-dropdown hr { border: none; height: 1px; background: var(--border-default); margin: 0; }

/* ============================================
   NAVIGATION DRAWER (Hamburger Flyout)
   ============================================ */
.nav-hamburger { font-size: 1.1rem; margin-right: 4px; }
.nav-drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
    z-index: 1100; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-drawer-overlay.active { opacity: 1; visibility: visible; }
.nav-drawer {
    position: fixed; top: 0; left: 0; width: 340px; height: 100vh;
    background: var(--bg-secondary); border-right: 1px solid var(--border-default);
    z-index: 1200; transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    box-shadow: 8px 0 40px rgba(0,0,0,0.4);
}
.nav-drawer.active { transform: translateX(0); }
.nav-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--border-default);
}
.nav-drawer-header h3 {
    font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600;
    color: var(--text-primary);
}
.nav-drawer-body { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav-group { padding: 4px 0; }
.nav-group-label {
    display: block; padding: 10px 20px 6px; font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
}
.nav-drawer-item {
    display: flex; align-items: flex-start; gap: 12px; width: 100%;
    padding: 12px 20px; border: none; background: transparent;
    color: var(--text-secondary); font-family: inherit; font-size: 0.88rem;
    font-weight: 500; cursor: pointer; transition: var(--transition-fast);
    text-align: left; position: relative; flex-wrap: wrap;
}
.nav-drawer-item i { width: 20px; text-align: center; font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }
.nav-drawer-item span:first-of-type { flex: 1; }
.nav-drawer-item:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.nav-drawer-item.active {
    background: rgba(0,212,255,0.08); color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}
.nav-drawer-item.active i { color: var(--accent-primary); }
.nav-drawer-sub {
    display: block; width: 100%; padding-left: 32px;
    font-size: 0.72rem; color: var(--text-muted); font-weight: 400;
    margin-top: 2px; line-height: 1.3;
}
.admin-nav-group { border-top: 1px solid var(--border-default); margin-top: 8px; padding-top: 8px; }

/* Expandable Nav Items */
.nav-expandable { position: relative; }
.nav-expand-icon { font-size: 0.65rem; color: var(--text-muted); margin-left: auto; transition: transform 0.25s ease; flex-shrink: 0; }
.nav-expandable.expanded > .nav-drawer-item .nav-expand-icon { transform: rotate(180deg); color: var(--accent-primary); }
.nav-sub-list {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    padding-left: 32px; background: rgba(0,0,0,0.15);
}
.nav-expandable.expanded > .nav-sub-list { max-height: 400px; }
.nav-sub-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 16px; border: none; background: transparent;
    color: var(--text-muted); font-family: inherit; font-size: 0.8rem;
    font-weight: 400; cursor: pointer; transition: var(--transition-fast);
    text-align: left; border-left: 2px solid transparent;
}
.nav-sub-item i { width: 16px; text-align: center; font-size: 0.75rem; }
.nav-sub-item:hover { color: var(--accent-primary); background: rgba(0,212,255,0.04); border-left-color: rgba(0,212,255,0.3); }

/* Subsection toggles */
.data-subsection, .edu-subsection, .student-subsection, .doc-subsection { animation: fadeInUp 0.3s ease; }

/* Project Wizard Steps */
.wizard-steps {
    display: flex; gap: 4px; margin-bottom: 24px; padding: 0 4px;
}
.wizard-step {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 4px; border-radius: 8px; background: var(--bg-input);
    border: 1px solid var(--border-default); transition: var(--transition-fast);
    opacity: 0.5;
}
.wizard-step.active {
    opacity: 1; border-color: var(--accent-primary);
    background: rgba(0,212,255,0.06); box-shadow: 0 0 12px rgba(0,212,255,0.1);
}
.wizard-step.completed {
    opacity: 0.8; border-color: #10b981; background: rgba(16,185,129,0.06);
}
.wizard-step.completed .wizard-num { background: #10b981; }
.wizard-num {
    width: 24px; height: 24px; border-radius: 50%; background: var(--text-muted);
    color: white; font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.wizard-step.active .wizard-num { background: var(--accent-primary); }
.wizard-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; text-align: center; }
.wizard-step.active .wizard-label { color: var(--accent-primary); }
.wizard-panel { max-height: 55vh; overflow-y: auto; padding-right: 4px; }

/* Budget table inputs */
#budgetTable input, #budgetTable select {
    padding: 6px 8px; background: var(--bg-input); border: 1px solid var(--border-default);
    border-radius: 6px; color: var(--text-primary); font-family: inherit; font-size: 0.78rem;
    width: 100%;
}
#budgetTable input[type="number"] { width: 80px; }
.budget-total { font-weight: 600; color: var(--accent-primary); white-space: nowrap; }

/* IRB badge on project cards */
.irb-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 4px; font-size: 0.68rem; font-weight: 600;
}
.irb-badge.pending { background: rgba(245,158,11,0.12); color: #f59e0b; }
.irb-badge.approved { background: rgba(16,185,129,0.12); color: #10b981; }
.irb-badge.na { background: rgba(100,100,120,0.12); color: var(--text-muted); }

@keyframes slideIn { from { width: 0; opacity: 0; } to { width: 24px; opacity: 1; } }

/* Dashboard Active Projects */
.dash-project-item {
    display: flex; align-items: center; gap: 14px; padding: 12px 0;
    border-bottom: 1px solid var(--border-default); transition: var(--transition-fast);
}
.dash-project-item:last-child { border-bottom: none; }
.dash-project-item:hover { padding-left: 6px; }
.dash-project-pillar {
    width: 4px; height: 36px; border-radius: 2px; flex-shrink: 0;
}
.dash-project-pillar.translational { background: var(--translational); }
.dash-project-pillar.clinical { background: var(--clinical); }
.dash-project-pillar.computational { background: var(--computational); }
.dash-project-info { flex: 1; min-width: 0; }
.dash-project-info h4 { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-project-info p { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }
.dash-project-status { padding: 3px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.dash-project-progress { width: 60px; flex-shrink: 0; }
.dash-project-progress .progress-bar { height: 4px; }

/* ============================================
   MAIN CONTENT & TAB SYSTEM
   ============================================ */
.main-content { margin-top: var(--header-height); padding: 24px; position: relative; z-index: 1; min-height: calc(100vh - var(--header-height)); }
.tab-content { display: none; animation: fadeInUp 0.4s ease; }
.tab-content.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.animate-in { opacity: 0; transform: translateY(20px); animation: animateIn 0.6s ease forwards; }
.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.3s; }
.animate-in.delay-4 { animation-delay: 0.4s; }
@keyframes animateIn { to { opacity: 1; transform: translateY(0); } }

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-hero { margin-bottom: 24px; }
.hero-welcome h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.hero-welcome p { color: var(--text-secondary); font-size: 0.95rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 20px; display: flex; align-items: center; gap: 16px; transition: var(--transition-normal); cursor: pointer; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent-primary), transparent); opacity: 0; transition: var(--transition-normal); }
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 1; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-icon.translational { background: rgba(0,212,255,0.12); color: var(--translational); }
.stat-icon.clinical { background: rgba(124,58,237,0.12); color: var(--clinical); }
.stat-icon.computational { background: rgba(16,185,129,0.12); color: var(--computational); }
.stat-icon.publications { background: rgba(245,158,11,0.12); color: #f59e0b; }
.stat-icon.irb { background: rgba(239,68,68,0.12); color: #ef4444; }
.stat-icon.pending { background: rgba(107,114,128,0.12); color: #6b7280; }
.stat-info { display: flex; flex-direction: column; }
.stat-number { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }
.stat-trend { margin-left: auto; font-size: 0.75rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.stat-trend.up { background: rgba(16,185,129,0.12); color: #10b981; }
.stat-trend.down { background: rgba(239,68,68,0.12); color: #ef4444; }
.stat-trend.neutral { background: rgba(107,114,128,0.12); color: #6b7280; }

.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dashboard-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 16px; overflow: hidden; transition: var(--transition-normal); }
.dashboard-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-default); }
.card-header h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-header h3 i { color: var(--accent-primary); font-size: 0.9rem; }
.card-action-btn { padding: 5px 12px; background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2); color: var(--accent-primary); border-radius: 6px; font-size: 0.75rem; font-weight: 500; cursor: pointer; font-family: inherit; transition: var(--transition-fast); }
.card-action-btn:hover { background: rgba(0,212,255,0.15); }
.card-body { padding: 16px 20px; }

.pillar-visual { display: flex; align-items: center; gap: 24px; padding: 16px 0; }
.pillar-ring { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.pillar-chart { width: 100%; height: 100%; transform: rotate(-90deg); }
.pillar-center-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.pillar-total { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; display: block; }
.pillar-center-text span:last-child { font-size: 0.7rem; color: var(--text-secondary); }
.pillar-legend { display: flex; flex-direction: column; gap: 12px; }
.legend-item { display: flex; align-items: center; gap: 10px; }
.legend-color { width: 12px; height: 12px; border-radius: 3px; }
.legend-color.translational { background: var(--translational); }
.legend-color.clinical { background: var(--clinical); }
.legend-color.computational { background: var(--computational); }
.legend-label { font-size: 0.85rem; color: var(--text-secondary); flex: 1; }
.legend-count { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; }

/* ============================================
   SECTION HEADERS & BUTTONS
   ============================================ */
.section-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; animation: fadeInUp 0.4s ease; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.section-title i { color: var(--accent-primary); }
.section-subtitle { font-size: 0.88rem; color: var(--text-secondary); margin-top: 4px; }
.section-actions { display: flex; gap: 10px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-family: inherit; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: var(--transition-normal); border: 1px solid transparent; white-space: nowrap; position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--accent-primary), #0099cc); color: white; border: none; box-shadow: 0 4px 15px rgba(0,212,255,0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 25px rgba(0,212,255,0.35); }
.btn-outline { background: transparent; border: 1px solid var(--border-hover); color: var(--text-secondary); }
.btn-outline:hover { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--accent-primary); }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.btn-danger { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-success { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }
.btn-success:hover { background: rgba(16,185,129,0.2); }

.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.2); transform: scale(0); animation: rippleAnim 0.6s linear; pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ============================================
   FILTER BAR & CHIPS
   ============================================ */
.filter-bar { display: flex; align-items: center; gap: 24px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; margin-bottom: 20px; flex-wrap: wrap; animation: fadeInUp 0.4s ease 0.1s both; }
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.filter-chips { display: flex; gap: 6px; }
.chip { padding: 5px 14px; border: 1px solid var(--border-default); border-radius: 20px; background: transparent; color: var(--text-secondary); font-family: inherit; font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: var(--transition-fast); white-space: nowrap; }
.chip:hover { border-color: var(--border-hover); color: var(--text-primary); }
.chip.active { background: rgba(0,212,255,0.1); border-color: var(--accent-primary); color: var(--accent-primary); }
.chip.translational.active, .chip.translational:hover { background: rgba(0,212,255,0.1); border-color: var(--translational); color: var(--translational); }
.chip.clinical.active, .chip.clinical:hover { background: rgba(124,58,237,0.1); border-color: var(--clinical); color: var(--clinical); }
.chip.computational.active, .chip.computational:hover { background: rgba(16,185,129,0.1); border-color: var(--computational); color: var(--computational); }

.view-toggle { display: flex; gap: 4px; margin-left: auto; border: 1px solid var(--border-default); border-radius: 8px; padding: 2px; }
.view-btn { width: 32px; height: 32px; border: none; background: transparent; color: var(--text-secondary); border-radius: 6px; cursor: pointer; transition: var(--transition-fast); display: flex; align-items: center; justify-content: center; }
.view-btn.active, .view-btn:hover { background: var(--bg-elevated); color: var(--accent-primary); }

/* ============================================
   PIPELINE VIEW (Point 12)
   ============================================ */
.pipeline-view { margin-bottom: 24px; animation: fadeInUp 0.4s ease; }
.pipeline-container { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: thin; }
.pipeline-stage { min-width: 220px; max-width: 260px; flex: 1; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; overflow: hidden; transition: var(--transition-normal); }
.pipeline-stage:hover { border-color: var(--border-hover); }
.pipeline-stage-header { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--bg-elevated); border-bottom: 1px solid var(--border-default); }
.pipeline-stage-header i { color: var(--accent-primary); font-size: 0.85rem; }
.pipeline-stage-header h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 600; flex: 1; white-space: nowrap; }
.pipeline-count { background: rgba(0,212,255,0.12); color: var(--accent-primary); padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 700; }
.pipeline-cards { padding: 12px; min-height: 80px; display: flex; flex-direction: column; gap: 8px; }
.pipeline-card { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: 10px; padding: 12px; cursor: grab; transition: var(--transition-fast); border-left: 3px solid var(--accent-primary); }
.pipeline-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--border-hover); }
.pipeline-card.translational { border-left-color: var(--translational); }
.pipeline-card.clinical { border-left-color: var(--clinical); }
.pipeline-card.computational { border-left-color: var(--computational); }
.pipeline-card h5 { font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.pipeline-card .pipeline-card-pi { font-size: 0.72rem; color: var(--text-secondary); }

/* ============================================
   PROJECTS GRID
   ============================================ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.project-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 20px; transition: var(--transition-normal); cursor: pointer; position: relative; overflow: hidden; animation: fadeInUp 0.4s ease both; }
.project-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; transition: var(--transition-normal); }
.project-card[data-pillar="translational"]::before { background: var(--translational); }
.project-card[data-pillar="clinical"]::before { background: var(--clinical); }
.project-card[data-pillar="computational"]::before { background: var(--computational); }
.project-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-lg); }
.project-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.project-pillar { padding: 3px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.project-pillar.translational { background: rgba(0,212,255,0.12); color: var(--translational); }
.project-pillar.clinical { background: rgba(124,58,237,0.12); color: var(--clinical); }
.project-pillar.computational { background: rgba(16,185,129,0.12); color: var(--computational); }
.project-status { padding: 3px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; }
.project-status.active { background: rgba(16,185,129,0.12); color: var(--status-active); }
.project-status.enrolling { background: rgba(59,130,246,0.12); color: var(--status-enrolling); }
.project-status.analysis { background: rgba(245,158,11,0.12); color: var(--status-analysis); }
.project-status.completed { background: rgba(107,114,128,0.12); color: var(--status-completed); }
.project-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.project-pi { font-size: 0.82rem; color: var(--accent-primary); margin-bottom: 8px; }
.project-pi i { margin-right: 4px; font-size: 0.75rem; }
.project-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { padding: 2px 10px; background: var(--bg-elevated); border-radius: 4px; font-size: 0.7rem; color: var(--text-secondary); border: 1px solid var(--border-default); }
.project-meta { display: flex; gap: 16px; font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 14px; }
.project-meta i { margin-right: 4px; color: var(--text-muted); }
.project-progress { display: flex; align-items: center; gap: 10px; }
.progress-bar { flex: 1; height: 6px; background: var(--bg-elevated); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); transition: width 1s ease; position: relative; }
.progress-fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: shimmer 2s ease-in-out infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.project-progress span { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; }

/* ============================================
   SUB TABS
   ============================================ */
.sub-tabs { display: flex; gap: 4px; margin-bottom: 20px; padding: 4px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-default); width: fit-content; animation: fadeInUp 0.4s ease 0.1s both; flex-wrap: wrap; }
.sub-tab { padding: 8px 18px; border: none; background: transparent; color: var(--text-secondary); font-family: inherit; font-size: 0.82rem; font-weight: 500; cursor: pointer; border-radius: 8px; transition: var(--transition-fast); display: flex; align-items: center; gap: 6px; }
.sub-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.sub-tab.active { background: var(--bg-elevated); color: var(--accent-primary); }
.sub-tab-count { background: rgba(0,212,255,0.12); color: var(--accent-primary); padding: 1px 7px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }

/* ============================================
   PEOPLE
   ============================================ */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; animation: fadeInUp 0.4s ease 0.2s both; }
.person-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 20px; display: flex; gap: 16px; transition: var(--transition-normal); cursor: pointer; position: relative; }
.person-card:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.person-avatar { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: white; flex-shrink: 0; }
.person-info { flex: 1; min-width: 0; }
.person-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.person-title { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
.person-dept { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.person-dept i { margin-right: 4px; }
.person-expertise { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.expertise-tag { padding: 2px 8px; background: var(--bg-elevated); border-radius: 4px; font-size: 0.68rem; color: var(--text-secondary); border: 1px solid var(--border-default); }
.person-stats { display: flex; gap: 14px; font-size: 0.75rem; color: var(--text-secondary); }
.person-stats i { margin-right: 4px; color: var(--accent-primary); }
.person-actions { display: flex; flex-direction: column; gap: 6px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-default); background: transparent; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: var(--transition-fast); }
.icon-btn:hover { background: var(--bg-elevated); color: var(--accent-primary); border-color: var(--accent-primary); }

/* ============================================
   GRANTS & FUNDING
   ============================================ */
.funding-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; animation: fadeInUp 0.4s ease 0.15s both; }
.funding-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 24px; text-align: center; transition: var(--transition-normal); }
.funding-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.funding-icon { font-size: 1.8rem; color: var(--status-active); margin-bottom: 8px; }
.funding-icon.pending-icon { color: var(--status-pending); }
.funding-icon.opportunity-icon { color: var(--accent-primary); }
.funding-amount { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 4px; }
.funding-label { font-size: 0.82rem; color: var(--text-secondary); }

/* ============================================
   DEADLINES (Point 9)
   ============================================ */
.deadlines-list { display: flex; flex-direction: column; gap: 12px; animation: fadeInUp 0.4s ease 0.2s both; }
.deadline-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 20px; display: flex; align-items: center; gap: 20px; transition: var(--transition-normal); cursor: pointer; position: relative; overflow: hidden; }
.deadline-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.deadline-card:hover { transform: translateX(4px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.deadline-card.status-green::before { background: var(--deadline-green); }
.deadline-card.status-yellow::before { background: var(--deadline-yellow); }
.deadline-card.status-red::before { background: var(--deadline-red); }
.deadline-card.status-yellow { border-color: rgba(245,158,11,0.2); }
.deadline-card.status-red { border-color: rgba(239,68,68,0.2); animation: redPulse 3s ease-in-out infinite; }
@keyframes redPulse { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 20px rgba(239,68,68,0.1); } }

.deadline-card-date { display: flex; flex-direction: column; align-items: center; padding: 10px 14px; background: var(--bg-elevated); border-radius: 12px; min-width: 64px; }
.deadline-card-date .dl-month { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--accent-primary); }
.deadline-card-date .dl-day { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; }
.deadline-card-info { flex: 1; }
.deadline-card-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.deadline-card-info p { font-size: 0.8rem; color: var(--text-secondary); }
.deadline-status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.deadline-status-badge.green { background: rgba(16,185,129,0.12); color: var(--deadline-green); }
.deadline-status-badge.yellow { background: rgba(245,158,11,0.12); color: var(--deadline-yellow); }
.deadline-status-badge.red { background: rgba(239,68,68,0.12); color: var(--deadline-red); }

.deadline-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-default); transition: var(--transition-normal); }
.deadline-item:last-child { border-bottom: none; }
.deadline-item:hover { padding-left: 8px; }
.deadline-date { display: flex; flex-direction: column; align-items: center; background: var(--bg-elevated); padding: 8px 12px; border-radius: 10px; min-width: 52px; }
.deadline-month { font-size: 0.65rem; font-weight: 700; color: var(--accent-primary); text-transform: uppercase; }
.deadline-day { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; }
.deadline-info { flex: 1; }
.deadline-info h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.deadline-info p { font-size: 0.75rem; color: var(--text-secondary); }
.deadline-type { padding: 3px 10px; border-radius: 6px; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.deadline-type.seminar { background: rgba(124,58,237,0.12); color: #a78bfa; }
.deadline-type.irb { background: rgba(239,68,68,0.12); color: #ef4444; }
.deadline-type.grant { background: rgba(16,185,129,0.12); color: #10b981; }
.deadline-type.conference { background: rgba(59,130,246,0.12); color: #3b82f6; }

/* ============================================
   DATA TABLES
   ============================================ */
.table-container { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; overflow: hidden; animation: fadeInUp 0.4s ease 0.2s both; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background: var(--bg-elevated); }
.data-table th { padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border-default); }
.data-table td { padding: 14px 16px; font-size: 0.84rem; border-bottom: 1px solid var(--border-default); transition: var(--transition-fast); }
.data-table tbody tr { transition: var(--transition-fast); }
.data-table tbody tr:hover { background: rgba(0,212,255,0.03); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table code { background: var(--bg-elevated); padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; color: var(--accent-primary); }
.data-table select { background: var(--bg-input); border: 1px solid var(--border-default); border-radius: 6px; color: var(--text-primary); padding: 6px 10px; font-family: inherit; font-size: 0.82rem; outline: none; transition: var(--transition-fast); }
.data-table select:focus { border-color: var(--accent-primary); }

.agency-badge { padding: 3px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.agency-badge.nih { background: rgba(59,130,246,0.12); color: #3b82f6; }
.agency-badge.dod { background: rgba(16,185,129,0.12); color: #10b981; }
.agency-badge.nsf { background: rgba(124,58,237,0.12); color: #a78bfa; }
.agency-badge.aha { background: rgba(239,68,68,0.12); color: #ef4444; }
.agency-badge.industry { background: rgba(245,158,11,0.12); color: #f59e0b; }

.status-pill { padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.status-pill.active { background: rgba(16,185,129,0.12); color: var(--status-active); }
.status-pill.pending { background: rgba(245,158,11,0.12); color: var(--status-pending); }
.status-pill.expiring { background: rgba(239,68,68,0.12); color: var(--status-expiring); animation: urgentPulse 2s ease-in-out infinite; }
@keyframes urgentPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

/* ============================================
   PUBLICATIONS (Point 5)
   ============================================ */
.pub-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; animation: fadeInUp 0.4s ease 0.15s both; }
.metric-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 20px; text-align: center; transition: var(--transition-normal); }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.metric-value { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; display: block; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; display: block; }
.publications-list { display: flex; flex-direction: column; gap: 2px; animation: fadeInUp 0.4s ease 0.2s both; }
.pub-item { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 12px; padding: 18px 20px; display: flex; gap: 20px; transition: var(--transition-normal); }
.pub-item:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateX(4px); }

.pdf-upload-area { border: 2px dashed var(--border-hover); border-radius: 12px; padding: 24px; text-align: center; cursor: pointer; transition: var(--transition-normal); margin-top: 8px; }
.pdf-upload-area:hover { border-color: var(--accent-primary); background: rgba(0,212,255,0.03); }
.pdf-upload-area i { font-size: 2rem; color: var(--text-muted); margin-bottom: 8px; display: block; }
.pdf-upload-area p { font-size: 0.85rem; color: var(--text-secondary); }
.pdf-upload-area span { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   DATA & RESOURCES (Point 6)
   ============================================ */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; animation: fadeInUp 0.4s ease 0.2s both; }
.resource-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 24px; transition: var(--transition-normal); position: relative; overflow: hidden; }
.resource-card:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.resource-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(0,212,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--accent-primary); margin-bottom: 16px; }
.resource-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.resource-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; margin-bottom: 12px; }

/* ============================================
   RESEARCH FORUM (Point 6)
   ============================================ */
.forum-list { display: flex; flex-direction: column; gap: 12px; animation: fadeInUp 0.4s ease 0.2s both; }
.forum-item { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 20px; display: flex; gap: 16px; transition: var(--transition-normal); cursor: pointer; }
.forum-item:hover { border-color: var(--border-hover); transform: translateX(4px); box-shadow: var(--shadow-md); }
.forum-item-avatar { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.forum-item-avatar.stat { background: rgba(59,130,246,0.12); color: #3b82f6; }
.forum-item-avatar.crc { background: rgba(16,185,129,0.12); color: #10b981; }
.forum-item-avatar.info { background: rgba(124,58,237,0.12); color: #a78bfa; }
.forum-item-avatar.director { background: rgba(239,68,68,0.12); color: #ef4444; }
.forum-item-content { flex: 1; }
.forum-item-content h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; }
.forum-item-content p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; margin-bottom: 8px; }
.forum-item-meta { display: flex; gap: 14px; font-size: 0.75rem; color: var(--text-muted); }
.forum-item-meta i { margin-right: 4px; }
.forum-priority { padding: 3px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.forum-priority.high { background: rgba(239,68,68,0.12); color: #ef4444; }
.forum-priority.medium { background: rgba(245,158,11,0.12); color: #f59e0b; }
.forum-priority.low { background: rgba(59,130,246,0.12); color: #3b82f6; }

/* ============================================
   MEETINGS (Point 7)
   ============================================ */
.calendar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; animation: fadeInUp 0.4s ease 0.2s both; }
.calendar-day { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; overflow: hidden; transition: var(--transition-normal); }
.calendar-day:hover { border-color: var(--border-hover); }
.day-header { background: var(--bg-elevated); padding: 10px 14px; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); text-align: center; border-bottom: 1px solid var(--border-default); }
.calendar-event { padding: 12px 14px; border-bottom: 1px solid var(--border-default); transition: var(--transition-fast); border-left: 3px solid var(--bg-elevated); }
.calendar-event:last-child { border-bottom: none; }
.calendar-event:hover { background: rgba(0,212,255,0.04); }
.event-time { display: block; font-size: 0.7rem; font-weight: 600; color: var(--accent-primary); margin-bottom: 4px; }
.event-title { display: block; font-size: 0.8rem; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.event-location { display: block; font-size: 0.7rem; color: var(--text-muted); }
.event-location i { margin-right: 4px; }

.meetings-list { display: flex; flex-direction: column; gap: 12px; }
.meeting-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 20px; display: flex; gap: 20px; transition: var(--transition-normal); }
.meeting-card:hover { border-color: var(--border-hover); transform: translateX(4px); }
.meeting-time-block { display: flex; flex-direction: column; align-items: center; padding: 12px 14px; background: var(--bg-elevated); border-radius: 12px; min-width: 70px; }
.meeting-time-block .mt-day { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; }
.meeting-time-block .mt-month { font-size: 0.7rem; color: var(--accent-primary); font-weight: 600; text-transform: uppercase; }
.meeting-time-block .mt-time { font-size: 0.72rem; color: var(--text-secondary); margin-top: 4px; }
.meeting-info { flex: 1; }
.meeting-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.meeting-info p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 4px; }
.meeting-info p i { margin-right: 6px; color: var(--text-muted); }
.meeting-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: rgba(59,130,246,0.12); color: #3b82f6; border-radius: 6px; font-size: 0.78rem; font-weight: 500; text-decoration: none; transition: var(--transition-fast); margin-top: 6px; }
.meeting-link:hover { background: rgba(59,130,246,0.2); }

/* ============================================
   EDUCATION & TRAINING (Point 8)
   ============================================ */
.education-section { margin-bottom: 32px; animation: fadeInUp 0.4s ease 0.2s both; }
.subsection-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.subsection-title i { color: var(--accent-primary); }
.subsection-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; margin-top: -8px; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cert-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 20px; transition: var(--transition-normal); position: relative; overflow: hidden; }
.cert-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); opacity: 0; transition: var(--transition-normal); }
.cert-card:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.cert-card:hover::before { opacity: 1; }
.cert-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(0,212,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--accent-primary); margin-bottom: 14px; }
.cert-card h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; }
.cert-card p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; margin-bottom: 10px; }
.cert-status { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; padding: 4px 10px; background: var(--bg-elevated); border-radius: 6px; display: inline-block; }

.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.checklist-category { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 20px; }
.checklist-category h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 14px; color: var(--accent-primary); }
.checklist-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.82rem; color: var(--text-secondary); border-bottom: 1px solid var(--border-default); cursor: pointer; transition: var(--transition-fast); }
.checklist-item:last-child { border-bottom: none; }
.checklist-item:hover { color: var(--text-primary); }
.checklist-item .fa-check-circle { color: var(--status-active); }
.checklist-item .fa-circle { color: var(--text-muted); }
.checklist-item.checked { color: var(--status-active); text-decoration: line-through; opacity: 0.7; }

/* ============================================
   DOCUMENTS
   ============================================ */
.documents-grid { display: flex; flex-direction: column; gap: 24px; animation: fadeInUp 0.4s ease 0.2s both; }
.folder-section { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; overflow: hidden; }
.folder-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 600; padding: 16px 20px; background: var(--bg-elevated); border-bottom: 1px solid var(--border-default); display: flex; align-items: center; gap: 8px; }
.folder-title i { color: var(--accent-primary); }
.doc-list { padding: 8px 20px; }
.doc-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-default); transition: var(--transition-fast); }
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { padding-left: 8px; }
.doc-icon { font-size: 1.5rem; width: 30px; text-align: center; flex-shrink: 0; }
.doc-icon.pdf { color: #ef4444; }
.doc-icon.word { color: #3b82f6; }
.doc-icon.excel { color: #10b981; }
.doc-icon.ppt { color: #f59e0b; }
.doc-info { flex: 1; }
.doc-info h4 { font-size: 0.88rem; font-weight: 500; margin-bottom: 2px; }
.doc-info p { font-size: 0.78rem; color: var(--text-secondary); }
.doc-date { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

/* ============================================
   ADMIN PANEL (Point 10)
   ============================================ */
.admin-section { animation: fadeInUp 0.4s ease 0.2s both; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.role-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 20px; transition: var(--transition-normal); position: relative; overflow: hidden; }
.role-card:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.role-card.admin-role { border-color: rgba(0,212,255,0.2); }
.role-card.admin-role::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); }
.role-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.role-header i { font-size: 1.1rem; color: var(--accent-primary); }
.role-header h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; }
.role-card > p { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 12px; }
.role-card ul { list-style: none; padding: 0; }
.role-card ul li { font-size: 0.78rem; color: var(--text-secondary); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.role-card ul li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-primary); flex-shrink: 0; }

.access-request-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 14px; padding: 20px; display: flex; align-items: center; gap: 20px; margin-bottom: 12px; transition: var(--transition-normal); }
.access-request-card:hover { border-color: var(--border-hover); }
.request-avatar { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary)); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; color: white; flex-shrink: 0; }
.request-info { flex: 1; }
.request-info h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 2px; }
.request-info p { font-size: 0.8rem; color: var(--text-secondary); }
.request-actions { display: flex; gap: 8px; }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; animation: fadeIn 0.2s ease; }
.modal-overlay.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: 18px; width: 90%; max-width: 640px; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalSlideIn 0.3s ease; }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-default); }
.modal-header h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-default); background: transparent; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); }
.modal-close:hover { background: rgba(239,68,68,0.1); color: #ef4444; border-color: rgba(239,68,68,0.3); }
.modal-body { padding: 24px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border-default); border-radius: 10px; color: var(--text-primary); font-family: inherit; font-size: 0.85rem; outline: none; transition: var(--transition-normal); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent-primary); box-shadow: 0 0 15px rgba(0,212,255,0.1); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input[type="file"] { padding: 8px 14px; cursor: pointer; }
.form-group input[type="checkbox"] { width: auto; margin-right: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-section-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--accent-primary); margin: 20px 0 12px; padding-top: 16px; border-top: 1px solid var(--border-default); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border-default); }

.rating-group { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-default); }
.rating-group:last-child { border-bottom: none; }
.rating-group label { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0; }
.rating-group select { width: auto; min-width: 80px; padding: 6px 10px; font-size: 0.8rem; }

.eligibility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.eligibility-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-secondary); }
.eligibility-item input[type="checkbox"] { accent-color: var(--accent-primary); }

.conditional-fields { display: none; padding: 12px; background: rgba(0,0,0,0.15); border-radius: 10px; margin-top: 12px; border: 1px solid var(--border-default); }
.conditional-fields.visible { display: block; }

/* ============================================
   NOTIFICATION PANEL
   ============================================ */
.notification-panel { position: fixed; top: var(--header-height); right: 0; width: 380px; max-height: calc(100vh - var(--header-height)); background: var(--bg-secondary); border-left: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); z-index: 1500; display: none; flex-direction: column; box-shadow: var(--shadow-lg); animation: slideRight 0.3s ease; border-radius: 0 0 0 16px; }
.notification-panel.active { display: flex; }
@keyframes slideRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.notif-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-default); }
.notif-header h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; }
.notif-list { overflow-y: auto; flex: 1; }
.notif-item { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border-default); transition: var(--transition-fast); cursor: pointer; }
.notif-item:hover { background: rgba(0,212,255,0.04); }
.notif-item.unread { background: rgba(0,212,255,0.02); border-left: 3px solid var(--accent-primary); }
.notif-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.notif-icon.urgent { background: rgba(239,68,68,0.12); color: #ef4444; }
.notif-icon.success { background: rgba(16,185,129,0.12); color: #10b981; }
.notif-icon.info { background: rgba(59,130,246,0.12); color: #3b82f6; }
.notif-content p { font-size: 0.82rem; line-height: 1.4; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; display: block; }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--bg-secondary); border: 1px solid var(--border-hover); border-radius: 12px; box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease; min-width: 320px; max-width: 420px; }
.toast.hiding { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100px); } }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast.success .toast-icon { color: #10b981; }
.toast.error .toast-icon { color: #ef4444; }
.toast.info .toast-icon { color: #3b82f6; }
.toast.warning .toast-icon { color: #f59e0b; }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 2px; }
.toast-message { font-size: 0.78rem; color: var(--text-secondary); }
.toast-close { width: 24px; height: 24px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: var(--transition-fast); }
.toast-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* ============================================
   GLASSMORPHISM & EFFECTS
   ============================================ */
.project-card::after, .person-card::after, .resource-card::after, .cert-card::after, .role-card::after, .deadline-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,212,255,0.04), transparent 40%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.project-card:hover::after, .person-card:hover::after, .resource-card:hover::after, .cert-card:hover::after, .role-card:hover::after, .deadline-card:hover::after { opacity: 1; }

[data-tooltip] { position: relative; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); background: var(--bg-elevated); color: var(--text-primary); padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.2s ease; border: 1px solid var(--border-default); }
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state { text-align: center; padding: 32px 16px; color: var(--text-secondary); }
.empty-state i { font-size: 2rem; color: var(--text-muted); margin-bottom: 12px; display: block; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; color: var(--text-secondary); }
.empty-state span { font-size: 0.8rem; color: var(--text-muted); }

.empty-state-large { text-align: center; padding: 60px 24px; background: var(--bg-card); border: 1px dashed var(--border-hover); border-radius: 16px; grid-column: 1 / -1; animation: fadeInUp 0.4s ease 0.2s both; }
.empty-state-large i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; display: block; opacity: 0.3; }
.empty-state-large h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state-large p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; max-width: 400px; margin-left: auto; margin-right: auto; line-height: 1.5; }

.table-empty { padding: 0 !important; }
.table-empty .empty-state { padding: 48px 16px; }
.calendar-empty { padding: 24px 14px; text-align: center; }
.calendar-empty span { font-size: 0.78rem; color: var(--text-muted); opacity: 0.5; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .calendar-grid { grid-template-columns: repeat(3, 1fr); }
    .pipeline-container { overflow-x: auto; }
}
@media (max-width: 768px) {
    .main-content { padding: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .people-grid { grid-template-columns: 1fr; }
    .pub-metrics { grid-template-columns: repeat(2, 1fr); }
    .funding-summary { grid-template-columns: 1fr; }
    .calendar-grid { grid-template-columns: 1fr; }
    .header-center { display: none; }
    .filter-bar { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .roles-grid { grid-template-columns: 1fr; }
    .login-card { padding: 28px 24px; }
    .login-card.wide-card { max-width: 100%; }
    .nav-drawer { width: 100%; }
    .pipeline-stage { min-width: 180px; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .login-card { padding: 24px 20px; }
    .section-header { flex-direction: column; gap: 12px; }
    .section-actions { width: 100%; }
    .section-actions .btn { flex: 1; justify-content: center; }
}
