/**
 * IconTech Studio: Business Operations Command Center Hero CSS
 * Scoped strictly to .hero-layout-business-ops
 * 
 * Proprietary Enterprise Operations Platform Showcase (4-Screen Architecture)
 * Screen 3: Dedicated Workflow Orchestration Engine & Process Builder
 */

.hero-layout-business-ops {
    position: relative;
    background: #05010a;
    overflow: hidden;
}

.hero-layout-business-ops .container {
    position: relative;
    z-index: 2;
}

/* Faint grid background overlay across the entire section */
.hero-bg-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(168, 85, 247, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 1;
}

/* Subtle radial purple glow behind left-side text elements */
.heading-glow-radial {
    position: absolute;
    top: 15%;
    left: -20%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.075) 0%, transparent 75%);
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
}

/* Ambient Radial Glow Behind Console */
.biz-ops-ambient-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 80%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

/* Visual Container */
.biz-ops-visual-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

/* Console Window Chassis */
.biz-ops-main-console {
    position: relative;
    width: 100%;
    background: linear-gradient(145deg, #101117, #0b0c10);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(168, 85, 247, 0.08);
    overflow: hidden;
}

/* ZONE 1: PLATFORM HEADER */
.biz-ops-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-left-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.console-app-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.header-right-status {
    display: flex;
    align-items: center;
}

.status-text-live {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #10b981;
    text-transform: uppercase;
}

/* ZONE 2: ACCESSIBLE NAVIGATION TABS */
.biz-ops-nav-strip {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow-x: auto;
    scrollbar-width: none;
}

.biz-ops-nav-strip::-webkit-scrollbar { display: none; }

.nav-pill {
    background: transparent;
    border: 1px solid transparent;
    font-size: 10px;
    font-weight: 700;
    color: #71717a;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
}

.nav-pill.active {
    background: rgba(168, 85, 247, 0.18);
    color: #ffffff;
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.15);
}

.nav-pill:hover:not(.active) {
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.03);
}

.nav-pill:focus-visible {
    border-color: #a855f7;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.4);
}

/* CONSOLE BODY PANELS */
.biz-ops-body {
    padding: 18px;
    position: relative;
    min-height: 290px;
}

