
/* Dark Mode Control Tower Theme */
#ops-control-tower-wrapper { grid-column: 1 / -1 !important;
    background-color: #0f172a;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: #e2e8f0;
}

#ops-control-tower-wrapper h2 {
    color: #f8fafc !important;
}

#ops-control-tower-wrapper .widget-card {
    background: rgba(30, 41, 59, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left-width: 4px !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
}

#ops-control-tower-wrapper .widget-header {
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

#ops-control-tower-wrapper [id$="-content"], 
#ops-control-tower-wrapper .widget-main {
    color: #f8fafc !important;
}

#ops-control-tower-wrapper [id^="ops-row-title"] {
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Neon accents */
#ops-control-tower-wrapper .material-icons {
    filter: drop-shadow(0 0 2px currentColor);
}

/* Specific overrides for tables inside the tower */
#ops-control-tower-wrapper table {
    background: transparent !important;
    color: #e2e8f0 !important;
}
#ops-control-tower-wrapper th {
    background: rgba(255,255,255,0.05) !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
#ops-control-tower-wrapper td {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

/* Masonry grid layout */
#ops-control-tower {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

/* Row titles span full width */
#ops-control-tower > div[id^="ops-row-title"] {
    grid-column: 1 / -1;
    margin-top: 15px;
}
#ops-control-tower > #ops-insights-toggle-btn {
    grid-column: 1 / -1;
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px dashed rgba(59, 130, 246, 0.5) !important;
}
#ops-control-tower > .widget-card[style*="grid-column: 1 / -1"] {
    grid-column: 1 / -1 !important;
}


/* Concept Widgets */
.concept-widget {
    background: rgba(30, 41, 59, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.concept-widget-title {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.concept-widget-value {
    font-size: 2.5rem;
    font-weight: 300;
    color: #22d3ee; /* Neon Cyan */
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.concept-widget-value.neon-green {
    color: #a3e635;
    text-shadow: 0 0 10px rgba(163, 230, 53, 0.3);
}

.concept-widget-value.neon-yellow {
    color: #fde047;
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.3);
}

.concept-widget-subtext {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 5px;
}

.concept-gauge {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.concept-chart-placeholder {
    height: 40px;
    width: 100%;
    margin-top: 15px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.2) 0%, transparent 100%);
    border-top: 2px solid #22d3ee;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 10px rgba(34,211,238,0.2);
}

/* Redefine grid for top section */
#concept-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hidden-legacy-tower { display: none !important; }

.neon-blue {
    color: #60a5fa !important;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3) !important;
}
.neon-purple {
    color: #c084fc !important;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.3) !important;
}
.neon-orange {
    color: #fb923c !important;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.3) !important;
}
.concept-progress-bg {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}
.concept-progress-fill {
    height: 100%;
    background: #c084fc;
    border-radius: 3px;
    box-shadow: 0 0 8px #c084fc;
}


.groupage-cols {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    height: 100px;
    margin-top: 20px;
}
.groupage-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
.groupage-bar-bg {
    width: 24px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.groupage-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 3px;
    transition: height 0.5s ease;
}
.groupage-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}
.groupage-val {
    font-size: 0.75rem;
    color: #f8fafc;
    font-weight: 700;
    margin-top: 2px;
}

/* ── Mobile Media Queries for Dark Theme Widgets ── */
@media (max-width: 768px) {
    .concept-widget {
        padding: 12px !important;
        border-radius: 8px !important;
        min-height: 100px;
    }
    .concept-widget-value {
        font-size: 1.8rem !important;
    }
    .concept-widget-title {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
    }
    #concept-widgets-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }
    #ops-control-tower-wrapper {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    .concept-chart-placeholder {
        margin-top: 10px;
        height: 25px;
    }
}
