/* TableReady Settings Tabs CSS */
:root {
    --settings-primary-color: #28a745;
    --settings-background-color: #1A8754;
}

/* Settings Tabs Horizontal Layout */
.settings-tabs-wrapper {
    width: 100%;
    position: relative;
    overflow: visible;
    margin-bottom: 1.5rem;
}

.settings-tabs-horizontal {
    background-color: var(--settings-background-color);
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem;
    width: 100%;
    border-radius: 0.5rem;
}

.settings-tabs-horizontal::-webkit-scrollbar {
    display: none;
}

.settings-tab-item {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.75rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.settings-tab-item:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.settings-tab-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    position: relative;
    font-weight: 600;
}

.settings-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 25%;
    right: 25%;
    height: 2px;
    background-color: white;
    border-radius: 1px;
}

.settings-tab-item i {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.9);
}

.settings-tab-item:hover i {
    color: white;
}

.settings-tab-item.active i {
    color: white;
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
    .settings-tabs-wrapper {
        width: 100%;
        overflow: visible;
        margin-bottom: 1rem;
    }
    
    .settings-tabs-horizontal {
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem;
        scroll-snap-type: x proximity;
        position: relative;
    }
    
    .settings-tab-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        flex-shrink: 0;
        white-space: nowrap;
        scroll-snap-align: start;
    }
    
    .settings-tab-item i {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }
    
    /* Ensure the last item has padding on mobile */
    .settings-tabs-horizontal::after {
        content: "";
        flex: 0 0 0.5rem;
        display: inline-block;
    }
}