﻿.settings-container {
    max-width: 1500px;
    margin: 0 0 2rem 0; /* Remove 'auto' so it's left-aligned */
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Section header */
.settings-section-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1b6ec2;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* Settings table */
.settings-table {
    width: 100%;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

    .settings-table th, .settings-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.98rem;
        vertical-align: middle;
        min-width: 120px;
    }

    .settings-table th {
        background: #f5f5f5;
        color: #333;
        font-weight: 700;
        border-bottom: 1px solid #e0e0e0;
    }

    .settings-table tr:hover {
        background: #f0f4fa;
    }

    .settings-table td .form-control {
        min-width: 120px;
        font-size: 0.98rem;
        padding: 0.3rem 0.5rem;
    }

    .settings-table td .btn {
        font-size: 0.95rem;
        padding: 0.25rem 0.7rem;
    }

/* AutoPod Settings search + collapsible categories */
.settings-filter-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.settings-filter-input {
    max-width: 360px;
}

.settings-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #444;
    text-align: left;
    cursor: pointer;
}

    .settings-category-header:hover:not(:disabled) {
        background: #f0f4fa;
    }

    .settings-category-header:disabled {
        cursor: default;
        color: #444;
    }

    .settings-category-header + .settings-table {
        margin-top: 0.25rem;
    }

.settings-category-chevron {
    width: 1rem;
    color: #1b6ec2;
}

.settings-category-count {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    background: #e8e8e8;
    border-radius: 10px;
    padding: 0.05rem 0.55rem;
}

.settings-description {
    color: #666;
    font-size: 0.85rem;
    max-width: 320px;
}

.settings-success {
    color: #218838;
    font-weight: 500;
    margin-top: 0.5rem;
}

.settings-error {
    color: #c82333;
    font-weight: 500;
    margin-top: 0.5rem;
}

.settings-actions {
    margin-top: 0.7rem;
    margin-bottom: 1.2rem;
}

.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 1.5rem 0;
    border-bottom: 2px solid #e0e0e0;
}

.settings-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #1b6ec2;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.7rem 1.5rem 0.5rem 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    outline: none;
}

    .settings-tab.active,
    .settings-tab:hover {
        border-bottom: 3px solid #1b6ec2;
        color: #0d3a6b;
        background: #f7faff;
    }
