/* Grid Styles */
body {
    font-family: 'Montserrat', sans-serif;
}

.invalid-value {
    background-color: #ffebee !important;
    border: 1px solid #ef5350 !important;
}

.number-cell {
    text-align: right;
}

.hover-expand-button:hover {
    transform: scale(1.1); /* Expands by 10% */
}
.hover-expand-button {
    transition: transform 0.2s ease-in-out;
}

.ag-theme-alpine .ag-sticky-bottom {
  bottom: 0px !important;
}


#plant-commissioning-date input {
    background-color: #f5f5f5 !important;
    border: none !important;
}

/* Additional custom CSS that can be added to your application */

/* Add this to your existing CSS or create a new CSS file */
.plot-section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Remove hover effect that might cause layout shifts */
.plot-section:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Improve scroll behavior */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Make sure graphs are properly sized */
.js-plotly-plot {
    width: 100% !important;
}

/* Fix for common graph sizing issues */
.plot-container.plotly, .main-svg {
    width: 100% !important;
}

/* Make each section act as a viewport */
body {
    scroll-snap-type: y mandatory;
}

.plot-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Adjust grid containers for better fit */
.ag-theme-alpine {
    --ag-grid-size: 4px;
    --ag-font-size: 12px;
}

/* Navigation helpers */
.section-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 136, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-nav-dot.active {
    background-color: rgb(255, 136, 0);
    transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .plot-section {
        height: 100% !important;
        margin-bottom: 1rem;
    }

    .plot-section h2, .plot-section h3 {
        font-size: 1rem;
    }
}

/* Print styles for better reports */
@media print {
    .plot-section {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none !important;
        height: auto !important;
    }

    .plot-section:hover {
        transform: none;
    }
}
/* Center the modal container */
.centered-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1050 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto; /* Make the content scrollable if needed */
}

/* Center the modal dialog within the container */
.centered-modal .modal-dialog {
    margin: auto !important;
    width: 90% !important; /* Make it responsive */
    max-width: 800px !important; /* Optional: Limit max width */
    height: auto !important; /* Let the height adapt to content */
    max-height: 80vh !important; /* Make sure it doesn't overflow */
    transform: none !important; /* Disable Bootstrap's default transform */
}

/* Ensure the backdrop covers the entire viewport */
.centered-modal .modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1040 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}
