/* ===================================
   Modern Glassmorphism Dashboard
   Minimal, Clean, Professional
   =================================== */

/* CSS Variables */
:root {
    /* Hiday — Slate / Teal / Warm Grey */
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-bg-strong: rgba(255, 255, 255, 0.72);
    --glass-bg-hover: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(15, 23, 42, 0.06);
    --glass-shadow: rgba(15, 23, 42, 0.06);
    --primary-blue: #0EA5E9;
    --primary-cyan: #0891B2;
    --hiday-slate: #0F172A;
    --hiday-slate-mid: #1E293B;
    --hiday-slate-light: #334155;
    --hiday-teal: #0EA5E9;
    --hiday-teal-dark: #0284C7;
    --hiday-teal-muted: #06B6D4;
    --hiday-cyan: #22D3EE;
    --hiday-grey: #64748B;
    --hiday-grey-light: #94A3B8;
    --hiday-warm: #F1F5F9;
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --error-red: #EF4444;
    --hiday-teal-dark-rgb: 2, 132, 199;
    --text-primary: rgba(15, 23, 42, 0.9);
    --text-secondary: rgba(51, 65, 85, 0.7);
    --bg-primary: #F8FAFC;
    --bg-secondary: rgba(255, 255, 255, 0.5);
    --backdrop-blur: 40px;
    --backdrop-blur-strong: 60px;
    --border-radius: 20px;
    --border-radius-small: 12px;
    --box-shadow-glass:
        0 8px 32px 0 rgba(0, 0, 0, 0.06),
        0.5px 0.5px 1.5px 0px rgba(255, 255, 255, 0.80) inset,
        -0.5px -0.5px 1.5px 0px rgba(0, 0, 0, 0.05) inset;
    --box-shadow-glass-strong:
        0 12px 48px 0 rgba(0, 0, 0, 0.08),
        1px 1px 2px 0px rgba(255, 255, 255, 0.90) inset,
        -1px -1px 2px 0px rgba(0, 0, 0, 0.08) inset;
}

/* Dark Mode - Hiday Dark */
[data-theme="dark"] {
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-strong: rgba(255, 255, 255, 0.10);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(148, 163, 184, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --primary-blue: #38BDF8;
    --primary-cyan: #22D3EE;
    --hiday-teal: #38BDF8;
    --hiday-teal-dark: #0EA5E9;
    --hiday-teal-muted: #22D3EE;
    --hiday-cyan: #67E8F9;
    --hiday-grey: #94A3B8;
    --hiday-grey-light: #CBD5E1;
    --success-green: #34D399;
    --warning-orange: #FBBF24;
    --error-red: #F87171;
    --hiday-teal-dark-rgb: 14, 165, 233;
    --text-primary: rgba(248, 250, 252, 0.92);
    --text-secondary: rgba(148, 163, 184, 0.7);
    --bg-primary: #0B1120;
    --bg-secondary: rgba(15, 23, 42, 0.5);
    --box-shadow-glass:
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        0.5px 0.5px 1.5px 0px rgba(148, 163, 184, 0.06) inset,
        -0.5px -0.5px 1.5px 0px rgba(0, 0, 0, 0.15) inset;
    --box-shadow-glass-strong:
        0 12px 48px 0 rgba(0, 0, 0, 0.5),
        1px 1px 2px 0px rgba(148, 163, 184, 0.08) inset,
        -1px -1px 2px 0px rgba(0, 0, 0, 0.2) inset;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.47059;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Floating Icon Navigation Bubble */
.icon-nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    z-index: 1000;
    background: transparent;
    border-radius: 24px;
}

.icon-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur-strong)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--backdrop-blur-strong)) saturate(180%);
    z-index: -1;
    border-radius: inherit;
    border: none;
    box-shadow: var(--box-shadow-glass-strong);
    transition: all 0.3s ease;
}

/* Hiday Header Brand */
.top-bar-left {
    flex-shrink: 0;
}

.hiday-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hiday-logo-svg {
    flex-shrink: 0;
    border-radius: 8px;
}

.hiday-header-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hiday-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hiday-slate);
    letter-spacing: -0.03em;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] .hiday-name {
    color: rgba(248, 250, 252, 0.92);
}


.icon-nav-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.icon-nav-bottom {
    display: none;
}

.icon-nav-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    border: none;
    background: transparent;
}

