/* Custom Dashboard Styles */

.plot-container {
    min-height: 300px;
    width: 100%;
}

/* Special height for the multi-reservoir heatmap */
#plot6.plot-container {
    height: 800px !important;
    min-height: 800px !important;
}

.tab-button {
    transition: all 0.2s ease;
}

.tab-button.active {
    background-color: white;
    color: #1f2937;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.tab-button:not(.active) {
    color: #6b7280;
}

.tab-button:not(.active):hover {
    color: #374151;
    background-color: #f3f4f6;
}


/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .plot-container {
        height: 350px !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .plot-container {
        height: 450px !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Plotly hover label transparency */
.hovertext {
    fill-opacity: 0.85 !important;
    stroke-opacity: 1 !important;
}

/* Alternative hover transparency approach */
g.hovertext > path {
    opacity: 0.85 !important;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .plot-container {
        height: auto !important;
        min-height: 400px;
    }
    
    .bg-white {
        background: white !important;
    }
    
    .shadow {
        box-shadow: none !important;
        border: 1px solid #e5e7eb;
    }
}