/* Manager Settings Tabs - Dedicated Styles (v2.149) */

.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.settings-tabs::-webkit-scrollbar {
    display: none;
}

.settings-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.settings-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.settings-tab.active {
    background: var(--primary-color) !important;
    color: white !important;
}

.settings-tab-pane {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .settings-tabs {
        gap: 5px;
    }

    .settings-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Color Palette Styles */
.color-palette-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 5px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-swatch.active {
    border: 2px solid white !important;
    box-shadow: 0 0 0 3px var(--primary), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transform: scale(1.15);
    z-index: 10;
}

.color-swatch.active::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* FIX: Ensure Settings Content expands and scrolls */
#section-settings .settings-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding-bottom: 150px !important;
    /* Large padding to clear mobile bottom nav */
    height: auto !important;
    min-height: 0 !important;
}

/* Settings Card - Clean Stacking */
.settings-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px !important;
    /* Restore spacing between cards */
}

#section-settings .card-body {
    overflow-y: visible !important;
    height: auto !important;
    padding-bottom: 50px !important;
}

#section-settings .settings-tab-pane {
    padding-bottom: 20px;
}

@media (max-width: 640px) {
    #tab-qr .settings-card>div {
        grid-template-columns: 1fr !important;
    }

    .time-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .checkbox-row {
        padding: 5px 0;
    }

    .checkbox-row label[for] {
        font-size: 13px !important;
        line-height: 1.2;
    }
}

/* Checkbox Row Styling */
.checkbox-row-standard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.checkbox-row-standard:last-child {
    border-bottom: none;
}

.checkbox-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
}

.checkbox-text i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}