.ui,.fullscreen-btn {
    display: none;
}
.floating-msg {
    position: fixed;  /* Position the element relative to the viewport */
    bottom: 0;        /* Set the bottom position to 0, placing it at the bottom */
    left: 50%;        /* Set the left position to 50% */
    transform: translateX(-50%); /* Offset by half its width to center horizontally */
    z-index: 9999; /* Ensure it appears above other content */
    display: none;
    }

    .btn_background2{
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    width: 100%;
    padding:10px;
    margin-top:10px;
    color:white;
    }

    .invalid-input {
    border: 3px solid red !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    }


    .nav-scroll-container {
    flex-shrink: 0; /* Prevent nav from shrinking */
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#section-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}

.section-content {
    min-height: 100%;
}

/* Ensure form controls are responsive */
.form-control, .form-select, .btn {
    font-size: 0.9rem;
}

/* Nav improvements */
.nav-link {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.nav-link.active {
    background-color: #0d6efd;
    color: white !important;
    border-radius: 0.25rem;
}
.scroll-container {
    display: flex;
    flex-direction: column;
}
.wide-toolbar-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px 0; 
}
.toolbar-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
    min-width: max-content;
    padding: 0 1rem;
}

.toolbar-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toolbar-btn {
    white-space: nowrap;
    min-width: 100px;
}  

.node rect {
    fill-opacity: 0.9;
    shape-rendering: crispEdges;
    stroke: #000;
    stroke-width: 1.5px;
    cursor: move;
}

.node text {
    pointer-events: none;
    text-shadow: 0 1px 0 #fff;
}

.link {
    fill: none;
    stroke-opacity: 0.3;
}

.link:hover {
    stroke-opacity: 0.6;
}

.sankey-container { 
    margin: 0 auto;
    padding-left: 0 !important;
    width: 100%;
    min-height: 400px; /* Changed from height to min-height */
    height: auto; /* Allow dynamic height */
    position: relative;
}

#sankey {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Ensure minimum height */
}

.fullscreen-btn {
    position: relative;
    top: 10px;
    left: 25px;
    z-index: 9999;
}

.flow-info {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    z-index: 10000;
}

.upload-area {
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.data-table-container {
    max-height: 100px;
    overflow: auto;
}

.table th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
}

.column-selector {
    margin-bottom: 15px;
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#diagram-section {
    display: none;
}

/* Fullscreen mode */
.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: white !important;
    z-index: 9999 !important;
    padding: 0 !important;
    margin: 0 !important;
    
}

/* .container{
    overflow: auto !important;
} */



.fullscreen-mode .row {
    padding-left: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.col-12{ padding-left: 0 !important;}

.fullscreen-mode .col-12 {
    padding: 0 !important;
    max-width: 100% !important;
}

.fullscreen-mode .sankey-container {
    height: 100vh !important;
    width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box !important;
    overflow: auto !important; /* Enable scrolling on the container */
}

.fullscreen-mode #sankey {
    min-width: 2400px !important; /* Minimum width to enable scrolling on mobile */
    min-height: 2400px !important; /* Minimum height to enable scrolling on mobile */
    width: 100% !important;
    height: 100% !important;
}

.fullscreen-mode .controls-section {
    display: none;
}

.container {
    max-width: 100% !important;
}