.icon-nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border: 1px solid transparent;
}

.icon-nav-item:hover::before {
    background: var(--glass-bg-hover);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-color: var(--glass-border);
    box-shadow: var(--box-shadow-glass);
}

.icon-nav-item:hover {
    color: var(--hiday-teal-dark);
    transform: scale(1.08);
}

.icon-nav-item.active {
    color: var(--hiday-teal-dark);
}

.icon-nav-item.active::before {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    border-color: rgba(var(--hiday-teal-dark-rgb), 0.15);
    box-shadow: var(--box-shadow-glass-strong), 0 0 12px rgba(var(--hiday-teal-dark-rgb), 0.08);
}

.icon-nav-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}


/* User Avatar */
.user-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    background: var(--hiday-slate-mid);
    border: none;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
}

.user-avatar:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
}



/* User avatar gradient accent is applied via the main .user-avatar rule above */

/* Main Content */
.main-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 140px;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    padding: 1.125rem 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.top-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: blur(var(--backdrop-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--backdrop-blur)) saturate(150%);
    z-index: -1;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.page-title-container {
    flex: 1;
}

.page-title {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.dashboard-section {
    margin-bottom: 1.25rem;
}

.page {
    display: none;
    padding: 0 3rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.page.active {
    display: block;
}

/* Tile Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.tile-card {
    position: relative;
    background: transparent;
    border-radius: var(--border-radius);
    min-height: 110px;
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.tile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--backdrop-blur)) saturate(150%);
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: var(--box-shadow-glass);
}

.tile-card:hover {
    transform: scale(1.02);
    border-color: var(--glass-border);
}

.tile-card:hover::before {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur-strong)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--backdrop-blur-strong)) saturate(180%);
    box-shadow: var(--box-shadow-glass-strong);
}

.tile-card:active {
    transform: scale(0.985);
}

.tile-content {
    width: 100%;
}

.tile-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.tile-value {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

/* Content Cards */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.content-card {
    position: relative;
    background: transparent;
    border-radius: var(--border-radius);
    padding: 1.25rem 1.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.content-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--backdrop-blur)) saturate(150%);
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: var(--box-shadow-glass);
}

.content-card:hover {
    transform: translateY(-2px);
}

.content-card:hover::before {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur-strong)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--backdrop-blur-strong)) saturate(180%);
    box-shadow: var(--box-shadow-glass-strong);
}

.content-card h2 {
    font-size: 1.1875rem;
    font-weight: 590;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.022em;
}

/* List Items */
.list-items {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.875rem;
    border-radius: var(--border-radius-small);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 0.9375rem;
    font-weight: 510;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    letter-spacing: -0.019em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    letter-spacing: -0.016em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status Badges */
.status-badge {
    padding: 0.1875rem 0.5625rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 590;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.014em;
    border: none;
}

.status-badge.approved {
    background: rgba(50, 215, 75, 0.12);
    color: var(--success-green);
}

.status-badge.pending {
    background: rgba(255, 159, 10, 0.12);
    color: var(--warning-orange);
}

.status-badge.warning {
    background: rgba(255, 69, 58, 0.12);
    color: var(--error-red);
}

.status-badge.info {
    background: rgba(10, 132, 255, 0.12);
    color: var(--primary-blue);
}

.status-badge.production {
    background: rgba(50, 215, 75, 0.12);
    color: var(--success-green);
}

.status-badge.in-development {
    background: rgba(10, 132, 255, 0.12);
    color: var(--primary-blue);
}

.status-badge.error {
    background: rgba(255, 69, 58, 0.12);
    color: var(--error-red);
}

/* ===================================
   Executive Dashboard Styles
   =================================== */

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

@media (max-width: 1200px) {
    .metrics-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .metrics-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (max-width: 1200px) {
    .section-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Trend indicators */
.tile-trend {
    font-size: 0.75rem;
    font-weight: 590;
    margin-top: 0.25rem;
    letter-spacing: -0.014em;
}

.tile-trend.trend-up {
    color: var(--success-green);
}

.tile-trend.trend-down {
    color: var(--error-red);
}

.tile-trend.trend-neutral {
    color: var(--text-secondary);
}

/* Pipeline Stages */
.pipeline-stages {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1rem 0;
    flex: 1;
}

.pipeline-stage {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pipeline-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 90px;
    text-align: right;
}

.pipeline-bar-container {
    flex: 1;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

[data-theme="dark"] .pipeline-bar-container {
    background: rgba(255, 255, 255, 0.05);
}

.pipeline-bar {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 40px;
}

.pipeline-bar.pipeline-intake {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.65), rgba(245, 158, 11, 0.45));
}

.pipeline-bar.pipeline-dev {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.65), rgba(14, 165, 233, 0.45));
}

