/* Guardian Visualization Engine Styles */

.enhancement-section {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.viz-section {
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.viz-section h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.viz-description {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.visualization-container {
    min-height: 200px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
    position: relative;
    overflow: hidden;
}

.loading-viz {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
    font-style: italic;
}

.error-viz {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #d32f2f;
    font-style: italic;
    background: #ffebee;
}

/* Deep Research Visualization Panel */
.deep-research-viz {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.deep-research-viz h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.deep-research-viz h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    font-weight: 600;
}

/* Chain River Visualization */
.chain-river-node {
    cursor: pointer;
    transition: all 0.2s ease;
}

.chain-river-node:hover circle {
    stroke-width: 3;
    r: 10;
}

.chain-river-node:hover text {
    font-weight: bold;
    font-size: 12px;
}

.river-legend text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    fill: #333;
}

/* Chain Details Modal */
.chain-details-modal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chain-details-modal h2,
.chain-details-modal h3,
.chain-details-modal h4 {
    margin-top: 0;
}

.chain-details-modal button {
    font-family: inherit;
    transition: all 0.2s ease;
}

.chain-details-modal button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Completeness Colors */
.completeness-high {
    color: #4caf50;
    font-weight: bold;
}

.completeness-medium {
    color: #ff9800;
    font-weight: bold;
}

.completeness-low {
    color: #f44336;
    font-weight: bold;
}

.completeness-none {
    color: #9e9e9e;
    font-weight: bold;
}

/* Animation for loading states */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading-viz {
    animation: pulse 2s infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .viz-section {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .visualization-container {
        min-height: 150px;
    }
    
    .deep-research-viz {
        width: 95% !important;
        max-width: none !important;
    }
}

/* Enhanced chain visualization specific styles */
.enhanced-chain-visualizations .card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 1px solid #d1d9e6;
}

.enhanced-chain-visualizations .heading {
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.enhanced-chain-visualizations .description {
    color: #5a6c7d;
    font-style: italic;
}

/* SVG styling for visualizations */
.visualization-container svg {
    width: 100%;
    height: auto;
}

.river-path-state-data {
    filter: drop-shadow(0 2px 4px rgba(25, 118, 210, 0.3));
}

.river-path-alabama-reference {
    filter: drop-shadow(0 2px 4px rgba(211, 47, 47, 0.3));
}

/* Tooltip styles */
.chain-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    max-width: 200px;
    word-wrap: break-word;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.active {
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.status-indicator.warning {
    background: #ff9800;
    box-shadow: 0 0 6px rgba(255, 152, 0, 0.6);
}

.status-indicator.error {
    background: #f44336;
    box-shadow: 0 0 6px rgba(244, 67, 54, 0.6);
}

.status-indicator.inactive {
    background: #9e9e9e;
}