.biz-ops-screen-panel {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.biz-ops-screen-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Shared Titles & Colors */
.sec-title { font-size: 9px; font-weight: 800; letter-spacing: 0.1em; color: #a1a1aa; }
.sec-badge { font-size: 8px; font-weight: 700; padding: 2px 6px; background: rgba(168, 85, 247, 0.15); color: #c084fc; border-radius: 4px; }
.text-purple { color: #c084fc; }
.text-cyan { color: #06b6d4; }
.text-green { color: #10b981; }
.text-white { color: #ffffff; }

/* ----------------------------------------------------
   SCREEN 1: OPERATIONS (CONTROL)
   ---------------------------------------------------- */
.biz-ops-workflow-section {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
}

.section-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.pipeline-tracker { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.pipeline-track-line { position: absolute; top: 13px; left: 20px; right: 20px; height: 2px; background: rgba(255, 255, 255, 0.08); z-index: 1; }
.pipeline-track-fill { width: 42%; height: 100%; background: linear-gradient(90deg, #a855f7, #06b6d4); border-radius: 1px; }

.pipeline-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-icon-circle { width: 26px; height: 26px; border-radius: 50%; background: #12131c; border: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #71717a; position: relative; }
.step-complete .step-icon-circle { background: #a855f7; border-color: #a855f7; color: #ffffff; box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }
.step-active .step-icon-circle { background: #090a10; border-color: #06b6d4; color: #06b6d4; box-shadow: 0 0 10px rgba(6, 182, 212, 0.4); }

.step-pulse-ring { position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(6, 182, 212, 0.6); animation: stepPulse 2.5s infinite; }
@keyframes stepPulse { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

.step-name { font-size: 9px; font-weight: 700; color: #d4d4d8; text-align: center; }

.biz-ops-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.biz-ops-inner-card { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.inner-card-head { margin-bottom: 10px; }
.head-title { font-size: 10px; font-weight: 700; color: #ffffff; }

.metric-meter-group { display: flex; flex-direction: column; gap: 8px; }
.meter-item { display: flex; flex-direction: column; gap: 3px; }
.meter-info { display: flex; justify-content: space-between; font-size: 9px; color: #a1a1aa; }
.meter-val { font-weight: 700; color: #ffffff; }

.meter-bar { height: 4px; background: rgba(255, 255, 255, 0.06); border-radius: 2px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 2px; }
.fill-purple { background: #a855f7; }
.fill-cyan { background: #06b6d4; }
.fill-green { background: #10b981; }
.w-88 { width: 88%; }
.w-64 { width: 64%; }

.approval-items-list { display: flex; flex-direction: column; gap: 8px; }
.approval-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.02); padding: 6px 8px; border-radius: 6px; }
.approval-details { display: flex; flex-direction: column; }
.item-title { font-size: 9px; font-weight: 700; color: #ffffff; }
.item-meta { font-size: 7px; color: #71717a; }
.approval-btn { font-size: 8px; font-weight: 800; padding: 2px 6px; background: #a855f7; color: #ffffff; border-radius: 4px; }
.approval-badge { font-size: 8px; font-weight: 700; padding: 2px 6px; background: rgba(255, 255, 255, 0.06); color: #a1a1aa; border-radius: 4px; }

.biz-ops-metadata-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; margin-top: 12px; }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 7px; font-weight: 800; letter-spacing: 0.08em; color: #71717a; text-transform: uppercase; }
.meta-val { font-size: 9px; font-weight: 700; color: #ffffff; }
.meta-divider { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.08); }

/* ----------------------------------------------------
   SCREEN 2: RESOURCES
   ---------------------------------------------------- */
.res-capacity-card { background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 12px 14px; }
.res-cap-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.res-cap-bar-wrap { height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; display: flex; overflow: hidden; margin-bottom: 12px; }
.res-cap-segment { height: 100%; }
.seg-allocated { background: #a855f7; }
.seg-available { background: #06b6d4; }
.seg-idle { background: rgba(255, 255, 255, 0.1); }
.res-cap-metrics { display: flex; justify-content: space-between; }
.res-cap-stat { display: flex; flex-direction: column; gap: 2px; }
.stat-lbl { font-size: 7px; font-weight: 800; color: #71717a; letter-spacing: 0.08em; }
.stat-num { font-size: 13px; font-weight: 800; color: #ffffff; }

.res-rows-container { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.res-row-item { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.res-row-info { display: flex; justify-content: space-between; }
.res-name { font-size: 9px; font-weight: 700; color: #ffffff; }
.res-percent { font-size: 9px; font-weight: 800; }
.res-row-track { height: 4px; background: rgba(255, 255, 255, 0.06); border-radius: 2px; overflow: hidden; }
.res-row-fill { height: 100%; border-radius: 2px; }

.res-alerts-card { background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.res-alert-list { display: flex; flex-direction: column; gap: 6px; }
.res-alert-item { display: flex; align-items: center; gap: 8px; font-size: 9px; color: #d4d4d8; }
.alert-dot { width: 6px; height: 6px; border-radius: 50%; }
.amber-dot { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.green-dot { background: #10b981; box-shadow: 0 0 6px #10b981; }
.cyan-dot { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }

/* ----------------------------------------------------
   SCREEN 3: WORKFLOWS (REDESIGNED ENTERPRISE ENGINE)
   ---------------------------------------------------- */
.wf-engine-canvas {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
}

.wf-header-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wf-subtitle {
    font-size: 8px;
    color: #71717a;
    font-weight: 600;
}

/* Horizontal 5-Node Connected Pipeline Canvas */
.wf-pipeline-canvas {
    position: relative;
    margin: 16px 0;
    padding: 10px 0;
}

.wf-connector-lines-svg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 80px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.wf-pulse-particle {
    filter: drop-shadow(0 0 6px #a855f7);
    animation: particleTravel 4s infinite linear;
}

@keyframes particleTravel {
    0% { cx: 40px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { cx: 440px; opacity: 0; }
}

.wf-nodes-flex {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 8px;
}

.wf-card-node {
    flex: 1;
    background: rgba(14, 15, 23, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.wf-card-node:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.node-step-tag {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #71717a;
}

.node-title {
    font-size: 9px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.node-status-tag {
    font-size: 7px;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 4px;
    align-self: flex-start;
}

.tag-complete { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.tag-running { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.tag-waiting { background: rgba(255, 255, 255, 0.06); color: #a1a1aa; }
.tag-queued { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

/* Special Branching Decision Node */
.node-decision {
    border-color: rgba(168, 85, 247, 0.4);
    background: linear-gradient(145deg, rgba(20, 21, 32, 0.95), rgba(12, 13, 20, 0.95));
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.branch-pill-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}

.branch-pill {
    font-size: 6.5px;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 3px;
    letter-spacing: 0.04em;
}

.pill-yes { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.pill-no { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

/* Compact Workflow Status Strip */
.wf-status-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
}

.wf-status-indicators {
    display: flex;
    gap: 12px;
}

.st-dot {
    font-size: 8px;
    font-weight: 800;
}

.dot-green { color: #10b981; }
.dot-purple { color: #c084fc; }
.dot-muted { color: #71717a; }

.wf-status-meta {
    font-size: 8px;
    color: #71717a;
    display: flex;
    gap: 6px;
}

.meta-sep { opacity: 0.3; }

/* Recent Executions Log */
.wf-executions-log {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px 10px;
}

.log-entries {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-row {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
}

.log-msg { font-weight: 700; }
.log-time { color: #71717a; }

/* ----------------------------------------------------
   SCREEN 4: REPORTS & PERIOD FILTERS
   ---------------------------------------------------- */
.reports-main-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
}

.period-selector {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px;
    border-radius: 6px;
}

.period-pill {
    background: transparent;
    border: none;
    font-size: 8px;
    font-weight: 800;
    color: #71717a;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.period-pill.active {
    background: #a855f7;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.period-pill:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.reports-chart-area { height: 75px; width: 100%; margin: 10px 0; }
.reports-svg-chart { width: 100%; height: 100%; }

#reports-chart-fill, #reports-chart-line { transition: d 0.4s ease, opacity 0.4s ease; }

.reports-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.outcome-stat { display: flex; flex-direction: column; gap: 2px; }
.outcome-num { font-size: 13px; font-weight: 800; transition: color 0.3s ease; }
.outcome-lbl { font-size: 7px; font-weight: 800; letter-spacing: 0.08em; color: #71717a; }

.reports-breakdown-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.breakdown-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 12px;
}

.breakdown-list { display: flex; flex-direction: column; gap: 6px; }
.bd-item { display: flex; justify-content: space-between; font-size: 9px; }
.bd-name { font-weight: 700; color: #d4d4d8; }
.bd-val { font-weight: 800; }

.insight-card {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.insight-icon { font-size: 12px; }
.insight-text { display: flex; flex-direction: column; gap: 2px; }
.insight-title { font-size: 8px; font-weight: 800; letter-spacing: 0.08em; color: #a855f7; }
.insight-text p { font-size: 9px; color: #e4e4e7; line-height: 1.3; margin: 0; }

/* Responsive Behavior */
@media (max-width: 1024px) {
    .biz-ops-visual-container { max-width: 100%; }
}

@media (max-width: 768px) {
    .hero-layout-business-ops { padding: 90px 0 60px; }
    .biz-ops-grid-two,
    .reports-breakdown-row { grid-template-columns: 1fr; }
    .wf-nodes-flex { flex-direction: column; gap: 8px; }
    .wf-connector-lines-svg { display: none; }
}

/* Dynamic workflow node state classes */
.wf-card-node.node-state-active {
    border-color: rgba(168, 85, 247, 0.8) !important;
    background: rgba(24, 21, 38, 0.95) !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3) !important;
    transform: translateY(-2px);
}
.wf-card-node.node-state-complete {
    border-color: rgba(16, 185, 129, 0.6) !important;
    background: rgba(10, 24, 18, 0.9) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
}
.wf-card-node.node-state-active .node-status-tag {
    background: rgba(168, 85, 247, 0.25) !important;
    color: #d8b4fe !important;
}
.wf-card-node.node-state-complete .node-status-tag {
    background: rgba(16, 185, 129, 0.25) !important;
    color: #34d399 !important;
}

/* Override default decision node style to match default node state */
.node-decision {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(14, 15, 23, 0.9) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}
.node-decision.node-state-active {
    border-color: rgba(168, 85, 247, 0.8) !important;
    background: linear-gradient(145deg, rgba(20, 21, 32, 0.95), rgba(12, 13, 20, 0.95)) !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3) !important;
}
.node-decision.node-state-complete {
    border-color: rgba(16, 185, 129, 0.6) !important;
    background: rgba(10, 24, 18, 0.9) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
}
