/* ========================================================================== */
/*  BUTTONS | ACTIONS                                                         */
/* ========================================================================== */

body[data-theme-mode="dark"] .ui-button:not(.ui-button-plain),
body.gsw-standalone[data-theme-mode="dark"] .ui-button:not(.ui-button-plain) { background: var(--btn-gradient) !important; border-color: var(--primary) !important; color: #ffffff !important; box-shadow: none !important; }

body[data-theme-mode="dark"] :is(.ui-button.ui-button-plain, .ui-button-plain):not(.player-back-btn),
body.gsw-standalone[data-theme-mode="dark"] :is(.ui-button.ui-button-plain, .ui-button-plain):not(.player-back-btn) { background: #000000 !important; border-color: var(--gsw-dark-border) !important; color: #e5e7eb !important; box-shadow: none !important; }

body[data-theme-mode="dark"] :is(.ui-button.ui-button-danger, .ui-button-danger),
body.gsw-standalone[data-theme-mode="dark"] :is(.ui-button.ui-button-danger, .ui-button-danger) { background: #351515 !important; border-color: #7f1d1d !important; color: #fecaca !important; box-shadow: none !important; }

body[data-theme-mode="dark"] .ui-button-icon,
body[data-theme-mode="dark"] .ui-button-icon * { filter: none !important; opacity: 1 !important; mix-blend-mode: normal !important; color: inherit !important; fill: currentColor !important; }

body[data-theme-mode="dark"] .pw-toggle-btn:hover { background: transparent !important; color: #f8fafc !important; }
body[data-theme-mode="dark"] .modern-menu-btn :is(i, svg) { color: #000000 !important; fill: currentColor !important; }

body[data-theme-mode="dark"] #pg-player .stage-controls .vol-btn,
body[data-theme-mode="dark"] #pg-player .stage-controls .vol-btn.ui-button-icon { background: var(--gsw-dark-surface) !important; color: #e5e7eb !important; border-color: var(--gsw-dark-border) !important; box-shadow: none !important; filter: none !important; opacity: 1 !important; }

body[data-theme-mode="dark"] #pg-player .stage-controls > .ui-badge,
body.gsw-standalone[data-theme-mode="dark"] #pg-player .stage-controls > .ui-badge {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    color: #ffffff !important;
    font-family: var(--gsw-font-family) !important;
}

body[data-theme-mode="dark"] #pg-player .stage-controls .vol-btn,
body[data-theme-mode="dark"] #pg-player .stage-controls .vol-btn.ui-button-icon,
body.gsw-standalone[data-theme-mode="dark"] #pg-player .stage-controls .vol-btn,
body.gsw-standalone[data-theme-mode="dark"] #pg-player .stage-controls .vol-btn.ui-button-icon {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%) !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: 0 10px 18px -16px rgba(15, 23, 42, .55) !important;
    color: #334155 !important;
    filter: none !important;
    opacity: 1 !important;
}

body[data-theme-mode="dark"] #pg-player .stage-controls .vol-btn:hover,
body[data-theme-mode="dark"] #pg-player .stage-controls .vol-btn.ui-button-icon:hover,
body.gsw-standalone[data-theme-mode="dark"] #pg-player .stage-controls .vol-btn:hover,
body.gsw-standalone[data-theme-mode="dark"] #pg-player .stage-controls .vol-btn.ui-button-icon:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%) !important;
    background-image: none !important;
    color: #334155 !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 14px 24px -18px rgba(15, 23, 42, .45) !important;
    filter: none !important;
    opacity: 1 !important;
}

body[data-theme-mode="dark"] #pg-player .stage-controls :is(.time-val, .time-sep, .volume-text),
body.gsw-standalone[data-theme-mode="dark"] #pg-player .stage-controls :is(.time-val, .time-sep, .volume-text) {
    color: #ffffff !important;
    font-family: var(--gsw-font-family) !important;
}

body[data-theme-mode="dark"] #pg-player .stage-header .btn-back,
body.gsw-standalone[data-theme-mode="dark"] #pg-player .stage-header .btn-back {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%) !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: 0 10px 18px -16px rgba(15, 23, 42, .55) !important;
    color: #334155 !important;
}