.pipeline-bar.pipeline-pilot {
    background: linear-gradient(90deg, rgba(100, 116, 139, 0.55), rgba(100, 116, 139, 0.35));
}

.pipeline-bar.pipeline-prod {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.65), rgba(16, 185, 129, 0.45));
}

.pipeline-count {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pipeline-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding-top: 0.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 0.5rem;
}

.pipeline-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-secondary);
}

/* Mini compliance bars */
.compliance-mini-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 0.5rem;
}

.mini-bar-item,
.literacy-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.mini-bar-label {
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 60px;
    font-size: 0.6875rem;
}

.mini-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

[data-theme="dark"] .mini-bar {
    background: rgba(255, 255, 255, 0.08);
}

.mini-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--hiday-teal);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Semantic bar colors — score-based */
.mini-bar-fill.bar-excellent {
    background: var(--success-green);
}

.mini-bar-fill.bar-good {
    background: var(--hiday-teal);
}

.mini-bar-fill.bar-moderate {
    background: var(--hiday-teal-muted);
}

.mini-bar-fill.mini-bar-warning,
.mini-bar-fill.bar-warning {
    background: var(--warning-orange);
}

.mini-bar-fill.bar-critical {
    background: var(--error-red);
}

.mini-bar-value {
    color: var(--text-secondary);
    font-weight: 590;
    min-width: 32px;
    text-align: right;
}

/* Risk Overview */
.risk-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.risk-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.risk-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.risk-indicator.risk-low {
    background: var(--success-green);
}

.risk-indicator.risk-medium {
    background: var(--warning-orange);
}

.risk-indicator.risk-high {
    background: var(--error-red);
}

.risk-label-text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 510;
}

.risk-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.risk-alerts h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

/* AI Literacy Panel */
.literacy-stats {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Hero: ring + meta side by side */
.literacy-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.literacy-ring-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.literacy-ring {
    width: 100%;
    height: 100%;
}

[data-theme="dark"] .literacy-ring circle:first-child {
    stroke: rgba(255, 255, 255, 0.08);
}

.literacy-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.literacy-ring-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.literacy-hero-meta {
    flex: 1;
}

.literacy-hero-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.019em;
}

.literacy-hero-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

.literacy-hero-meta .tile-trend {
    margin-top: 0.25rem;
}

/* Role breakdown bars */
.literacy-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.literacy-row {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.literacy-row span:first-child {
    min-width: 120px;
    font-weight: 510;
}

/* Footer stats row */
.literacy-footer-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.literacy-stat-item {
    text-align: center;
    flex: 1;
}

.literacy-stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.literacy-stat-label {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.125rem;
}

.literacy-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--glass-border);
}

/* Highlight callout */
.literacy-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.06);
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

[data-theme="dark"] .literacy-highlight {
    background: rgba(16, 185, 129, 0.1);
}

.literacy-highlight-icon {
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

.literacy-highlight-text strong {
    color: var(--text-primary);
    font-weight: 590;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

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

    .section-grid {
        grid-template-columns: 1fr;
    }
}


/* Workflow Steps */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.workflow-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-small);
    background: rgba(255, 255, 255, 0.03);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.use-case-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.data-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.data-tag {
    padding: 0.25rem 0.625rem;
    border-radius: 8px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

/* Filter Buttons */
.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

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


/* Chart Components */
.chart-card {
    position: relative;
    background: transparent;
    border-radius: var(--border-radius);
    padding: 1.25rem 1.375rem;
    border: none;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.chart-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--backdrop-blur)) saturate(150%);
    z-index: -1;
    border-radius: inherit;
    box-shadow: var(--box-shadow-glass);
}

.chart-card:hover {
    transform: translateY(-2px);
    border-color: var(--glass-border);
}

