/**
 * PSG Tools - Pedal Steel Guitar Learning Mode Styles
 */

/* PSG Mode Body */
body.psg-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
}

/* ═══════════════════════════════════════════════════════════════════════
   PSG Learn Page - Compact Top Layout (No Side Panel)
   Everything above the fretboard to maximize fretboard space
   ═══════════════════════════════════════════════════════════════════════ */

/* Controls bar - single row */
body.psg-mode .controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 10px 15px;
    background: rgba(22, 33, 62, 0.9);
    border-radius: 10px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: center;
}

body.psg-mode .controls-bar .control-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.psg-mode .controls-bar label {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
}

body.psg-mode .controls-bar select {
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #2a2a4a;
    color: #eee;
    font-size: 0.85rem;
}

body.psg-mode .controls-bar .toggle-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    background: linear-gradient(180deg, #3a3a5a, #2a2a4a);
    border: 1px solid #555;
    border-radius: 5px;
    color: #eee;
    cursor: pointer;
}

/* Main game container - fretboard gets full width */
body.psg-mode .game-container {
    display: block;
}

/* Hide the bulky side learn panel - we'll use inline controls instead */
body.psg-mode .learn-panel {
    display: none !important;
}

/* Compact inline learning controls - replaces the side panel */
body.psg-mode .psg-inline-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: center;
}

