/**
 * orc.css
 * Fabric Orchestrator Component Layout Scoping Styles
 */

/* Main component container wrapper */
.orc-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #1e1e1e;
    color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header section descriptions */
.orc-subtitle {
    color: #aaa;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Action button grouping layout */
.orc-action-bar {
    margin-bottom: 1.5rem;
}

/* The interactive AJAX engine execution button */
.orc-btn {
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    background: var(--powerbi-yellow, #f2c811);
    color: #111;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.orc-btn:hover {
    background: #ffd633;
}

.orc-btn:active {
    transform: scale(0.98);
}

/* Dynamic status messages during simulation calls */
.orc-status-message {
    padding: 1rem;
    background: rgba(242, 200, 17, 0.1);
    border-left: 4px solid var(--powerbi-yellow, #f2c811);
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}

/* Structural reset lists for rendering tree elements */
#orc-tree-root, 
#orc-tree-root ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

#orc-tree-root { 
    padding-left: 0; 
}

.orc-tree-node {
    margin: 0.35rem 0;
}

/* Interactive click target elements for nodes */
.orc-interactive-item {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    background: #2d2d2d;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    border-left: 3px solid #555;
    font-size: 14px;
    user-select: none;
}

.orc-interactive-item:hover {
    background: #3d3d3d;
}

/* Icon layout configuration */
.orc-icon {
    margin-right: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Embedded interactive code container structure */
#orc-script-container {
    margin-top: 2rem;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    background: #151515;
}

.orc-script-header {
    background: #252526;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.orc-script-title {
    font-weight: bold;
    color: var(--powerbi-yellow, #f2c811);
    font-size: 14px;
}

/* Text formatting blocks for code injection targets */
pre {
    margin: 0;
    padding: 1.2rem;
    background: #151515;
    overflow-x: auto;
}

code {
    font-family: "Consolas", "Courier New", monospace;
    color: #7ec699;
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.6;
}

/* ==========================================================================
   COLOR MAP MATRIX: Semantic identifiers for native Microsoft Fabric item scopes
   ========================================================================== */

/* Workspaces */
.orc-tree-node[data-type="workspace"] > .orc-interactive-item { 
    border-left-color: #8a1155; 
}

/* Native Lakehouse Base */
.orc-tree-node[data-type="lakehouse"] > .orc-interactive-item { 
    border-left-color: #118a5a; 
}

/* OneLake raw landing zone directory */
.orc-tree-node[data-type="onelake-files"] > .orc-interactive-item { 
    border-left-color: #d83b01; 
    background: #252020; 
}

/* OneLake structured optimized table delta store */
.orc-tree-node[data-type="onelake-tables"] > .orc-interactive-item { 
    border-left-color: #0078d4; 
    background: #202225;
}

/* Synapse Data Warehouse instance */
.orc-tree-node[data-type="warehouse"] > .orc-interactive-item { 
    border-left-color: #0078d4; 
}

/* Real-Time Hub Eventstream pipeline */
.orc-tree-node[data-type="eventstream"] > .orc-interactive-item { 
    border-left-color: #ffb900; 
}

/* Real-Time Analytics KQL Database engine */
.orc-tree-node[data-type="kqldatabase"] > .orc-interactive-item { 
    border-left-color: #f2c811; 
}

/* Reflexive Data Activator system monitor triggers */
.orc-tree-node[data-type="activator"] > .orc-interactive-item { 
    border-left-color: #e81123; 
}
/* Color token tracking for internal shortcut references */
.orc-tree-node[data-type="kql-shortcut"] > .orc-interactive-item {
    border-left-color: #f7630c; /* KQL Kusto Neon Orange */
    background: #252220;
    font-style: italic;
}