.chart-card:hover::before {
    backdrop-filter: blur(var(--backdrop-blur-strong)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--backdrop-blur-strong)) saturate(180%);
    box-shadow: var(--box-shadow-glass-strong);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 590;
    color: var(--text-primary);
    letter-spacing: -0.019em;
}

.chart-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.chart-container {
    flex: 1;
    position: relative;
    min-height: 180px;
}

/* Simple Bar Chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    gap: 0.5rem;
    padding: 1rem 0;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bar {
    width: 100%;
    background: linear-gradient(180deg, var(--hiday-teal-dark), rgba(14, 165, 233, 0.5));
    border-radius: 6px 6px 0 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 -2px 8px rgba(14, 165, 233, 0.2);
}

.bar:hover {
    background: linear-gradient(180deg, var(--hiday-teal), rgba(14, 165, 233, 0.5));
    box-shadow: 0 -2px 12px rgba(14, 165, 233, 0.3);
}

.bar-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: -0.014em;
}

/* Line Chart */
.line-chart {
    position: relative;
    height: 100%;
    padding: 1rem 0;
}

.line-chart svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    fill: none;
    stroke: var(--primary-blue);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-area {
    fill: url(#gradient);
    opacity: 0.2;
}

.chart-dot {
    fill: var(--primary-blue);
    stroke: var(--bg-primary);
    stroke-width: 2;
}

/* Ring Chart (Donut) */
.ring-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.ring-chart svg {
    width: 160px;
    height: 160px;
    transform: rotate(-90deg);
}

.ring-background {
    fill: none;
    stroke: rgba(15, 23, 42, 0.06);
    stroke-width: 12;
}

[data-theme="dark"] .ring-background {
    stroke: rgba(255, 255, 255, 0.08);
}

.ring-progress {
    fill: none;
    stroke: var(--hiday-teal-dark);
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ring-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.ring-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 600;
}


/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.completion-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--border-radius-small);
    background: rgba(255, 255, 255, 0.03);
    margin-top: 0.5rem;
}

.completion-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.completion-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success-green);
}

/* ===================================
   Governance Page Styles
   =================================== */

/* Role-Based Access Controls */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.role-card {
    text-align: center;
    padding: 1.5rem;
}

.role-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.role-icon.admin {
    background: var(--hiday-slate);
}

.role-icon.reviewer {
    background: var(--hiday-teal-dark);
}

.role-icon.viewer {
    background: var(--hiday-grey);
}

.role-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.role-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.role-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Policy Table */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.policy-table thead {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .policy-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.policy-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.policy-table td {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9375rem;
    color: var(--text-primary);
}

/* Enhanced Policy Table */
.policy-table.enhanced tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.policy-table.enhanced tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .policy-table.enhanced tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.policy-name-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-icon-small {
    font-size: 1.25rem;
    line-height: 1;
}

.policy-name-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.policy-name-link:hover {
    color: var(--primary-cyan);
}

.version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-blue);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-badge.status-draft {
    background: rgba(156, 163, 175, 0.1);
    color: #6b7280;
}

