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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #0f172a;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    background: #ffffff;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.header-link:hover {
    color: #111827;
}

/* Main Layout */
.main-wrapper {
    display: flex;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 24px 0;
    position: fixed;
    top: 64px;
    bottom: 0;
    overflow-y: auto;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 72px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    padding: 0 20px 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.sidebar-item:hover {
    background: #f9fafb;
    color: #111827;
}

.sidebar-item.active {
    background: #f3f4f6;
    border-left-color: #6366f1;
    color: #111827;
}

.sidebar-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-item-icon svg {
    width: 20px;
    height: 20px;
    stroke: #64748b;
    stroke-width: 1.5;
    fill: none;
}

.sidebar-item:hover .sidebar-item-icon svg {
    stroke: #334155;
}

.sidebar-item.active .sidebar-item-icon svg {
    stroke: #6366f1;
}

.sidebar-item-text {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.sidebar.collapsed .sidebar-item-text {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sidebar-toggle-btn:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    color: #1e40af;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

.sidebar-toggle-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.sidebar.collapsed .sidebar-toggle-btn svg {
    transform: rotate(180deg);
}

.sidebar-toggle-btn span {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
    letter-spacing: 0.01em;
}

.sidebar.collapsed .sidebar-toggle-btn span {
    opacity: 0;
    width: 0;
}

.sidebar.collapsed .sidebar-toggle-btn {
    padding: 12px;
}

/* Main Content */
.content {
    flex: 1;
    margin-left: 240px;
    padding: 32px 48px;
    background: #f9fafb;
    min-height: calc(100vh - 64px);
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed ~ .content {
    margin-left: 72px;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.page-subtitle {
    color: #475569;
    font-size: 16px;
    max-width: 600px;
}

/* Page Sections */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* Blade Panel */
.blade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 500;
    cursor: pointer;
}

.blade-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Blade accent color variations */
.blade-panel[data-accent="purple"] { --blade-accent: #8b5cf6; --blade-accent-light: #a78bfa; }
.blade-panel[data-accent="violet"] { --blade-accent: #a78bfa; --blade-accent-light: #c4b5fd; }
.blade-panel[data-accent="cyan"] { --blade-accent: #06b6d4; --blade-accent-light: #22d3ee; }
.blade-panel[data-accent="emerald"] { --blade-accent: #10b981; --blade-accent-light: #34d399; }
.blade-panel[data-accent="amber"] { --blade-accent: #f59e0b; --blade-accent-light: #fbbf24; }
.blade-panel[data-accent="pink"] { --blade-accent: #ec4899; --blade-accent-light: #f472b6; }
.blade-panel[data-accent="orange"] { --blade-accent: #f97316; --blade-accent-light: #fb923c; }

.blade-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 700px;
    max-width: 92vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 600;
    display: flex;
    flex-direction: column;
}

.blade-panel.active {
    transform: translateX(0);
}

.blade-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    min-height: 80px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.blade-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blade-accent, #6366f1), var(--blade-accent-light, #818cf8));
}

.blade-back {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
    flex-shrink: 0;
}

.blade-back:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
    transform: translateX(-2px);
}

.blade-back svg {
    width: 20px;
    height: 20px;
}

.blade-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.blade-title-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blade-title-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
    fill: none;
}

.blade-title-text {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.blade-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    background: #f9fafb;
}

/* Blade Content Styling */
.blade-content p {
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.blade-content p strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    margin-top: 28px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.blade-content p:first-child strong {
    margin-top: 0;
}

.blade-content p strong:only-child {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px 16px;
    border-radius: 8px;
    border-bottom: none;
    margin-bottom: 16px;
}

.blade-content ul {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 16px 16px 36px;
    margin: 0 0 20px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.blade-content ul li {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
}

.blade-content ul li:last-child {
    margin-bottom: 0;
}

.blade-content ul li::marker {
    color: var(--blade-accent, #6366f1);
}

.blade-content ul li strong {
    color: #1e293b;
    font-weight: 600;
    display: inline;
    text-transform: none;
    letter-spacing: normal;
    border: none;
    padding: 0;
    margin: 0;
    background: none;
}

/* Guide Section */
.guide-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
}

.guide-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.guide-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #6366f1;
    margin-top: 24px;
    margin-bottom: 12px;
}

.guide-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-top: 16px;
    margin-bottom: 8px;
}

.guide-section p {
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.7;
}

.guide-section ul,
.guide-section ol {
    color: #1e293b;
    margin-left: 20px;
    margin-bottom: 12px;
}

.guide-section li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.guide-section a {
    color: #6366f1;
    text-decoration: none;
}

.guide-section a:hover {
    text-decoration: underline;
}

/* Guide Section Variants */
.guide-section--overview {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: none;
}

.guide-section--overview h2,
.guide-section--cta h2 {
    border: none;
    padding-bottom: 0;
}

.guide-section--cta {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-color: #bfdbfe;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.overview-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid transparent;
}

.overview-item:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.overview-item:active {
    transform: translateY(0);
}

.overview-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.overview-icon--purple { background: #ede9fe; }
.overview-icon--blue { background: #e0f2fe; }
.overview-icon--green { background: #dcfce7; }

.overview-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke-width: 1.5;
}

.overview-icon--purple svg { stroke: #7c3aed; }
.overview-icon--blue svg { stroke: #0284c7; }
.overview-icon--green svg { stroke: #16a34a; }

.overview-content {
    flex: 1;
}

.overview-content strong {
    color: #1e293b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.overview-content strong::after {
    content: '→';
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.2s, color 0.2s;
}

.overview-item:hover .overview-content strong::after {
    transform: translateX(3px);
    color: #6366f1;
}

.overview-content p {
    color: #64748b;
    font-size: 13px;
    margin: 4px 0 0 0;
}

/* Tier Comparison */
.tier-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.tier-card {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid;
}

.tier-card.analytics {
    background: #faf5ff;
    border-color: #e9d5ff;
}

.tier-card.datalake {
    background: #ecfeff;
    border-color: #a5f3fc;
}

.tier-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
    display: flex;
    align-items: center;
}

.tier-card h4 svg {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    fill: none;
    stroke-width: 1.5;
}

.tier-card.analytics h4 svg { stroke: #8b5cf6; }
.tier-card.datalake h4 svg { stroke: #06b6d4; }

.tier-card p {
    font-size: 13px;
    margin-bottom: 12px;
}

.tier-card ul {
    margin: 0;
    padding-left: 16px;
    font-size: 13px;
}

/* Info Box */
.info-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
}

.info-box h4 {
    margin: 0 0 12px 0;
    color: #334155;
    font-size: 14px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
    color: #475569;
}

.info-box li {
    margin-bottom: 8px;
}

.info-box li:last-child {
    margin-bottom: 0;
}

/* Note Box */
.note-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
}

.note-box p {
    color: #1e40af;
    margin: 0;
    font-size: 13px;
}

.note-box--green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.note-box--green p {
    color: #166534;
}

/* Retention Grid */
.retention-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.retention-card {
    border-radius: 8px;
    padding: 16px;
    border: 1px solid;
}

.retention-card--supported {
    background: #fefce8;
    border-color: #fef08a;
}

.retention-card--unsupported {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.retention-card strong {
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

.retention-card--supported strong { color: #854d0e; }
.retention-card--unsupported strong { color: #334155; }

.retention-card p {
    font-size: 13px;
    margin: 0;
}

.retention-card--supported p { color: #713f12; }
.retention-card--unsupported p { color: #475569; }

/* Retention Types Grid (new) */
.retention-types-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.retention-type-card {
    border-radius: 10px;
    padding: 20px;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.retention-type-card--analytics {
    background: #f8f8fa;
    border-color: #e5e7eb;
}

.retention-type-card--datalake {
    background: #f8fafa;
    border-color: #e5e7eb;
}

.retention-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.retention-type-card--analytics .retention-type-icon {
    background: #7c7c9c;
}

.retention-type-card--datalake .retention-type-icon {
    background: #5a8a9a;
}

.retention-type-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
}

.retention-type-card strong {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

.retention-type-card p {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Model Comparison */
.model-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.model-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid;
}

.model-card--traditional {
    border-color: #e5e7eb;
    background: #f9fafb;
}

.model-card--datalake {
    border-color: #e5e7eb;
    background: #f9fafb;
}

.model-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid;
}

.model-card--traditional .model-header {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.model-card--datalake .model-header {
    background: #f0f4f5;
    border-color: #e5e7eb;
}

.model-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-card--traditional .model-icon {
    background: #8b8b8b;
}

.model-card--datalake .model-icon {
    background: #5a8a9a;
}

.model-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.model-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.model-body {
    padding: 20px;
}

.model-body p {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.model-formula {
    display: flex;
    align-items: left;
    gap: 8px;
    margin-left: 1%;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: left;
}

.formula-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

.formula-item--highlight {
    background: #f0f4f5;
    border-color: #d1d5db;
    color: #374151;
}

.formula-operator {
    font-size: 16px;
    font-weight: 600;
    color: #9ca3af;
}

.formula-result {
    background: #5a9a7c;
    color: white;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
}

.model-formula--simple {
    justify-content: center;
}

/* Coexistence Info */
.coexistence-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.coexistence-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.coexistence-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coexistence-icon--unsupported {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.coexistence-icon--unsupported svg {
    width: 16px;
    height: 16px;
    stroke: #dc2626;
}

.coexistence-icon--supported {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.coexistence-icon--supported svg {
    width: 16px;
    height: 16px;
    stroke: #16a34a;
}

.coexistence-content strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.coexistence-content p {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* Transition Scenario */
.transition-scenario {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    max-width: 700px;
}

.scenario-header {
    background: #f5f5f5;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.scenario-header svg {
    width: 20px;
    height: 20px;
    stroke: #6b7280;
}

.scenario-header span {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.scenario-timeline {
    padding: 24px;
}

.timeline-step {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    position: relative;
}

.timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

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

.timeline-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6b7280;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-step--warning .timeline-marker {
    background: #9a7a5a;
}

.timeline-step--success .timeline-marker {
    background: #5a9a7c;
}

.timeline-step--final .timeline-marker {
    background: #5a8a9a;
}

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

.timeline-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.timeline-content > p {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.timeline-content > p strong {
    display: inline;
}

.timeline-diagram {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.timeline-diagram--stacked {
    gap: 8px;
}

.diagram-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.diagram-label {
    width: 70px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-align: right;
    flex-shrink: 0;
}

.diagram-bar {
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    min-width: 60px;
    transition: width 0.3s ease;
}

.diagram-bar span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

.diagram-bar--analytics {
    background: #7c7c9c;
    color: white;
}

.diagram-bar--datalake {
    background: #5a8a9a;
    color: white;
}

.diagram-bar--datalake.diagram-bar--new {
    background: #f3f4f6;
    color: #9ca3af;
    border: 1px dashed #d1d5db;
}

.diagram-bar--archive {
    background: #8b8b8b;
    color: white;
}

.diagram-bar--danger {
    background: #c45c5c;
    color: white;
}

.diagram-bar--full {
    background: #5a9a7c;
    color: white;
}

/* Split diagram layout */
.timeline-diagram--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.diagram-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.diagram-group--left {
    align-items: flex-start;
    flex: 1;
}

.diagram-group--right {
    align-items: flex-end;
}

/* Right-aligned row for archive */
.diagram-row--right {
    justify-content: flex-end;
}

.diagram-row--right .diagram-bar {
    margin-left: auto;
}

/* Timeline-style stacked diagram showing data coverage over time */
.timeline-diagram--coverage {
    position: relative;
    padding-top: 8px;
}

.coverage-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    height: 28px;
}

.coverage-label {
    width: 70px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-align: right;
    padding-right: 10px;
    flex-shrink: 0;
}

.coverage-track {
    flex: 1;
    height: 24px;
    position: relative;
    background: #f3f4f6;
    border-radius: 4px;
}

.coverage-bar {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    color: white;
    overflow: hidden;
}

.coverage-bar span {
    white-space: nowrap;
    padding: 0 6px;
}

.coverage-bar--archive {
    background: #8b8b8b;
    right: 0;
}

.coverage-bar--analytics {
    background: #7c7c9c;
    left: 0;
}

.coverage-bar--datalake {
    background: #5a8a9a;
    left: 0;
}

.warning-callout {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 12px;
    font-size: 12px;
    color: #991b1b;
    line-height: 1.5;
}

.warning-callout strong {
    display: inline;
    font-size: 12px;
    color: #b91c1c;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    font-family: inherit;
}

.btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.btn--primary {
    background: #6366f1;
    color: white;
}

a.btn--primary,
a.btn--primary:link,
a.btn--primary:visited,
a.btn--primary:active {
    color: white;
}

.btn--primary:hover {
    background: #4f46e5;
}

.btn--secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn--secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* FAQ */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 14px 16px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #0f172a;
    transition: background 0.15s;
    font-size: 15px;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-icon-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.2s;
}

.faq-item.open .faq-icon-svg {
    transform: rotate(180deg);
}

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

.faq-item.open .faq-answer {
    padding: 16px;
    max-height: 2000px;
}

.faq-answer p {
    color: #1e293b;
    font-size: 15px;
    margin-bottom: 10px;
}

/* Cost Element Cards */
.cost-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.cost-card {
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.cost-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--card-shadow, rgba(0,0,0,0.1));
    border-color: var(--card-color, #6366f1);
}

.cost-card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
}

.cost-card-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.cost-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.cost-card p {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 8px;
}

.cost-card-link {
    font-size: 12px;
    color: var(--card-color, #6366f1);
    font-weight: 500;
}

/* Blade Info Content */
.blade-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 20px 0 12px;
}

.blade-info h3:first-child {
    margin-top: 0;
}

.blade-info p {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.7;
}

.blade-info ul {
    margin: 0 0 16px 20px;
}

.blade-info li {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.6;
}

.blade-info .applies-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
}

.blade-info .applies-box strong {
    color: #1e40af;
}

/* Calculator Placeholder */
.calc-placeholder {
    background: #ffffff;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
}

.calc-placeholder-icon {
    margin-bottom: 20px;
    opacity: 0.5;
}

.calc-placeholder-icon svg {
    width: 48px;
    height: 48px;
    stroke: #9ca3af;
    stroke-width: 1.5;
}

.calc-placeholder h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.calc-placeholder p {
    font-size: 14px;
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
}

/* Blog Page */
.blog-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.blog-cta-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.blog-cta-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.blog-cta h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.blog-cta p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 24px;
}

.blog-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.blog-topic {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.btn--blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.btn--blog:hover {
    color: white;
}

.btn--blog svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* Calculator Page */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.calc-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.calc-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calc-element-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-element-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.calc-element-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.calc-element-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    flex-shrink: 0;
}

.calc-element-icon svg {
    width: 20px;
    height: 20px;
}

.calc-element-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calc-element-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.calc-element-text small {
    font-size: 12px;
    color: #6b7280;
}

/* Cost Elements List */
.calc-elements-list {
    min-height: 100px;
}

.empty-elements {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #e5e7eb;
}

/* Cost Elements Groups */
.cost-elements-group {
    margin-bottom: 16px;
}

.cost-elements-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
}

.cost-elements-group-header .group-icon {
    width: 16px;
    height: 16px;
}

.cost-elements-group-header .group-icon svg {
    width: 16px;
    height: 16px;
}

.cost-elements-group-header--analytics {
    background: #ede9fe;
    color: #7c3aed;
}

.cost-elements-group-header--datalake {
    background: #cffafe;
    color: #0891b2;
}

.cost-elements-group-header--notebooks {
    background: #ffedd5;
    color: #ea580c;
}

.cost-elements-group-header--kqljobs {
    background: #fef3c7;
    color: #d97706;
}

/* KQL Jobs Card Styles */
.cost-element-card--kqljobs {
    border-left: 3px solid #f59e0b;
}

.cost-element-card--kqljobs:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.cost-element-card--kqljobs:hover .cost-element-card-header {
    background: #fefce8;
}

.kqljob-mode-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}

.kqljob-mode-badge--linked {
    background: #dcfce7;
    color: #16a34a;
}

.kqljob-linked-tables {
    padding: 8px 12px;
    background: #fffbeb;
    font-size: 12px;
    color: #92400e;
    border-bottom: 1px solid #fef3c7;
}

.kqljob-table-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kqljob-table-icon {
    font-size: 12px;
}

.kqljob-arrow {
    color: #d97706;
    font-weight: bold;
}

/* Cost Element Cards */
.cost-element-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0;
    margin-bottom: 8px;
    transition: all 0.15s ease;
}

.cost-element-card--clickable {
    cursor: pointer;
}

.cost-element-card--analytics:hover {
    border-color: #a855f7;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.15);
}

.cost-element-card--datalake:hover {
    border-color: #06b6d4;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.cost-element-card--notebooks:hover {
    border-color: #f97316;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.cost-element-card--kqljobs:hover {
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}
.cost-element-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 6px 6px 0 0;
}

.cost-element-card-header--analytics {
    background: #faf5ff;
    border-bottom-color: #e9d5ff;
}

.cost-element-card-header--datalake {
    background: #ecfeff;
    border-bottom-color: #a5f3fc;
}

.cost-element-card-header--notebooks {
    background: #ffedd5;
    border-bottom-color: #fdba74;
}

.cost-element-card-header--kqljobs {
    background: #fffbeb;
    border-bottom-color: #fcd34d;
}

.cost-element-card-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cost-element-card-icon svg {
    width: 100%;
    height: 100%;
}

.cost-element-card-header--analytics .cost-element-card-icon {
    color: #9333ea;
}

.cost-element-card-header--datalake .cost-element-card-icon {
    color: #0891b2;
}

.cost-element-card-header--notebooks .cost-element-card-icon {
    color: #f97316;
}

.cost-element-card-header--kqljobs .cost-element-card-icon {
    color: #f59e0b;
}

.cost-element-card-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    flex: 1;
}

.cost-element-details-row {
    padding: 10px 12px;
    font-size: 12px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 0 0 6px 6px;
}

.cost-element-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.cost-element-split-section {
    padding: 10px 12px;
    font-size: 12px;
}

.cost-element-split-section--analytics {
    background: #faf5ff;
    border-right: 1px solid #e9d5ff;
}

.cost-element-split-section--datalake {
    background: #ecfeff;
}

.split-section-title {
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: #6b7280;
}

.cost-element-split-section--analytics .split-section-title {
    color: #7c3aed;
}

.cost-element-split-section--datalake .split-section-title {
    color: #0891b2;
}

.split-section-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    color: #374151;
}

.split-section-row span:first-child {
    color: #6b7280;
}

.cost-element-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    margin-bottom: 0;
}

.cost-element-item:last-child {
    border-radius: 0 0 6px 6px;
}

.cost-element-item--clickable {
    cursor: pointer;
    transition: all 0.15s ease;
}

.cost-element-item--clickable:hover {
    background: #e0f2fe;
    border-color: #06b6d4;
}

.cost-element-item--datalake {
    background: #f0fdfa;
}

.cost-element-item--notebooks {
    background: #fffbeb;
}

.cost-element-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cost-element-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.cost-element-details {
    font-size: 12px;
    color: #6b7280;
}

.cost-element-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.15s;
    margin-left: auto;
    flex-shrink: 0;
}

.cost-element-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.cost-element-remove svg {
    width: 14px;
    height: 14px;
}

/* Cost Summary */
.cost-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.cost-summary-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cost-summary-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cost-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    font-family: 'JetBrains Mono', monospace;
}

.cost-summary-note {
    font-size: 11px;
    color: #9ca3af;
}

.cost-chart-placeholder {
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    padding: 48px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

/* Blade Calculator Styles */
.blade-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

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

.blade-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.blade-section-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Blade Intro Text */
.blade-intro {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

/* Blade Field Styles (Minimalistic) */
.blade-field {
    margin-bottom: 28px;
    padding-bottom: 8px;
}

.blade-field--disabled {
    opacity: 0.5;
}

.blade-field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.blade-field-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.blade-field-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.blade-field-title-icon svg {
    width: 18px;
    height: 18px;
}

.blade-field-title-icon--analytics {
    color: #8b5cf6;
}

.blade-field-title-icon--retention {
    color: #f59e0b;
}

.blade-field-title-icon--datalake {
    color: #06b6d4;
}

.blade-field-title-icon--notebooks {
    color: #f97316;
}

.blade-field-tag {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
}

.blade-field-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blade-field-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.blade-field-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

.blade-field-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.blade-field-input--disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Table name input - cleaner look */
.blade-field--tablename {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.blade-field--tablename .blade-field-title {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.blade-field-optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 11px;
}

.blade-field-input--name {
    width: 100%;
    max-width: 300px;
    text-align: left;
    font-family: inherit;
    padding: 8px 12px;
}

.blade-field-input--name::placeholder {
    color: #9ca3af;
}

.blade-field-unit {
    font-size: 12px;
    color: #6b7280;
    min-width: 45px;
}

.blade-field-note {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.blade-field-derived {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border-radius: 6px;
    border: 1px solid #a5f3fc;
}

.blade-field-derived-label {
    font-size: 12px;
    color: #0e7490;
    font-weight: 500;
}

.blade-field-derived-value {
    font-size: 13px;
    color: #0891b2;
    font-weight: 600;
}

.blade-field-derived-note {
    font-size: 11px;
    color: #67e8f9;
    font-style: italic;
}

/* Blade Slider Styles */
.blade-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
}

.blade-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #6b7280;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.blade-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #6b7280;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Analytics slider (purple) */
.blade-slider--analytics::-webkit-slider-thumb {
    background: #8b5cf6;
}

.blade-slider--analytics::-moz-range-thumb {
    background: #8b5cf6;
}

/* Data lake slider (cyan) */
.blade-slider--datalake::-webkit-slider-thumb {
    background: #06b6d4;
}

.blade-slider--datalake::-moz-range-thumb {
    background: #06b6d4;
}

/* Notebooks slider (orange) */
.blade-slider--notebooks::-webkit-slider-thumb {
    background: #f97316;
}

.blade-slider--notebooks::-moz-range-thumb {
    background: #f97316;
}

.blade-slider:disabled {
    opacity: 0.5;
}

.blade-slider:disabled::-webkit-slider-thumb {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Blade Add Button */
.blade-btn-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 24px;
}

.blade-btn-add:hover {
    background: #7c3aed;
}

.blade-btn-add svg {
    width: 18px;
    height: 18px;
}

/* Blade Error Message */
.blade-error {
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
    padding: 12px;
}

.calc-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    cursor: pointer;
}

.calc-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.region-status {
    margin-top: 12px;
}

/* Regional Pricing Summary */
.region-pricing-summary {
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.region-pricing-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

.region-pricing-grid {
    display: grid;
    gap: 8px;
}

.region-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
}

.region-price-item:last-child {
    border-bottom: none;
}

.region-price-label {
    font-size: 12px;
    color: #6b7280;
}

.region-price-value {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge--available {
    background: #d1fae5;
    color: #059669;
}

.status-badge--unavailable {
    background: #fee2e2;
    color: #dc2626;
}

/* Commitment Tiers */
.commitment-tiers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.commitment-tier-option {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: #ffffff;
}

.commitment-tier-option:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.commitment-tier-option.selected {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.tier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.tier-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.tier-savings {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    padding: 2px 6px;
    border-radius: 4px;
}

.tier-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tier-price {
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    font-family: 'JetBrains Mono', monospace;
}

.tier-commitment {
    font-size: 11px;
    color: #9ca3af;
}

/* Prepurchase Options */
.prepurchase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.prepurchase-option {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.prepurchase-option:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.prepurchase-option.selected {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.prepurchase-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
}

.prepurchase-price {
    font-size: 12px;
    color: #6b7280;
}

/* Config Groups */
.config-group {
    margin-bottom: 20px;
}

.config-group--disabled {
    opacity: 0.6;
}

.config-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.config-unit {
    font-weight: 400;
    color: #9ca3af;
}

.slider-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calc-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.calc-slider:disabled {
    opacity: 0.5;
}

.calc-slider:disabled::-webkit-slider-thumb {
    background: #9ca3af;
    cursor: not-allowed;
}

.calc-input {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

.calc-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.calc-input--disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.input-note {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Dual Slider (Retention) */
.dual-slider-container {
    margin-bottom: 16px;
}

.dual-slider-track {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 16px 0;
}

.dual-slider-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 100%);
    border-radius: 2px;
    top: 0;
}

.dual-slider-handle {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
    /* Better touch target */
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.dual-slider-handle::before {
    /* Invisible larger touch target */
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

.dual-slider-handle.analytics-handle {
    background: #8b5cf6;
    z-index: 2;
}

.dual-slider-handle.datalake-handle {
    background: #06b6d4;
    z-index: 1;
}

.dual-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
}

.retention-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.retention-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-unit .calc-input,
.input-with-unit .blade-field-input {
    flex: 1;
    width: auto;
}

.input-with-unit span {
    font-size: 13px;
    color: #6b7280;
}

/* Button Full Width */
.btn--full {
    width: 100%;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .cost-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .sidebar.collapsed {
        width: 72px;
    }

    .content {
        margin-left: 200px;
        padding: 24px;
    }

    .sidebar.collapsed ~ .content {
        margin-left: 72px;
    }

    .tier-comparison {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-right: none;
        border-top: 1px solid #e5e7eb;
        padding: 8px 0;
        display: flex;
        justify-content: space-around;
        z-index: 100;
        background: #ffffff;
    }

    .sidebar.collapsed {
        width: 100%;
    }

    .sidebar-section {
        display: flex;
        margin: 0;
        width: 100%;
        justify-content: space-around;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-item {
        flex: 1;
        flex-direction: column;
        padding: 8px 4px;
        gap: 4px;
        border-left: none;
        font-size: 10px;
        text-align: center;
        min-width: 0;
        max-width: 20%;
    }

    .sidebar-item-text {
        opacity: 1 !important;
        width: auto !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Shorter labels for mobile */
    .sidebar-item[data-page="costs"] .sidebar-item-text {
        font-size: 0;
    }
    .sidebar-item[data-page="costs"] .sidebar-item-text::after {
        content: "Costs";
        font-size: 10px;
    }
    
    .sidebar-item[data-page="calculator"] .sidebar-item-text {
        font-size: 0;
    }
    .sidebar-item[data-page="calculator"] .sidebar-item-text::after {
        content: "Calc";
        font-size: 10px;
    }

    .sidebar-toggle {
        display: none;
    }

    .content {
        margin-left: 0;
        margin-bottom: 70px;
        padding: 20px 16px;
    }

    .sidebar.collapsed ~ .content {
        margin-left: 0;
    }

    .page-title {
        font-size: 28px;
    }

    .blade-panel {
        width: 100%;
        max-width: none;
    }

    .cost-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .cost-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .commitment-tiers-grid {
        grid-template-columns: 1fr;
    }
    
    .prepurchase-grid {
        grid-template-columns: 1fr;
    }
    
    .retention-inputs {
        grid-template-columns: 1fr;
    }
}
/* Chart Controls */
.chart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.chart-control-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.chart-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #ffffff;
    cursor: pointer;
}

.chart-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

/* Chart Container */
.cost-chart-container {
    position: relative;
    width: 100%;
    height: 350px;
    margin: 16px 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.export-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.15s ease;
}

.export-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.export-btn svg {
    width: 16px;
    height: 16px;
}

/* Full-page blade panel for chart */
.blade-panel.blade-panel--fullpage {
    width: calc(100vw - 240px);
    max-width: calc(100vw - 240px);
    left: 240px;
    right: 0;
}

/* Handle collapsed sidebar */
.sidebar.collapsed ~ .main-content .blade-panel--fullpage,
body:has(.sidebar.collapsed) .blade-panel--fullpage {
    width: calc(100vw - 72px);
    max-width: calc(100vw - 72px);
    left: 72px;
}

/* Chart wrapper inside blade */
.chart-fullpage-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    padding: 0;
}

.chart-fullpage-wrapper .chart-fullpage-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.chart-fullpage-canvas-wrapper {
    flex: 1;
    min-height: 0;
    position: relative;
}

.chart-fullpage-canvas-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Full-page chart overlay - keep for backwards compatibility */
.chart-fullpage-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.chart-fullpage-overlay.active {
    transform: translateX(0);
}

.chart-fullpage-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 32px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-bottom: 3px solid #8b5cf6;
}

.chart-fullpage-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.chart-fullpage-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-fullpage-controls .chart-control-label {
    color: rgba(255, 255, 255, 0.8);
}

.chart-fullpage-controls .chart-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.chart-fullpage-controls .chart-select option {
    background: #1e293b;
    color: white;
}

.chart-fullpage-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chart-fullpage-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.chart-fullpage-close svg {
    width: 24px;
    height: 24px;
}

.chart-fullpage-content {
    flex: 1;
    padding: 32px;
    overflow: hidden;
}

.chart-fullpage-content canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Improved dual slider fills */
.dual-slider-fill.analytics-fill {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 6px 0 0 6px;
}

.dual-slider-fill.datalake-fill {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    border-radius: 0 6px 6px 0;
}

/* Retention input groups with colored borders */
.retention-input-group--analytics {
    border-left: 3px solid #8b5cf6;
    padding-left: 12px;
}

.retention-input-group--datalake {
    border-left: 3px solid #06b6d4;
    padding-left: 12px;
}

.retention-label-icon {
    margin-right: 6px;
}

/* Updated slider labels for 4-point scale */
.dual-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Full screen expand button - same style as other export buttons */

@media (max-width: 600px) {
    .export-buttons {
        flex-direction: column;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .chart-fullpage-header {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px 20px;
    }
    
    .chart-fullpage-header h2 {
        font-size: 1.2rem;
        width: calc(100% - 60px);
    }
    
    .chart-fullpage-content {
        padding: 16px;
    }
}

/* KQL Jobs Blade Styles */
.kqljob-mode-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.kqljob-mode-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kqljob-mode-option:hover:not(.disabled) {
    border-color: #f59e0b;
    background: #fffbeb;
}

.kqljob-mode-option.selected {
    border-color: #f59e0b;
    background: #fef3c7;
}

.kqljob-mode-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.kqljob-mode-option input[type="radio"] {
    margin-top: 2px;
    accent-color: #f59e0b;
}

.mode-option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mode-option-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.mode-option-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.kqljob-config-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.kqljob-config-section.hidden {
    display: none;
}

.kqljob-cost-preview {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.cost-preview-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #16a34a;
    margin-bottom: 12px;
}

.cost-preview-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}

.cost-preview-label {
    color: #6b7280;
}

.cost-preview-value {
    font-weight: 500;
    color: #111827;
}

.cost-preview-total {
    border-top: 1px solid #bbf7d0;
    margin-top: 8px;
    padding-top: 8px;
}

.cost-preview-total .cost-preview-label,
.cost-preview-total .cost-preview-value {
    font-weight: 600;
    color: #16a34a;
}

.kqljob-linked-info {
    display: flex;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.linked-info-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.linked-info-text {
    font-size: 12px;
    line-height: 1.6;
    color: #1e40af;
}

.linked-info-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

/* KQL Jobs minimum value note */
.kqljob-min-note {
    font-size: 11px;
    color: #f59e0b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kqljob-min-note::before {
    content: "⚡";
    font-size: 10px;
}

/* Amber slider for KQL Jobs */
.blade-slider--amber {
    accent-color: #f59e0b;
}

.blade-slider--amber::-webkit-slider-thumb {
    background: #f59e0b;
}

.blade-slider--amber::-moz-range-thumb {
    background: #f59e0b;
}

.blade-field-title-icon--amber {
    color: #f59e0b;
}