body[data-theme-mode="dark"] #pg-player .stage-header .btn-back:hover,
body.gsw-standalone[data-theme-mode="dark"] #pg-player .stage-header .btn-back:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%) !important;
    background-image: none !important;
    color: #334155 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 14px 24px -18px rgba(15, 23, 42, .45) !important;
    filter: none !important;
}

body[data-theme-mode="dark"] #pg-player .stage-header .btn-back :is(i, svg, .btn-back-label),
body.gsw-standalone[data-theme-mode="dark"] #pg-player .stage-header .btn-back :is(i, svg, .btn-back-label) {
    color: inherit !important;
    fill: currentColor !important;
}


body[data-theme-mode="dark"] .content select:not(.ui-select-native):focus,
body[data-theme-mode="dark"].gsw-standalone select:not(.ui-select-native):focus,
body[data-theme-mode="dark"] #missingProfileModal .mpm-field select:focus {
border-color: var(--gsw-dark-border-strong) !important;
    box-shadow: 0 0 0 4px rgba(55, 55, 55, .24) !important;
    outline: none !important;
}

body[data-theme-mode="dark"] .admin-banner-actions :is(.u-search-input, .u-page-size-wrap, .u-page-size-input, .rp-filter .glass-input) { background: var(--gsw-dark-bg); border-color: var(--gsw-dark-border); color: #e5e7eb; box-shadow: none; }
body[data-theme-mode="dark"] .admin-banner-actions .u-page-size-wrap label { color: var(--gsw-dark-text); }
body[data-theme-mode="dark"] .admin-banner-actions .u-search-icon { color: var(--gsw-dark-muted); }

body[data-theme-mode="dark"] .ui-select-trigger,
body[data-theme-mode="dark"].gsw-standalone .ui-select-trigger { min-height: 48px !important; border-radius: 14px !important; background: #000000 !important; background-image: none !important; border-color: var(--gsw-dark-border) !important; color: #e5e7eb !important; box-shadow: none !important; font-weight: 700 !important; }

body[data-theme-mode="dark"] .ui-select-picker.open .ui-select-trigger,
body[data-theme-mode="dark"].gsw-standalone .ui-select-picker.open .ui-select-trigger { background: #050505 !important; border-color: var(--gsw-dark-border-strong) !important; box-shadow: 0 0 0 4px rgba(55, 55, 55, .24) !important; }

body[data-theme-mode="dark"] .ui-select-menu,
body[data-theme-mode="dark"].gsw-standalone .ui-select-menu { background: #000000 !important; border-color: var(--gsw-dark-border) !important; box-shadow: 0 22px 38px rgba(0, 0, 0, .42) !important; }

body[data-theme-mode="dark"] .ui-select-option,
body[data-theme-mode="dark"].gsw-standalone .ui-select-option { color: #e5e7eb !important; font-weight: 600 !important; }

body[data-theme-mode="dark"] :is(.ui-select-option:hover, .ui-select-option:focus-visible),
body[data-theme-mode="dark"].gsw-standalone :is(.ui-select-option:hover, .ui-select-option:focus-visible) { background: color-mix(in srgb, var(--primary) 12%, #050505 88%) !important; color: #f8fafc !important; outline: none !important; }

body[data-theme-mode="dark"] :is(.ui-select-option.is-active, .ui-select-option.active),
body[data-theme-mode="dark"].gsw-standalone :is(.ui-select-option.is-active, .ui-select-option.active) { background: color-mix(in srgb, var(--primary) 18%, #000000 82%) !important; color: color-mix(in srgb, var(--primary) 70%, #f8fafc 30%) !important; }

body[data-theme-mode="dark"] .ui-date-trigger,
body[data-theme-mode="dark"].gsw-standalone .ui-date-trigger { min-height: 48px !important; border-radius: 14px !important; background: #000000 !important; border-color: var(--gsw-dark-border) !important; color: #e5e7eb !important; box-shadow: none !important; font-weight: 700 !important; }

body[data-theme-mode="dark"] .ui-date-trigger.is-empty .ui-date-label,
body[data-theme-mode="dark"].gsw-standalone .ui-date-trigger.is-empty .ui-date-label { color: var(--gsw-dark-placeholder) !important; }

body[data-theme-mode="dark"] .ui-date-picker.open .ui-date-trigger,
body[data-theme-mode="dark"].gsw-standalone .ui-date-picker.open .ui-date-trigger { background: #050505 !important; border-color: var(--gsw-dark-border-strong) !important; box-shadow: 0 0 0 4px rgba(55, 55, 55, .24) !important; }

body[data-theme-mode="dark"] .ui-date-panel,
body[data-theme-mode="dark"].gsw-standalone .ui-date-panel { background: #000000 !important; border-color: var(--gsw-dark-border) !important; box-shadow: 0 22px 38px rgba(0, 0, 0, .42) !important; }

body[data-theme-mode="dark"] .ui-date-head strong,
body[data-theme-mode="dark"].gsw-standalone .ui-date-head strong,
body[data-theme-mode="dark"] .ui-date-day,
body[data-theme-mode="dark"].gsw-standalone .ui-date-day { color: #e5e7eb !important; }

body[data-theme-mode="dark"] .ui-date-weekdays span,
body[data-theme-mode="dark"].gsw-standalone .ui-date-weekdays span,
body[data-theme-mode="dark"] .ui-date-trigger-actions,
body[data-theme-mode="dark"].gsw-standalone .ui-date-trigger-actions { color: var(--gsw-dark-muted) !important; }

body[data-theme-mode="dark"] :is(.ui-date-nav, .ui-date-foot-btn, .ui-date-clear),
body[data-theme-mode="dark"].gsw-standalone :is(.ui-date-nav, .ui-date-foot-btn, .ui-date-clear) { background: #050505 !important; border-color: var(--gsw-dark-border) !important; color: #e5e7eb !important; }

body[data-theme-mode="dark"] :is(.ui-date-day:hover, .ui-date-day:focus-visible),
body[data-theme-mode="dark"].gsw-standalone :is(.ui-date-day:hover, .ui-date-day:focus-visible) { background: color-mix(in srgb, var(--primary) 12%, #050505 88%) !important; outline: none !important; }

body[data-theme-mode="dark"] .ui-date-day.is-muted,
body[data-theme-mode="dark"].gsw-standalone .ui-date-day.is-muted { color: #6b7280 !important; }

body[data-theme-mode="dark"] .ui-date-day.is-active,
body[data-theme-mode="dark"].gsw-standalone .ui-date-day.is-active,
body[data-theme-mode="dark"] .ui-date-foot-btn.is-primary,
body[data-theme-mode="dark"].gsw-standalone .ui-date-foot-btn.is-primary { background: color-mix(in srgb, var(--primary) 20%, #000000 80%) !important; color: color-mix(in srgb, var(--primary) 70%, #f8fafc 30%) !important; }

/* ========================================================================== */
/*  ICONS | MICRO SURFACES                                                    */
/* ========================================================================== */

body[data-theme-mode="dark"] :is(.confirm-sheet-icon, .modal-shell-head-icon, .modal-shell-icon, .e-icon-box) { background: #2f2f2f !important; border-color: #404040 !important; color: var(--gsw-dark-heading) !important; box-shadow: none !important; }
body[data-theme-mode="dark"] .modal-shell-head-icon::before { background: #2f2f2f !important; border-color: #404040 !important; }
body[data-theme-mode="dark"] :is(.confirm-sheet-icon, .modal-shell-head-icon, .modal-shell-icon, .admin-banner-decor-icon, .modal-header-decor-icon, .stat-icon-box, .d-icon-box, .rp-stat-icon, .us-icon, .e-icon-box) :is(i, svg) { color: var(--gsw-dark-heading) !important; fill: currentColor !important; }
body[data-theme-mode="dark"] .content #app :is(.stat-icon-box, .d-icon-box, .rp-stat-icon, .us-icon, .e-icon-box) { background: rgba(148, 163, 184, .20) !important; border-color: transparent !important; box-shadow: none !important; color: #ffffff !important; opacity: .92 !important; }
body[data-theme-mode="dark"] .stat-card-modern:hover .stat-icon-box { opacity: .40; }
body[data-theme-mode="dark"] :is(.stat-card-modern.tone-blue .stat-icon-box, .stat-card-modern.tone-amber .stat-icon-box, .stat-card-modern.tone-cyan .stat-icon-box) { color: #ffffff !important; }