.status-badge.status-archived {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

[data-theme="dark"] .status-badge.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

[data-theme="dark"] .status-badge.status-draft {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

[data-theme="dark"] .status-badge.status-archived {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.coverage-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coverage-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

[data-theme="dark"] .coverage-bar {
    background: rgba(255, 255, 255, 0.1);
}

.coverage-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.coverage-fill.cov-excellent {
    background: linear-gradient(90deg, #059669, var(--success-green));
}

.coverage-fill.cov-good {
    background: linear-gradient(90deg, var(--hiday-teal-dark), var(--hiday-teal));
}

.coverage-fill.cov-moderate {
    background: linear-gradient(90deg, #0891B2, var(--hiday-teal-muted));
}

.coverage-fill.cov-warning {
    background: linear-gradient(90deg, #D97706, var(--warning-orange));
}

.coverage-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    padding: 0;
}

.btn-link:hover {
    color: var(--primary-cyan);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.625rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--hiday-slate-mid);
    border: 2px solid var(--bg-primary);
}

.timeline-content {
    padding-left: 0.5rem;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Governance Dashboard */
.governance-dashboard {
    margin-bottom: 2rem;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    z-index: -1;
}

[data-theme="dark"] .metric-card::before {
    background: rgba(30, 30, 30, 0.7);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-card:hover::before {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .metric-card:hover::before {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.metric-icon {
    font-size: 2rem;
    line-height: 1;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.metric-detail {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Category Breakdown */
.category-breakdown {
    margin-bottom: 2rem;
}

.category-breakdown h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.category-card {
    position: relative;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 2px 4px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    z-index: -1;
}

[data-theme="dark"] .category-card::before {
    background: rgba(30, 30, 30, 0.6);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.category-card:hover {
    transform: translateY(-2px);
}

.category-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===================================
   Catalog Page Styles
   =================================== */

/* Search and Filters */
.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-bar {
    position: relative;
    flex: 1;
}

.search-bar svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--glass-bg-strong);
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    font-size: 0.9375rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.filter-select:hover {
    background: var(--glass-bg-hover);
}

.filter-select:focus {
    outline: none;
    border-color: var(--hiday-teal-dark);
    box-shadow: 0 0 0 3px rgba(var(--hiday-teal-dark-rgb), 0.1);
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.use-case-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.card-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
}

.data-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.data-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.08);
    color: var(--hiday-teal-dark);
    font-size: 0.75rem;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .catalog-controls {
        flex-direction: row;
        align-items: center;
    }

    .search-bar {
        flex: 2;
    }

    .filter-group {
        flex: 3;
    }
}

/* ===================================
   Knowledge Page Styles (Training Programs)
   =================================== */

.training-programs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.training-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--box-shadow-glass);
}

.training-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.training-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.training-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.training-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.training-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.training-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-small);
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .training-stats {
    background: rgba(255, 255, 255, 0.03);
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    display: block;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.progress-bar-container {
    margin-bottom: 1rem;
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

[data-theme="dark"] .progress-bar {
    background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hiday-teal-dark), var(--hiday-teal));
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill.fill-excellent {
    background: linear-gradient(90deg, #059669, var(--success-green));
}

.progress-fill.fill-good {
    background: linear-gradient(90deg, var(--hiday-teal-dark), var(--hiday-teal));
}

.progress-fill.fill-moderate {
    background: linear-gradient(90deg, #0891B2, var(--hiday-teal-muted));
}

.progress-fill.fill-warning {
    background: linear-gradient(90deg, #D97706, var(--warning-orange));
}

.training-modules {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   Adoption Page Styles
   =================================== */

.card-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header-with-action h2 {
    margin-bottom: 0;
}

/* Step-by-Step Guide */
.steps-guide {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hiday-slate-mid);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-content {
    flex: 1;
    padding-top: 0.25rem;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Template Library */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.template-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--box-shadow-glass);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.template-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-glass-strong);
}

.template-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.template-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.template-category {
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.template-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.template-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.template-updated {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--hiday-teal-dark), var(--hiday-teal-muted));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 24px rgba(var(--hiday-teal-dark-rgb), 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--hiday-teal), var(--hiday-cyan));
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 32px rgba(var(--hiday-teal-dark-rgb), 0.35);
}

/* AI Tools Comparison Table */
.tools-table {
    margin-top: 1rem;
    overflow-x: auto;
}

.tools-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.tools-comparison-table thead {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .tools-comparison-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.tools-comparison-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.tools-comparison-table td {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.security-rating {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.security-rating.rating-Aplus {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success-green);
}

.security-rating.rating-A {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success-green);
}

.security-rating.rating-Aminus {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-blue);
}

.security-rating.rating-C {
    background: rgba(255, 149, 0, 0.1);
    color: var(--warning-orange);
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.faq-item {
    border-radius: var(--border-radius-small);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--glass-bg-hover);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1rem 1.5rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-category {
    padding: 0 1.5rem 1rem 1.5rem;
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 500;
}

/* Support Contacts */
.support-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 2rem;
}

.contact-content {
    flex: 1;
}

.contact-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-detail {
    font-size: 0.875rem;
    color: var(--primary-blue);
    font-weight: 500;
}

/* ===================================
   Use Case Intake Form
   =================================== */

.btn-submit-usecase {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--hiday-teal-dark), var(--hiday-teal-muted));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 24px rgba(var(--hiday-teal-dark-rgb), 0.2);
}

.btn-submit-usecase:hover {
    background: linear-gradient(135deg, var(--hiday-teal), var(--hiday-cyan));
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 32px rgba(var(--hiday-teal-dark-rgb), 0.35);
}

.btn-submit-usecase .btn-arrow,
.btn-primary .btn-arrow {
    transition: transform 0.3s ease;
    display: inline-flex;
}

.btn-submit-usecase:hover .btn-arrow,
.btn-primary:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: transparent;
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
}

.intake-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.014em;
}

.required {
    color: var(--error-red);
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--glass-bg-strong);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.375rem 0;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Intake Layout - Form + Sidebar */
.intake-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1000px) {
    .intake-layout {
        grid-template-columns: 1fr;
    }
}

.modal-content.modal-xlarge {
    max-width: 1100px;
}

/* Risk Assessment Sidebar */
.risk-assessment-sidebar {
    position: sticky;
    top: 0;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.02);
    padding: 1.25rem;
    border: 1px solid var(--glass-border);
}