body.psg-mode .psg-inline-controls .chord-selector-row {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

body.psg-mode .psg-inline-controls select {
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #2a2a4a;
    color: #eee;
    font-size: 0.85rem;
}

body.psg-mode .psg-inline-controls .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Info and legend as a compact bar */
body.psg-mode .psg-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 25px;
    padding: 8px 15px;
    background: rgba(0, 50, 80, 0.3);
    border-radius: 8px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

body.psg-mode .psg-info-bar .chord-name {
    font-weight: bold;
    color: #ffcc00;
    font-size: 1rem;
}

body.psg-mode .psg-info-bar .chord-notes {
    color: #ccc;
}

body.psg-mode .psg-info-bar .positions-count {
    color: #00ccff;
}

/* Color legend - inline horizontal */
body.psg-mode .color-legend {
    display: flex !important;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

body.psg-mode .color-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

body.psg-mode .color-legend .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

body.psg-mode .color-legend .legend-color.root { background: #ff6600; }
body.psg-mode .color-legend .legend-color.third { background: #00ccff; }
body.psg-mode .color-legend .legend-color.fifth { background: #cc66ff; }
body.psg-mode .color-legend .legend-color.seventh { background: #66ff66; }

/* Fretboard gets maximum space */
body.psg-mode .fretboard-container {
    width: 100%;
    min-height: 450px;
    height: calc(100vh - 280px);
}

/* Position cards - horizontal scrolling strip instead of grid */
body.psg-mode .positions-strip {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body.psg-mode .positions-strip::-webkit-scrollbar {
    height: 6px;
}

body.psg-mode .positions-strip::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

body.psg-mode .positions-strip .position-card {
    flex-shrink: 0;
    width: 70px;
    padding: 6px;
    text-align: center;
}

/* PSG Controls Bar - keep existing styles */
.psg-controls-bar {
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    align-items: center;
}

/* PSG Container */
.psg-container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

/* PSG Learn Panel */
#psgLearnModePanel {
    width: 320px;
    min-width: 280px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
}

#psgLearnModePanel h3 {
    margin: 0 0 15px 0;
    color: #ffcc00;
}

/* Note Buttons Grid */
.note-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.psg-note-btn {
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.psg-note-btn:hover {
    background: rgba(255, 102, 0, 0.3);
    border-color: #ff6600;
}

.psg-note-btn.active {
    background: #ff6600;
    border-color: #ff6600;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

/* Chord/Scale Controls */
.chord-controls,
.scale-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.chord-controls select,
.scale-controls select,
.chord-controls input {
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
}

/* PSG Fretboard */
.psg-fretboard {
    flex: 1;
    position: relative;
    min-height: 400px;
}

/* Pedal Steel Controls Panel */
.pedal-steel-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    max-width: 320px;
    z-index: 100;
}

.pedal-steel-controls .pedal-drag-handle {
    text-align: center;
    padding: 5px;
    margin-bottom: 10px;
    color: #888;
    font-size: 12px;
    cursor: move;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pedal-steel-controls .control-section {
    margin-bottom: 15px;
}

.pedal-steel-controls h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
}

/* Pedal/Lever Buttons */
.pedal-buttons,
.lever-buttons,
.combo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.psg-pedal-btn,
.psg-lever-btn {
    padding: 10px 16px;
    font-weight: bold;
    background: rgba(100, 100, 100, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.15s;
}

.psg-pedal-btn:hover,
.psg-lever-btn:hover {
    background: rgba(0, 200, 255, 0.2);
    border-color: #00ccff;
}

.psg-pedal-btn.active {
    background: #00ccff;
    border-color: #00ccff;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
}

.psg-lever-btn.active {
    background: #cc66ff;
    border-color: #cc66ff;
    color: #000;
    box-shadow: 0 0 15px rgba(200, 100, 255, 0.5);
}

.psg-combo-btn {
    padding: 8px 12px;
    font-size: 12px;
    background: rgba(255, 200, 0, 0.2);
    border: 1px solid rgba(255, 200, 0, 0.4);
    border-radius: 6px;
    color: #ffcc00;
    cursor: pointer;
}

.psg-combo-btn:hover {
    background: rgba(255, 200, 0, 0.3);
}

.psg-combo-btn.active {
    background: #ffcc00;
    color: #000;
}

/* Effect Changes Display */
.effect-changes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.effect-change {
    background: rgba(255, 102, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 102, 0, 0.4);
}

.effect-change .string-num {
    color: #ffcc00;
    font-weight: bold;
}

.effect-change .note-arrow {
    color: #00ff00;
    margin: 0 4px;
}

.no-effects {
    color: #666;
    font-style: italic;
}

/* PSG Footer */
.psg-footer {
    text-align: center;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.psg-footer a {
    color: #00ccff;
    text-decoration: none;
}

.psg-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .psg-container {
        flex-direction: column;
    }

    #psgLearnModePanel {
        width: 100%;
    }

    .pedal-steel-controls {
        position: relative;
        bottom: auto;
        right: auto;
        max-width: 100%;
        margin-top: 15px;
    }

    /* PSG Learn Mode mobile */
    body.psg-mode .controls-bar {
        padding: 8px 10px;
        gap: 6px 12px;
    }

    body.psg-mode .controls-bar .control-group {
        flex: 1 1 auto;
        min-width: 120px;
    }

    body.psg-mode .psg-inline-controls {
        padding: 8px 10px;
    }

    body.psg-mode .fretboard-container {
        min-height: 300px;
        height: calc(100vh - 320px);
    }

    body.psg-mode .psg-info-bar {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body.psg-mode .controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    body.psg-mode .controls-bar .control-group {
        justify-content: space-between;
        width: 100%;
    }

    body.psg-mode .psg-inline-controls .chord-selector-row {
        width: 100%;
    }

    body.psg-mode .psg-inline-controls select {
        flex: 1;
    }
}

/* All Chord Positions Grid */
.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding: 4px;
}

.position-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.position-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffcc00;
    transform: translateY(-2px);
}

.position-card.active {
    background: rgba(255, 204, 0, 0.2);
    border-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.position-fret {
    font-weight: bold;
    font-size: 1em;
    color: #ffcc00;
    margin-bottom: 4px;
}

.position-strings {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
}

.string-note {
    font-size: 0.7em;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.4);
}

.string-note.root { color: #ff6600; border-bottom: 2px solid #ff6600; }
.string-note.third { color: #00ccff; border-bottom: 2px solid #00ccff; }
.string-note.fifth { color: #cc66ff; border-bottom: 2px solid #cc66ff; }
.string-note.seventh { color: #66ff66; border-bottom: 2px solid #66ff66; }

.position-tones {
    font-size: 0.75em;
    color: #888;
    margin-top: 4px;
}

.section-hint {
    color: #888;
    font-size: 0.85em;
    margin-bottom: 10px;
}

/* Chord selector row with inline filter */
.chord-selector-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.chord-selector-row .filter-separator {
    color: #555;
    margin: 0 4px;
}

.chord-selector-row label {
    color: #aaa;
    font-size: 0.9em;
    white-space: nowrap;
}

.chord-selector-row .form-select-sm {
    padding: 4px 8px;
    font-size: 0.85em;
    min-width: 60px;
}

/* Positions container - stable layout */
.psg-positions-container {
    margin-top: 10px;
    min-height: 100px; /* Prevent collapse when filtering */
}

.positions-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.positions-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(30, 30, 50, 0.6);
    border-radius: 6px;
    min-height: 60px; /* Consistent row height */
}

.row-label {
    min-width: 60px;
    font-weight: bold;
    color: #ffcc00;
    padding-top: 8px;
    flex-shrink: 0;
}

.row-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.position-card {
    background: rgba(50, 50, 80, 0.8);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
    text-align: center;
}

.position-card:hover {
    background: rgba(70, 70, 110, 0.9);
    border-color: #666;
}

.position-card.active {
    background: rgba(255, 102, 0, 0.3);
    border-color: #ff6600;
}

.position-card.enhanced {
    border-color: #00ccff;
}

.position-fret {
    font-weight: bold;
    color: #fff;
    font-size: 0.95em;
}

.position-tones {
    font-size: 0.75em;
    color: #aaa;
    margin-top: 2px;
}

.added-note {
    font-size: 0.7em;
    color: #66ff66;
    margin-top: 2px;
}

/* Empty state when all filtered out */
.positions-strip:empty::after {
    content: "No positions match the current filter";
    display: block;
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.chord-selector-row select {
    flex: 1;
    min-width: 80px;
}

.chord-selector-row button {
    flex-shrink: 0;
}

/* Mobile improvements for PSG mode */
@media (max-width: 768px) {
    .psg-mode .game-container {
        flex-direction: column;
    }

    .psg-mode .learn-panel {
        width: 100%;
        max-width: none;
        order: 2;
    }

    .psg-mode .fretboard-container {
        width: 100%;
        order: 1;
        min-height: 300px;
    }

    .psg-mode .pedal-steel-controls {
        position: relative !important;
        width: 100%;
        margin-top: 10px;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .positions-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        max-height: 200px;
    }
}

/* Ensure pedal controls don't overlap fretboard on mobile */
@media (max-width: 768px) {
    .psg-mode #fretboardContainer {
        margin-bottom: 0;
    }

    .psg-mode .pedal-steel-controls.visible {
        position: static !important;
        order: 3;
    }
}

/* Pedal Suggestions in Position Cards */
.pedal-suggestions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8em;
}

.suggestion-label {
    color: #ffcc00;
    margin-right: 5px;
}

.suggestion-combo {
    display: inline-block;
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
    padding: 2px 6px;
    border-radius: 3px;
    margin: 2px;
    cursor: help;
}

/* Detailed Suggestions Panel */
.pedal-suggestions-detail {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.suggestion-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-row:last-child {
    border-bottom: none;
}

.suggestion-icon {
    font-size: 1.2em;
}

.suggestion-name {
    font-weight: bold;
    color: #00ccff;
    min-width: 50px;
}

.suggestion-desc {
    color: #aaa;
    font-size: 0.9em;
}


/* ═══════════════════════════════════════════════════════════════════════
   MULTI-ROW POSITIONS LAYOUT (Root + Pedal/Lever Combinations)
   ═══════════════════════════════════════════════════════════════════════ */

/* Container for all position rows */
body.psg-mode .positions-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
    max-height: 220px;
    overflow-y: auto;
}

/* Each row (Open, A, A+B, etc.) */
.positions-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.positions-row .row-label {
    min-width: 50px;
    font-size: 0.8rem;
    color: #ffcc00;
    font-weight: bold;
    text-align: right;
    flex-shrink: 0;
}

.positions-row .row-cards {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0;
    flex: 1;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.positions-row .row-cards::-webkit-scrollbar {
    height: 3px;
}

.positions-row .row-cards::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

/* Position cards */
.positions-row .position-card {
    flex-shrink: 0;
    min-width: 55px;
    padding: 5px 6px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.positions-row .position-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffcc00;
}

.positions-row .position-card.active {
    background: rgba(255, 204, 0, 0.25);
    border-color: #ffcc00;
    box-shadow: 0 0 6px rgba(255, 204, 0, 0.4);
}

/* Enhanced positions (where pedal/lever adds tones) */
.positions-row .position-card.enhanced {
    border-color: rgba(0, 255, 100, 0.4);
    background: rgba(0, 255, 100, 0.08);
}

.positions-row .position-card.enhanced:hover {
    border-color: #00ff66;
    background: rgba(0, 255, 100, 0.15);
}

.positions-row .position-card.enhanced.active {
    background: rgba(0, 255, 100, 0.25);
    border-color: #00ff66;
    box-shadow: 0 0 8px rgba(0, 255, 100, 0.5);
}

/* Added note indicator */
.position-card .added-note {
    font-size: 0.6rem;
    color: #00ff66;
    background: rgba(0, 255, 100, 0.15);
    padding: 1px 3px;
    border-radius: 2px;
    margin-top: 2px;
}

/* Compact fret and tone text */
.positions-row .position-fret {
    font-weight: bold;
    font-size: 0.8em;
    color: #ffcc00;
}

.positions-row .position-tones {
    font-size: 0.65em;
    color: #777;
    margin-top: 1px;
}

/* "More Options" separator row */
.positions-row .row-label:contains('──') {
    color: #666;
    font-weight: normal;
    font-size: 0.7rem;
}

/* Discovery section styling */
.positions-row:has(.row-label:contains('More')) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
    margin-top: 4px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body.psg-mode .positions-strip {
        max-height: 180px;
    }

    .positions-row .row-label {
        min-width: 40px;
        font-size: 0.75rem;
    }

    .positions-row .position-card {
        min-width: 50px;
        padding: 4px 5px;
    }

    .positions-row .position-fret {
        font-size: 0.75em;
    }
}

.positions-row .position-tones {
    font-size: 0.7em;
    color: #888;
    margin-top: 2px;
}

/* Row type indicators via left border */
.positions-row:first-child .row-cards .position-card {
    border-left: 3px solid #ff6600; /* Root positions - orange */
}

.positions-row:not(:first-child) .row-cards .position-card {
    border-left: 3px solid #00ccff; /* Pedal/lever positions - cyan */
}

.positions-row:not(:first-child) .row-cards .position-card.enhanced {
    border-left: 3px solid #00ff66; /* Enhanced positions - green */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body.psg-mode .positions-strip {
        max-height: 200px;
    }

    .positions-row .position-card {
        min-width: 55px;
        padding: 5px 6px;
    }

    .positions-row .row-label {
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PSG PREMIUM LOCK STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Premium lock banner */
.psg-premium-banner {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 100, 0, 0.1));
    border: 1px solid rgba(255, 165, 0, 0.4);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.psg-premium-banner .lock-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffcc00;
    font-size: 0.95em;
}

.psg-premium-banner .lock-icon {
    font-size: 1.3em;
}

.psg-premium-banner .unlock-btn {
    background: linear-gradient(135deg, #ff9500, #ff6600);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.psg-premium-banner .unlock-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 100, 0, 0.4);
}

/* Locked control state */
.psg-controls-locked {
    position: relative;
}

.psg-controls-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    pointer-events: none;
    z-index: 10;
}

.psg-controls-locked .locked-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    text-align: center;
    color: #fff;
    pointer-events: none;
}

.psg-controls-locked .locked-overlay .lock-icon {
    font-size: 2em;
    margin-bottom: 5px;
    color: #ffcc00;
}

.psg-controls-locked .locked-overlay .lock-text {
    font-size: 0.85em;
    opacity: 0.9;
}

/* Locked buttons */
.psg-locked-btn {
    position: relative;
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

.psg-locked-btn::before {
    content: '🔒';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7em;
    z-index: 5;
}

/* Locked selects/inputs */
.psg-locked-control {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* Unlock prompt tooltip on hover */
.psg-locked-tooltip {
    position: relative;
}

.psg-locked-tooltip::after {
    content: '🔒 Premium Feature - Subscribe to unlock';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffcc00;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.psg-locked-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.positions-strip-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.positions-strip-controls label {
    color: #aaa;
    font-size: 0.85em;
    white-space: nowrap;
}

.positions-strip-controls .form-select {
    padding: 4px 8px;
    font-size: 0.85em;
    min-width: 120px;
}

.empty-filter-message {
    padding: 20px;
    text-align: center;
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.1);
    border: 1px dashed #ffcc00;
    border-radius: 6px;
    font-size: 0.9em;
}

