/**
 * ie.css
 * Power BI Premium Theme (Dark Mode Edition)
 * Scoped structural styles for the Fabric Metadata Ingestion Engine Component
 */

/* Power BI Core Dark Palette Definitions */
.fabric-ie-engine {
    font-family: "Segoe UI", wf_segoe-ui_normal, helvetica, arial, sans-serif;
    color: #E6E6E6; /* Light gray body text */
    background-color: #111111; /* Power BI Canvas Dark Background */
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.fabric-ie-engine * {
    box-sizing: border-box;
}

.fabric-ie-engine .container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Header & Controls Namespace */
.fabric-ie-engine header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333;
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.fabric-ie-engine .logo-area h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #F2C811; /* Power BI Primary Gold Accent */
}

.fabric-ie-engine .logo-icon {
    color: #F2C811;
}

.fabric-ie-engine .subtitle {
    font-size: 0.85rem;
    color: #A6A6A6; /* Power BI Neutral Muted Text */
    margin: 0;
}

/* Action Inputs & Power BI Styled Buttons */
.fabric-ie-engine .btn {
    background-color: #F2C811; /* Gold Primary Fill */
    color: #111111; /* High contrast dark text */
    border: 1px solid #F2C811;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.215, 0.610, 0.355, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fabric-ie-engine .btn:hover {
    background-color: #D9B20F;
    border-color: #D9B20F;
}

/* Dashboard Visual Matrix Grid */
.fabric-ie-engine .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .fabric-ie-engine .grid {
        grid-template-columns: 1fr;
    }
}

/* Power BI Card Visual Container */
.fabric-ie-engine .card {
    background-color: #1F1F1F; /* Card Container Background */
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #292929; /* Subdued interior border */
}

.fabric-ie-engine .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #292929;
    padding-bottom: 12px;
}

/* Isolated Matrix & Table Frameworks */
.fabric-ie-engine table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.fabric-ie-engine th, 
.fabric-ie-engine td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #292929;
    font-size: 13px;
}

.fabric-ie-engine th {
    background-color: #252525;
    color: #A6A6A6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.fabric-ie-engine td b {
    color: #F2C811; /* Gold highlights for Row IDs */
}

.fabric-ie-engine .code-block {
    background-color: #141414;
    color: #A6A6A6;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    border: 1px solid #252525;
    overflow-x: auto;
    margin-top: 20px;
}

.fabric-ie-engine .code-block code {
    color: #D4D4D4;
}

/* Pipeline Process Flow Diagrams */
.fabric-ie-engine .pipeline-flow {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fabric-ie-engine .pipeline-node {
    background-color: #252525;
    border: 1px solid #292929;
    border-left: 4px solid #555555; /* Default Standby Slate border */
    padding: 14px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease-in-out;
}

.fabric-ie-engine .pipeline-node h4 {
    margin: 0 0 4px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #FFFFFF;
}

.fabric-ie-engine .pipeline-node p {
    margin: 0;
    font-size: 12px;
    color: #A6A6A6;
}

/* Active Processing State Colorations */
.fabric-ie-engine .pipeline-node.initial-opacity {
    opacity: 0.5;
}

.fabric-ie-engine .pipeline-node.active {
    border-left-color: #F2C811; /* Transitions to Power BI Gold border when executing */
    background-color: #2A281E; /* Subdued gold-tinged dark background */
    opacity: 1;
}

/* Categorical Color-Coding Badges */
.fabric-ie-engine .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 2px; /* Square edges aligned with Power BI app structure */
}

.fabric-ie-engine .badge-active {
    background-color: rgba(242, 200, 17, 0.15);
    color: #F2C811;
    border: 1px solid rgba(242, 200, 17, 0.3);
}

.fabric-ie-engine .badge-standby {
    background-color: #333333;
    color: #CCCCCC;
}

.fabric-ie-engine .badge-queued {
    background-color: #1F1F1F;
    color: #A6A6A6;
    border: 1px dashed #444444;
}

.fabric-ie-engine .badge-running {
    background-color: rgba(242, 200, 17, 0.25);
    color: #F2C811;
}

.fabric-ie-engine .badge-success {
    background-color: rgba(0, 184, 148, 0.15); /* Power BI Success Green */
    color: #00B894;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

/* Flow Signal Micro-Animations */
.fabric-ie-engine .pulse {
    animation: fabricPulse 1.8s infinite ease-in-out;
}

.fabric-ie-engine .status-icon {
    margin-right: 6px;
}

.fabric-ie-engine .fa-spinner {
    animation: fabricSpin 1.2s infinite linear;
}

@keyframes fabricPulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes fabricSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