[data-theme="dark"] .risk-assessment-sidebar {
    background: rgba(255, 255, 255, 0.03);
}

.risk-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.risk-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.risk-panel-empty svg {
    opacity: 0.3;
}

/* Risk Score Display */
.risk-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.risk-score-display {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.risk-score-display.risk-tier-low {
    background: rgba(50, 215, 75, 0.12);
}
.risk-score-display.risk-tier-medium {
    background: rgba(255, 159, 10, 0.12);
}
.risk-score-display.risk-tier-high {
    background: rgba(255, 69, 58, 0.12);
}
.risk-score-display.risk-tier-critical {
    background: rgba(175, 30, 30, 0.15);
}

.risk-score-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.risk-score-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.125rem;
}

.risk-tier-display {
    flex: 1;
}

.risk-tier-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    transition: all 0.3s ease;
}

.risk-tier-badge.risk-tier-low {
    background: rgba(50, 215, 75, 0.12);
    color: var(--success-green);
}
.risk-tier-badge.risk-tier-medium {
    background: rgba(255, 159, 10, 0.12);
    color: var(--warning-orange);
}
.risk-tier-badge.risk-tier-high {
    background: rgba(255, 69, 58, 0.12);
    color: var(--error-red);
}
.risk-tier-badge.risk-tier-critical {
    background: rgba(175, 30, 30, 0.15);
    color: #c0392b;
}

[data-theme="dark"] .risk-tier-badge.risk-tier-critical {
    color: #ff6b6b;
}

.risk-timeline {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.risk-timeline svg {
    flex-shrink: 0;
}

/* Risk Panel Sections */
.risk-panel-section {
    margin-bottom: 0.875rem;
}

.risk-panel-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.risk-factor-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--warning-orange);
    padding: 0.25rem 0;
}

.risk-factor-item svg {
    flex-shrink: 0;
}

