/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16rem;
    padding: 1rem;
    background-color: #212529; /* Dark background */
    border-right: 1px solid #343a40;
    color: #f8f9fa;
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

.sidebar-heading {
    font-size: 0.9rem;
    font-weight: bold;
    color: #6c757d; /* Muted color */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
}

/* Main content styles */
.content {
    margin-left: 16rem;
    padding: 2rem;
    width: calc(100% - 16rem);
    background-color: #f4f6f9;
}

.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

/* Style for active nav links */
.nav-pills .nav-link.active {
    background-color: #1a1d20; /* Darker background for active link */
    color: #f8f9fa; /* Light text for active link */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-link {
    display: flex;
    align-items: center;
    color: #f8f9fa; /* Light text for nav links */
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}

.nav-link:hover {
    background-color: #343a40;
    color: #ffc107;
    transform: translateX(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#collapse-operations-btn {
    background: linear-gradient(to right, #ffc107, #ff8c00);
    border: none;
}

#collapse-inventory-btn {
    background: linear-gradient(to right, #28a745, #20c997);
    border: none;
}

#collapse-tools-btn {
    background: linear-gradient(to right, #0d6efd, #6f42c1);
    border: none;
}

.collapse-arrow {
    transition: transform 0.3s ease;
}

.collapse-arrow.open {
    transform: rotate(180deg);
}

/* Data table styles */
.dash-table-container .dash-spreadsheet-container {
    border: 1px solid #dee2e6;
}

.dash-table-container .dash-header {
    background-color: #f8f9fa;
    font-weight: bold;
    border-bottom: 1px solid #dee2e6;
}

.dash-table-container .dash-cell {
    padding: 8px;
    border-right: 1px solid #dee2e6;
}

/* Chart styles */
.js-plotly-plot .plotly .legend text {
    fill: #333 !important; /* Legend text color */
}

.js-plotly-plot .plotly .g-xtitle,
.js-plotly-plot .plotly .g-ytitle {
    fill: #555 !important; /* Axis title color */
}

.js-plotly-plot .plotly .xtick text,
.js-plotly-plot .plotly .ytick text {
    fill: #777 !important; /* Axis tick color */
}

.js-plotly-plot .plotly .main-svg {
    background-color: transparent !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table {
    border-collapse: collapse;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th {
    font-weight: bold;
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.dash-table-container .previous-next-container {
    float: right;
    padding-top: 10px;
}

.filters-card {
    position: relative;
    z-index: 100;
}

/* Drum Management Page Styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: bold;
}

#manage-locations-btn {
    background-color: #198754;
    border-color: #198754;
}

.status-badge {
    padding: 0.25em 0.6em;
    border-radius: 0.25rem;
    font-weight: 700;
    font-size: 75%;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.status-active {
    color: #fff;
    background-color: #28a745;
}

.status-inactive {
    color: #fff;
    background-color: #6c757d;
}
