
/* ==========================================================
   Legacy AI Settings Cosmetic Fixes
   1) Premium display-name input styling
   2) Reduce management threshold panel excess height
   3) Restore Roulette Strategy List scrolling
   ========================================================== */

/* Display name input: black neon rounded field */
#displayNameInput,
#legacyDisplayNameInput,
.display-name-input,
input[name="displayName"] {
    background: #050505 !important;
    color: #ffffff !important;
    border: 2px solid var(--accent, #ff2d2d) !important;
    border-radius: 16px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    outline: none !important;
    box-shadow:
        0 0 10px color-mix(in srgb, var(--accent, #ff2d2d) 45%, transparent),
        inset 0 0 10px rgba(255, 45, 45, 0.10) !important;
    transition: all 0.2s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

#displayNameInput:focus,
#legacyDisplayNameInput:focus,
.display-name-input:focus,
input[name="displayName"]:focus {
    border-color: var(--accent, #ff2d2d) !important;
    box-shadow:
        0 0 16px color-mix(in srgb, var(--accent, #ff2d2d) 75%, transparent),
        inset 0 0 12px rgba(255, 45, 45, 0.16) !important;
}

#displayNameInput::placeholder,
#legacyDisplayNameInput::placeholder,
.display-name-input::placeholder,
input[name="displayName"]::placeholder {
    color: rgba(255,255,255,0.42) !important;
}

/* Save button alignment/shape beside display name */
#saveDisplayNameBtn,
.display-name-save,
button[data-action="save-display-name"] {
    border-radius: 14px !important;
    min-height: 44px !important;
    padding: 0 24px !important;
}

/* Management threshold/settings info panel: remove dead empty height */
.settings-information,
.settings-info,
.settings-summary,
#settingsInformation,
#settingsInfo,
.management-threshold-panel,
.management-threshold,
#managementThresholdPanel {
    min-height: 0 !important;
}

/* Specific right dashboard info box should size to content and scroll internally only if needed */
.settings-information .panel-body,
.settings-info .panel-body,
.settings-summary .panel-body,
#settingsInformation .panel-body,
#settingsInfo .panel-body {
    min-height: 0 !important;
    max-height: 215px !important;
    overflow-y: auto !important;
}

/* Management threshold section tighter */
.management-threshold,
.management-threshold-panel,
#managementThresholdPanel,
.strategy-thresholds,
#strategyThresholds {
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
    max-height: 190px !important;
    overflow-y: auto !important;
}

/* Prevent whole settings page from getting a scrollbar because of one oversized box */
.settings-page,
.settings-content,
.settings-main,
#settingsPage,
#settingsContent {
    min-height: 0 !important;
    overflow: hidden !important;
}

/* Internal settings panels can scroll where appropriate */
.settings-panel,
.settings-card,
.settings-tab-panel,
.tab-panel {
    min-height: 0 !important;
}

/* Roulette Strategy List: restore vertical scrolling */
#rouletteStrategyList,
.roulette-strategy-list,
.strategy-list,
.strategy-list-panel,
#strategyListPanel,
#rouletteStrategyListPanel {
    max-height: calc(100vh - 260px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 8px !important;
    min-height: 0 !important;
}

/* If list is inside a tab panel, allow it to use available height */
#roulette-strategy-list,
[data-tab="roulette-strategy-list"],
.roulette-strategy-list-tab {
    height: calc(100vh - 230px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
}

/* Restore custom scrollbar visibility in strategy list */
#rouletteStrategyList::-webkit-scrollbar,
.roulette-strategy-list::-webkit-scrollbar,
.strategy-list::-webkit-scrollbar,
.strategy-list-panel::-webkit-scrollbar,
#strategyListPanel::-webkit-scrollbar,
#rouletteStrategyListPanel::-webkit-scrollbar,
#roulette-strategy-list::-webkit-scrollbar,
[data-tab="roulette-strategy-list"]::-webkit-scrollbar,
.roulette-strategy-list-tab::-webkit-scrollbar {
    width: 8px !important;
}

#rouletteStrategyList::-webkit-scrollbar-thumb,
.roulette-strategy-list::-webkit-scrollbar-thumb,
.strategy-list::-webkit-scrollbar-thumb,
.strategy-list-panel::-webkit-scrollbar-thumb,
#strategyListPanel::-webkit-scrollbar-thumb,
#rouletteStrategyListPanel::-webkit-scrollbar-thumb,
#roulette-strategy-list::-webkit-scrollbar-thumb,
[data-tab="roulette-strategy-list"]::-webkit-scrollbar-thumb,
.roulette-strategy-list-tab::-webkit-scrollbar-thumb {
    background: var(--accent, #ff2d2d) !important;
    border-radius: 10px !important;
}

#rouletteStrategyList::-webkit-scrollbar-track,
.roulette-strategy-list::-webkit-scrollbar-track,
.strategy-list::-webkit-scrollbar-track,
.strategy-list-panel::-webkit-scrollbar-track,
#strategyListPanel::-webkit-scrollbar-track,
#rouletteStrategyListPanel::-webkit-scrollbar-track,
#roulette-strategy-list::-webkit-scrollbar-track,
[data-tab="roulette-strategy-list"]::-webkit-scrollbar-track,
.roulette-strategy-list-tab::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04) !important;
    border-radius: 10px !important;
}

<style>

/* LEGACY AI GLOBAL SCROLLBAR */
::-webkit-scrollbar{
    width:10px;
    height:10px;
}
::-webkit-scrollbar-track{
    background:#120000;
    border-radius:10px;
}
::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,#ff2a2a,#b30000);
    border-radius:10px;
    border:1px solid rgba(255,80,80,.35);
    box-shadow:0 0 10px rgba(255,0,0,.45);
}
::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(180deg,#ff4d4d,#d10000);
}

</style>
