.dataTables_filter {
    margin-bottom: 20px;
}


.topbar {
    background-color: #f0fbfd;
    color: black;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    gap: 1px;
}

.tab {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap; 
    text-align: center;
    position: relative;
    flex: 1 1 auto;
    min-width: min-content;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 0.5px solid black;
}

.tab:hover {
    background-color: #C3F1F7;
}

.tab.active {
    background-color: #C3F1F7;
    font-weight: bold;
}

/* Visual indicator for active tab */
.tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: white;
}

/* Content area styling */
.content {
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    min-height: 300px;
}

/* Fixed topbar styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.content-container {
    margin-top: 30px; /* Default space for topbar */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .tab {
        padding: 10px 12px;
        font-size: 14px;
        flex: 1 1 200px; /* Flexible but with minimum width */
    }

    .content-container {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .tab {
        flex: 1 1 150px; /* Smaller minimum width */
        padding: 8px 10px;
    }

    .content-container {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .tab {
        flex: 1 1 120px;
        font-size: 12px;
        padding: 6px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media (max-width: 360px) {
        .tab {
            flex: 1 1 100px;
        }
    }

    .content-container {
        margin-top: 30px;
    }
}

/* Special case for very wide mobile devices in portrait */
@media (max-width: 480px) and (min-aspect-ratio: 1/1) {
    .tab {
        flex: 1 1 80px;
    }
}
