/* ═══════════════════════════════════════════════════════════════
   QUANTUM DETAIL SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.quantum-detail-card .quantum-header {
    background: linear-gradient(135deg, #0c0c1d, #1a1a3e);
    color: #e0e0ff;
    border-bottom: 2px solid #6c5ce7;
}

.quantum-detail-card .quantum-header h5 { color: #a29bfe; }
.quantum-detail-card .quantum-header small { color: #b2bec3; }

.quantum-interpretation {
    font-size: 0.88rem;
    color: #636e72;
    font-style: italic;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #6c5ce7;
    border-radius: 0 6px 6px 0;
}

/* Coherence Meter */
.quantum-meter {
    margin-bottom: 12px;
}

.meter-label {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 6px;
}

.meter-bar-bg {
    background: #dfe6e9;
    border-radius: 12px;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.meter-bar-fill {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe, #00cec9);
    transition: width 1s ease-out;
    position: relative;
}

.meter-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.meter-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6c5ce7;
    text-align: center;
    margin-top: 4px;
    font-family: 'Courier New', monospace;
}

/* Ngũ Hành Quantum Distribution */
.ngu-hanh-quantum-dist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hanh-quantum-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.hanh-quantum-row .hanh-name {
    width: 50px;
    font-weight: 600;
}

.hanh-quantum-row .hanh-bar-bg {
    flex: 1;
    background: #ecf0f1;
    height: 18px;
    border-radius: 9px;
    overflow: hidden;
}

.hanh-quantum-row .hanh-bar-fill {
    height: 100%;
    border-radius: 9px;
    transition: width 0.8s ease-out;
}

.hanh-quantum-row .hanh-force {
    width: 120px;
    font-size: 0.75rem;
    color: #636e72;
    text-align: right;
}

/* Entanglement Grid */
.entanglement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.entanglement-pair {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #dfe6e9;
    text-align: center;
    transition: all 0.3s;
}

.entanglement-pair:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}

.entanglement-pair .pair-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #2d3436;
}

.entanglement-pair .correlation-bar {
    height: 8px;
    background: #dfe6e9;
    border-radius: 4px;
    margin: 8px 0;
    overflow: hidden;
}

.entanglement-pair .correlation-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-out;
}

.entanglement-pair .correlation-fill.positive {
    background: linear-gradient(90deg, #00b894, #55efc4);
}

.entanglement-pair .correlation-fill.negative {
    background: linear-gradient(90deg, #d63031, #ff7675);
}

.entanglement-pair .bell-state {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: #6c5ce7;
    margin-top: 4px;
}

.entanglement-pair .hanh-pair {
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Decoherence Timeline */
.decoherence-timeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.decoherence-stage {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.decoherence-stage.stage-0 {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
}

.decoherence-stage.stage-1 {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    color: white;
}

.decoherence-stage.stage-2 {
    background: linear-gradient(135deg, #00b894, #55efc4);
    color: #2d3436;
}

.decoherence-stage .stage-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.decoherence-stage .stage-chi {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 4px 0;
}

.decoherence-stage .stage-quantum {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    padding: 4px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    display: inline-block;
    margin: 4px 0;
}

.decoherence-stage .stage-vedic {
    font-size: 0.82rem;
    opacity: 0.9;
    margin-top: 6px;
}

.decoherence-stage .stage-particle {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-top: 4px;
}

.decoherence-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #6c5ce7;
    padding: 0 8px;
}

/* Particle Table */
.quantum-particle-table {
    font-size: 0.85rem;
}

.quantum-particle-table thead {
    background: linear-gradient(135deg, #0c0c1d, #1a1a3e);
    color: #a29bfe;
}

.quantum-particle-table .particle-badge {
    display: inline-block;
    background: #6c5ce7;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-family: 'Courier New', monospace;
}

.quantum-particle-table .vedic-name {
    color: #e17055;
    font-weight: 600;
}

.quantum-particle-table .role-text {
    font-size: 0.78rem;
    color: #636e72;
    max-width: 280px;
}

/* Concept Mapping Grid */
.concept-mapping-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.concept-row {
    display: grid;
    grid-template-columns: 180px 200px 200px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #6c5ce7;
    transition: all 0.3s;
}

.concept-row:hover {
    background: #eee5ff;
    transform: translateX(4px);
}

.concept-row .concept-ln {
    font-weight: 700;
    color: #2d3436;
}

.concept-row .concept-qt {
    color: #6c5ce7;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.concept-row .concept-vd {
    color: #e17055;
    font-style: italic;
}

.concept-row .concept-formula {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #636e72;
    background: rgba(108, 92, 231, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
}

.concept-row .concept-detail {
    font-size: 0.8rem;
    color: #636e72;
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px dashed #dfe6e9;
    display: none;
}

.concept-row.expanded .concept-detail {
    display: block;
}

.concept-row .expand-btn {
    cursor: pointer;
    color: #6c5ce7;
    font-size: 0.75rem;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .concept-row {
        grid-template-columns: 1fr;
    }
    .decoherence-timeline {
        flex-direction: column;
        align-items: center;
    }
    .decoherence-arrow {
        transform: rotate(90deg);
    }
    .entanglement-grid {
        grid-template-columns: 1fr;
    }
}