/* Risk Tags */
.risk-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.risk-tag {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.risk-tag-regulation {
    background: rgba(14, 165, 233, 0.1);
    color: var(--hiday-teal-dark);
}

.risk-tag-policy {
    background: rgba(51, 65, 85, 0.08);
    color: var(--hiday-slate-light);
}

/* Review Stages */
.review-stages {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.review-stage-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.review-stage-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(10, 132, 255, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Risk Bar */
.risk-panel-bar-container {
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--glass-border);
}

.risk-panel-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 0.375rem;
}

[data-theme="dark"] .risk-panel-bar {
    background: rgba(255, 255, 255, 0.08);
}

.risk-panel-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.risk-panel-bar-fill.risk-tier-low {
    background: var(--success-green);
}
.risk-panel-bar-fill.risk-tier-medium {
    background: var(--warning-orange);
}
.risk-panel-bar-fill.risk-tier-high {
    background: var(--error-red);
}
.risk-panel-bar-fill.risk-tier-critical {
    background: linear-gradient(90deg, var(--error-red), #8b0000);
}

.risk-panel-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.625rem;
    color: var(--text-secondary);
    font-weight: 510;
}

/* Success Toast */
.success-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: var(--box-shadow-glass-strong);
    font-size: 0.9375rem;
    color: var(--text-primary);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.success-toast svg {
    color: var(--success-green);
    flex-shrink: 0;
}

.success-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===================================
   Compliance Page Styles
   =================================== */

.compliance-matrix-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.compliance-matrix {
    width: 100%;
    border-collapse: collapse;
}

.compliance-matrix thead {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .compliance-matrix thead {
    background: rgba(255, 255, 255, 0.03);
}

.compliance-matrix th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.compliance-matrix td {
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.compliance-matrix tbody tr {
    transition: background 0.2s ease;
}

.compliance-matrix tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .compliance-matrix tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.compliance-score-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.compliance-score-cell span {
    font-size: 0.8125rem;
    font-weight: 590;
    color: var(--text-secondary);
    min-width: 32px;
}

/* ===================================
   Modal for Policy History
   =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur-strong));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-glass-strong);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.version-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-small);
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .history-item {
    background: rgba(255, 255, 255, 0.03);
}

.history-version {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--hiday-slate-mid);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Ensure version badge text is always white for contrast and properly centered */
.history-version .version-badge,
.history-header .version-badge {
    color: white !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    line-height: 1;
    box-sizing: border-box !important;
}

.history-details {
    flex: 1;
}

.history-date-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.history-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.history-change {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.history-approver {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Enhanced Modal Styles */
.modal-content.modal-large {
    max-width: 900px;
}

/* Policy Details Modal */
.policy-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.detail-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detail-section p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-cyan);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

[data-theme="dark"] .role-badge {
    background: rgba(14, 165, 233, 0.2);
}

/* Enhanced Version History */
.history-item.current-version {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

[data-theme="dark"] .history-item.current-version {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.history-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid transparent;
}

[data-theme="dark"] .history-item {
    background: rgba(255, 255, 255, 0.03);
}

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

.history-header .history-version {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.history-header .history-version .version-badge {
    flex-shrink: 0;
    background: var(--hiday-slate) !important;
    color: white !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9375rem;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    line-height: 1 !important;
    min-height: 2rem;
    min-width: 3.5rem;
    box-sizing: border-box !important;
    white-space: nowrap;
}

.current-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    line-height: 1;
    box-sizing: border-box;
    white-space: nowrap;
    min-height: 2rem;
}

[data-theme="dark"] .current-badge {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.history-details-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Approval Workflow */
.approval-workflow-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.approval-workflow-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.approval-workflow {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .workflow-step {
    background: rgba(255, 255, 255, 0.03);
}

.workflow-step.completed {
    background: rgba(34, 197, 94, 0.05);
}

[data-theme="dark"] .workflow-step.completed {
    background: rgba(34, 197, 94, 0.1);
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.workflow-step.completed .step-number {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

[data-theme="dark"] .workflow-step.completed .step-number {
    color: #4ade80;
}

.step-content {
    flex: 1;
}

.step-role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-action {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.step-details {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.step-status-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

[data-theme="dark"] .step-status-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

/* ===================================
   Theme Toggle
   =================================== */

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ===================================
   Profile Dropdown
   =================================== */

.top-bar-actions {
    position: relative;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur-strong)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--backdrop-blur-strong)) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-glass-strong);
    z-index: 200;
    padding: 1rem;
    animation: dropdownFadeIn 0.2s ease;
}

.profile-dropdown.open {
    display: block;
}

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

.profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
}

.profile-avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    background: var(--hiday-slate-mid);
    flex-shrink: 0;
}

.profile-details {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-email {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

.profile-role {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--hiday-teal-dark);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.25rem 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.profile-menu-item:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
}

/* ===================================
   SSO Login Modal
   =================================== */

.sso-overlay {
    background: rgba(15, 23, 42, 0.6);
}

.sso-modal {
    max-width: 420px;
    width: 100%;
    padding: 2.5rem;
    text-align: center;
}

.sso-logo {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
}

.sso-modal h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.sso-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.sso-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.sso-form .form-group {
    margin-bottom: 0;
}

.sso-form input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    text-align: center;
}

.sso-form input[type="email"]:focus {
    outline: none;
    border-color: var(--hiday-teal-dark);
    box-shadow: 0 0 0 3px rgba(var(--hiday-teal-dark-rgb), 0.1);
}

.sso-btn {
    width: 100%;
    justify-content: center;
}

.sso-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.sso-divider::before,
.sso-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.sso-providers {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.sso-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-small);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sso-provider:hover {
    background: var(--glass-bg-hover);
    border-color: var(--hiday-teal-dark);
    transform: translateY(-1px);
}

.sso-provider svg {
    flex-shrink: 0;
}

.sso-footer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.sso-footer svg {
    flex-shrink: 0;
}

.sso-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: ssoSpin 0.6s linear infinite;
}

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