/**
 * Edelmetall-Vault: Light Theme
 *
 * Helles Design für das Portfolio-Dashboard
 * 
 * @package EdelmetallVault
 * @since   1.2.0
 * @version 1.5.6 - Einheitliche Dashboard-Karten, Chart-Legend, Performance-Badge
 */

/* ==========================================================================
   Light Theme Override
   ========================================================================== */

.foursys-vault[data-theme="light"] {
    /* Hintergrund-Farben */
    --foursys-vault-bg-dark: #F5F5F7;
    --foursys-vault-bg-card: #FFFFFF;
    --foursys-vault-bg-input: #F0F0F2;
    --foursys-vault-bg-hover: #E8E8EA;
    
    /* Text-Farben */
    --foursys-vault-text-primary: #1D1D1F;
    --foursys-vault-text-secondary: #6E6E73;
    --foursys-vault-text-muted: #8E8E93;
    
    /* Border-Farben */
    --foursys-vault-border: #D2D2D7;
    --foursys-vault-border-focus: var(--foursys-vault-gold-dark);
    
    /* Scrollbar */
    --foursys-vault-scrollbar-track: transparent;
    --foursys-vault-scrollbar-thumb: #C7C7CC;
    --foursys-vault-scrollbar-thumb-hover: #AEAEB2;
    
    /* Update v1.2.9: Korrigierte Goldtöne */
    --foursys-vault-gold: #bda87c;
    --foursys-vault-gold-light: #e7d38d;
    --foursys-vault-gold-dark: #a07f3d;
    --foursys-vault-gold-gradient: linear-gradient(135deg, #e7d38d 0%, #a07f3d 100%);
    
    /* Status-Farben (leicht gedämpft) */
    --foursys-vault-success: #34A853;
    --foursys-vault-warning: #EA8600;
    --foursys-vault-error: #EA4335;
}

/* ==========================================================================
   Main Container Background
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-main-content {
    background: var(--foursys-vault-bg-dark) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-page-container {
    background: var(--foursys-vault-bg-dark) !important;
}

/* ==========================================================================
   Sidebar Anpassungen
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-sidebar {
    background: #FFFFFF !important;
    border-right: 1px solid var(--foursys-vault-border) !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

.foursys-vault[data-theme="light"] .foursys-vault-sidebar__brand {
    border-bottom: 1px solid var(--foursys-vault-border);
    color: var(--foursys-vault-text-primary);
}

/* Update v1.2.7: Logo-Icon mit kräftigerem Goldton */
.foursys-vault[data-theme="light"] .foursys-vault-sidebar__brand svg {
    stroke: #bda87c !important;
    color: #bda87c !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-sidebar__title {
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-nav__item {
    color: var(--foursys-vault-text-secondary) !important;
    background: transparent !important;
    position: relative;
}

.foursys-vault[data-theme="light"] .foursys-vault-nav__item:hover {
    background: var(--foursys-vault-bg-hover) !important;
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-nav__item--active {
    background: rgba(189, 168, 124, 0.1) !important;
    color: #bda87c !important;
    /* Update v1.2.7: Kräftigerer Goldton */
    border-right: 3px solid #bda87c !important;
}

/* Update v1.2.7: Aktiver Menüpunkt SVG-Icon */
.foursys-vault[data-theme="light"] .foursys-vault-nav__item--active svg {
    stroke: #bda87c !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-nav__item--lock {
    background: transparent !important;
    border-top: 1px solid var(--foursys-vault-border) !important;
    color: var(--foursys-vault-text-secondary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-nav__item--lock:hover {
    background: var(--foursys-vault-bg-hover) !important;
    color: var(--foursys-vault-text-primary) !important;
}

/* ==========================================================================
   Header Anpassungen
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--foursys-vault-border) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.foursys-vault[data-theme="light"] .foursys-vault-header__title {
    color: var(--foursys-vault-text-primary) !important;
}

/* ==========================================================================
   Header Select Dropdowns (Zeitraum, Währung) - CRITICAL FIX v1.2.1
   ========================================================================== */

/* Update v1.2.7: Select-Dropdowns mit kräftigerem Goldton */
.foursys-vault[data-theme="light"] .foursys-vault-select {
    background-color: var(--foursys-vault-bg-input) !important;
    border: 1px solid var(--foursys-vault-border) !important;
    border-style: solid !important;
    color: #bda87c !important;
    outline: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bda87c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-select:hover {
    border-color: #bda87c !important;
    background-color: rgba(189, 168, 124, 0.05) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-select:focus {
    border-color: #bda87c !important;
    box-shadow: 0 0 0 2px rgba(189, 168, 124, 0.15) !important;
    outline: none !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-select option {
    background: #FFFFFF !important;
    color: var(--foursys-vault-text-primary) !important;
}

/* ==========================================================================
   Panel Anpassungen
   ========================================================================== */

/* Update v1.5.6: Dashboard-Panels einheitlich wie Settings-Karten (kein Hover) */
.foursys-vault[data-theme="light"] .foursys-vault-panel {
    background: #FFFFFF !important;
    border: 1px solid var(--foursys-vault-border) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border-radius: var(--foursys-vault-radius-lg) !important;
}

/* Update v1.5.6: Kein Hover-Effekt auf Dashboard-Panels */
.foursys-vault[data-theme="light"] #em-vault-page-dashboard .foursys-vault-panel:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* ==========================================================================
   Stats/Hero Panels (Gesamtwert, Investiert, Performance) - FIX v1.2.1
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-stat-card {
    background: #FFFFFF !important;
    border: 1px solid var(--foursys-vault-border) !important;
}

/* Update v1.2.7: Gesamtwert-Karte (Primary) - Gradient-Hintergrund mit 2px Goldrahmen */
.foursys-vault[data-theme="light"] .foursys-vault-stat-card--primary,
.foursys-vault[data-theme="light"] .foursys-vault-grid-3 > .foursys-vault-stat-card:first-child,
.foursys-vault[data-theme="light"] .foursys-vault-stats > div:first-child {
    background: linear-gradient(90deg, #ffffff 0%, #ede8dd 100%) !important;
    border: 2px solid #bda87c !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-stat-card--primary .foursys-vault-stat-card__label,
.foursys-vault[data-theme="light"] .foursys-vault-grid-3 > .foursys-vault-stat-card:first-child .foursys-vault-stat-card__label {
    color: var(--foursys-vault-text-secondary) !important;
}

/* Update v1.2.7: Gesamtwert mit kräftigerem Goldton #bda87c */
.foursys-vault[data-theme="light"] .foursys-vault-stat-card--primary .foursys-vault-stat-card__value,
.foursys-vault[data-theme="light"] .foursys-vault-grid-3 > .foursys-vault-stat-card:first-child .foursys-vault-stat-card__value {
    color: #bda87c !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-stat-card__label {
    color: var(--foursys-vault-text-secondary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-stat-card__value {
    color: var(--foursys-vault-text-primary) !important;
}

/* ==========================================================================
   Storage Items (Lagerorte) - CRITICAL FIX v1.2.1
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-storage-item {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid var(--foursys-vault-border) !important;
}

.foursys-vault[data-theme="light"] .foursys-storage-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: var(--foursys-vault-gold) !important;
}

.foursys-vault[data-theme="light"] .foursys-storage-item__bar {
    background: rgba(0, 0, 0, 0.08) !important;
}

.foursys-vault[data-theme="light"] .foursys-storage-item__name,
.foursys-vault[data-theme="light"] .foursys-storage-item__value {
    color: var(--foursys-vault-text-primary) !important;
}

/* Storage Cards (Lagerorte-Seite) */
.foursys-vault[data-theme="light"] .foursys-storage-card {
    background: #FFFFFF !important;
    border: 1px solid var(--foursys-vault-border) !important;
}

.foursys-vault[data-theme="light"] .foursys-storage-card:hover {
    border-color: var(--foursys-vault-gold) !important;
    box-shadow: 0 4px 12px rgba(154, 123, 79, 0.12) !important;
}

/* ==========================================================================
   Form-Elemente
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-input,
.foursys-vault[data-theme="light"] .foursys-form__input,
.foursys-vault[data-theme="light"] .foursys-form__select,
.foursys-vault[data-theme="light"] .foursys-form__textarea {
    background: var(--foursys-vault-bg-input) !important;
    border: 1px solid var(--foursys-vault-border) !important;
    border-style: solid !important;
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-input:focus,
.foursys-vault[data-theme="light"] .foursys-form__input:focus,
.foursys-vault[data-theme="light"] .foursys-form__select:focus,
.foursys-vault[data-theme="light"] .foursys-form__textarea:focus {
    border-color: var(--foursys-vault-gold) !important;
    box-shadow: 0 0 0 3px rgba(154, 123, 79, 0.15) !important;
    outline: none !important;
}

/* Select Arrow für Light Theme */
.foursys-vault[data-theme="light"] .foursys-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A7B4F' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-btn--primary {
    background: var(--foursys-vault-gold-gradient) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 4px rgba(154, 123, 79, 0.2);
}

.foursys-vault[data-theme="light"] .foursys-vault-btn--primary:hover {
    box-shadow: 0 4px 8px rgba(154, 123, 79, 0.3);
}

.foursys-vault[data-theme="light"] .foursys-vault-btn--secondary {
    background: var(--foursys-vault-bg-input) !important;
    color: var(--foursys-vault-text-primary) !important;
    border: 1px solid var(--foursys-vault-border) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-btn--secondary:hover {
    background: var(--foursys-vault-bg-hover) !important;
}

/* ==========================================================================
   Charts Anpassungen
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-chart-container {
    background: #FFFFFF !important;
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-tabs__tab {
    color: var(--foursys-vault-text-secondary) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-tabs__tab:hover {
    background: var(--foursys-vault-bg-hover) !important;
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-tabs__tab--active {
    background: rgba(154, 123, 79, 0.1) !important;
    color: var(--foursys-vault-gold-dark) !important;
    border-color: var(--foursys-vault-gold) !important;
}

/* ==========================================================================
   Bestand-Cards (Holdings)
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-holding-card {
    background: #FFFFFF !important;
    border: 1px solid var(--foursys-vault-border) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-holding-card:hover {
    border-color: var(--foursys-vault-gold) !important;
    box-shadow: 0 4px 12px rgba(154, 123, 79, 0.12) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-holding__name,
.foursys-vault[data-theme="light"] .foursys-vault-holding__value {
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-holding__weight {
    color: var(--foursys-vault-text-secondary) !important;
}

/* ==========================================================================
   Live-Kurse Box
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-live-rates {
    background: #FFFFFF !important;
    border: 1px solid var(--foursys-vault-border) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-live-rates__header {
    border-bottom: 1px solid var(--foursys-vault-border) !important;
}

/* ==========================================================================
   Modal Anpassungen
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-modal__content,
.foursys-vault[data-theme="light"] .foursys-modal__content {
    background: #FFFFFF !important;
    border: 1px solid var(--foursys-vault-border) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.foursys-vault[data-theme="light"] .foursys-vault-modal__header,
.foursys-vault[data-theme="light"] .foursys-modal__header {
    border-bottom: 1px solid var(--foursys-vault-border) !important;
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-modal__footer,
.foursys-vault[data-theme="light"] .foursys-modal__footer {
    border-top: 1px solid var(--foursys-vault-border) !important;
    background: var(--foursys-vault-bg-input) !important;
}

/* ==========================================================================
   Aktivitäten/Transaktionen Liste
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-transaction-item {
    border-bottom: 1px solid var(--foursys-vault-border) !important;
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-transaction-item:hover {
    background: var(--foursys-vault-bg-hover) !important;
}

/* ==========================================================================
   Einstellungs-Seite Styles
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-settings-section {
    background: #FFFFFF !important;
    border: 1px solid var(--foursys-vault-border) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-settings-section__header {
    border-bottom: 1px solid var(--foursys-vault-border) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-settings-section__title {
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-theme-option {
    background: var(--foursys-vault-bg-input) !important;
    border: 2px solid var(--foursys-vault-border) !important;
    border-style: solid !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-theme-option:hover {
    border-color: var(--foursys-vault-gold-light) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-theme-option--active {
    border-color: var(--foursys-vault-gold) !important;
    box-shadow: 0 0 0 3px rgba(154, 123, 79, 0.15) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-settings-label {
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-settings-hint {
    color: var(--foursys-vault-text-secondary) !important;
}

/* ==========================================================================
   Info-Box und Hinweise
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-info-box {
    background: rgba(154, 123, 79, 0.08) !important;
    border: 1px solid rgba(154, 123, 79, 0.2) !important;
    color: var(--foursys-vault-text-primary) !important;
}

/* ==========================================================================
   Tooltips
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-tooltip {
    background: var(--foursys-vault-text-primary) !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   Dropdown-Menüs
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-form__product-dropdown,
.foursys-vault[data-theme="light"] .foursys-form__storage-dropdown,
.foursys-vault[data-theme="light"] .foursys-form__autocomplete-dropdown {
    background: #FFFFFF !important;
    border: 1px solid var(--foursys-vault-border) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.foursys-vault[data-theme="light"] .foursys-form__product-item:hover,
.foursys-vault[data-theme="light"] .foursys-form__storage-item:hover,
.foursys-vault[data-theme="light"] .foursys-form__autocomplete-item:hover {
    background: var(--foursys-vault-bg-hover) !important;
}

/* ==========================================================================
   Sparkline/Mini-Charts
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-sparkline {
    stroke: var(--foursys-vault-gold) !important;
}

/* ==========================================================================
   Toggle Switch - CRITICAL FIX v1.2.1
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-toggle__slider {
    background-color: #D2D2D7 !important;
    border: none !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-toggle__slider::before {
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.foursys-vault[data-theme="light"] .foursys-vault-toggle input:checked + .foursys-vault-toggle__slider {
    background-color: var(--foursys-vault-gold) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-toggle input:checked + .foursys-vault-toggle__slider::before {
    background-color: #FFFFFF !important;
}

/* ==========================================================================
   Export Cards
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-export-card {
    background: var(--foursys-vault-bg-input) !important;
    border: 1px solid var(--foursys-vault-border) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-export-card:hover {
    border-color: var(--foursys-vault-gold) !important;
    background: var(--foursys-vault-bg-hover) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-export-card__title {
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-export-card__description {
    color: var(--foursys-vault-text-secondary) !important;
}

/* ==========================================================================
   Widget Containers
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-widget-container {
    color: var(--foursys-vault-text-primary) !important;
}

/* ==========================================================================
   Panel Titles
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-panel__title {
    color: var(--foursys-vault-text-primary) !important;
}

/* ==========================================================================
   Chart Legend Labels - CRITICAL FIX v1.2.3
   Update v1.2.4: Explizites Styling für Chart.js Legend
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-panel canvas + div,
.foursys-vault[data-theme="light"] .foursys-vault-chart-container + div {
    color: var(--foursys-vault-text-primary) !important;
}

/* Chart.js generierte Legend-Items - Direkte Canvas-Legend */
.foursys-vault[data-theme="light"] [class*="chartjs-legend"] {
    color: var(--foursys-vault-text-primary) !important;
}

/* Chart.js Legend Text explizit überschreiben */
.foursys-vault[data-theme="light"] canvas {
    color: var(--foursys-vault-text-primary) !important;
}

/* Legend-Container über dem Chart */
.foursys-vault[data-theme="light"] .foursys-vault-panel--rates .chartjs-legend,
.foursys-vault[data-theme="light"] .foursys-vault-panel--rates ul,
.foursys-vault[data-theme="light"] .foursys-vault-panel--rates li {
    color: var(--foursys-vault-text-primary) !important;
}

/* Allocation Legend (Donut-Chart) */
.foursys-vault[data-theme="light"] .foursys-vault-allocation__name {
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-allocation__percent {
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-allocation__total {
    color: var(--foursys-vault-text-primary) !important;
}

/* ==========================================================================
   Bestände/Holdings Cards - CRITICAL FIX v1.2.3
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-holding {
    background: var(--foursys-vault-bg-input) !important;
    border: 1px solid var(--foursys-vault-border) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-holding:hover {
    background: var(--foursys-vault-bg-hover) !important;
    border-color: var(--foursys-vault-gold) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-holding__name {
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-holding__weight {
    color: var(--foursys-vault-text-secondary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-holding__value {
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-holding__bar {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* Update v1.2.7: Gold-Name mit kräftigerem Goldton */
.foursys-vault[data-theme="light"] .foursys-vault-holding__name--xau { 
    color: #bda87c !important; 
}
.foursys-vault[data-theme="light"] .foursys-vault-holding__name--xag { 
    color: #707070 !important; 
}
.foursys-vault[data-theme="light"] .foursys-vault-holding__name--xpt { 
    color: #606060 !important; 
}
.foursys-vault[data-theme="light"] .foursys-vault-holding__name--xpd { 
    color: #505060 !important; 
}

/* ==========================================================================
   Activities Holdings Sidebar
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-activities-holding {
    background: var(--foursys-vault-bg-input) !important;
    border: 1px solid var(--foursys-vault-border) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-activities-holding:hover {
    background: var(--foursys-vault-bg-hover) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-activities-holding__name {
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-activities-holding__weight {
    color: var(--foursys-vault-text-secondary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-activities-holding__value {
    color: var(--foursys-vault-text-primary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-activities-holding__bar {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   Au/Ag Ratio Badge
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-ratio-badge {
    background: var(--foursys-vault-bg-input) !important;
    color: var(--foursys-vault-text-primary) !important;
    border: 1px solid var(--foursys-vault-border) !important;
}

/* ==========================================================================
   Update v1.3.0: Gold-Elemente mit korrektem Gradient (#e7d38d → #a07f3d)
   ========================================================================== */

/* Kleiner Gold-Metall-Punkt (10px) */
.foursys-vault[data-theme="light"] .foursys-metal-dot--xau {
    background: linear-gradient(135deg, #e7d38d 0%, #a07f3d 100%) !important;
    box-shadow: none !important;
}

/* Großer Gold-Punkt (32px) in Bestands-Karten */
.foursys-vault[data-theme="light"] .foursys-vault-holding__icon--xau {
    background: linear-gradient(135deg, #e7d38d 0%, #a07f3d 100%) !important;
    box-shadow: none !important;
}

/* Activities Holding Icon */
.foursys-vault[data-theme="light"] .foursys-vault-activities-holding__icon--xau {
    background: linear-gradient(135deg, #e7d38d 0%, #a07f3d 100%) !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Update v1.3.1: Portfolio-Verteilung (1/3) + Letzte Aktivitäten (2/3) Layout
   ========================================================================== */

/* Grid mit Portfolio-Verteilung und Letzte Aktivitäten: 1/3 zu 2/3 */
.foursys-vault[data-theme="light"] .foursys-vault-grid-2:has(.foursys-vault-panel--allocation) {
    grid-template-columns: 1fr 2fr !important;
}

/* Fallback für Browser ohne :has() Support - über spezifische Panel-Klassen */
@supports not selector(:has(*)) {
    .foursys-vault[data-theme="light"] .foursys-vault-panel--allocation {
        grid-column: 1 / 2;
    }
    .foursys-vault[data-theme="light"] .foursys-vault-panel--transactions {
        grid-column: 2 / 3;
    }
}

/* Mobile: Zurück zu 1-spaltig */
@media (max-width: 768px) {
    .foursys-vault[data-theme="light"] .foursys-vault-grid-2:has(.foursys-vault-panel--allocation) {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Update v1.5.3: Vermögensrechner Input dunkel + Login Placeholder dunkel
   ========================================================================== */

/* Vermögensrechner: Zahlen im Input dunkel */
.foursys-vault[data-theme="light"] .foursys-wealth-calculator__price-input {
    color: var(--foursys-vault-text-primary) !important;
}

/* Vermögensrechner: Währungssymbol dunkel */
.foursys-vault[data-theme="light"] .foursys-wealth-calculator__price-currency {
    color: var(--foursys-vault-text-secondary) !important;
}

/* Login: Placeholder dunkel */
.foursys-vault[data-theme="light"] .em-vault-auth__field input::placeholder {
    color: #6E6E73 !important;
    opacity: 1 !important;
}

/* Login: Input Text dunkel */
.foursys-vault[data-theme="light"] .em-vault-auth__field input {
    color: #1D1D1F !important;
}

/* Unlock-Screen: Input + Placeholder dunkel */
.foursys-vault[data-theme="light"] .foursys-vault-unlock__input {
    color: #1D1D1F !important;
    -webkit-text-fill-color: #1D1D1F !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-unlock__input::placeholder {
    color: #6E6E73 !important;
    opacity: 1 !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-unlock__input::-webkit-input-placeholder {
    color: #6E6E73 !important;
    opacity: 1 !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-unlock__input::-moz-placeholder {
    color: #6E6E73 !important;
    opacity: 1 !important;
}

/* ==========================================================================
   Update v1.5.6: Chart.js Legend Labels IMMER dunkel
   ========================================================================== */

/* Metall-Kursentwicklung: Legend Labels dunkel (alle möglichen Selektoren) */
.foursys-vault[data-theme="light"] .foursys-vault-panel--chart canvas + ul li,
.foursys-vault[data-theme="light"] .foursys-vault-panel--chart .chartjs-legend li,
.foursys-vault[data-theme="light"] .foursys-vault-panel--chart [class*="legend"] li,
.foursys-vault[data-theme="light"] .foursys-vault-panel--chart ul li span,
.foursys-vault[data-theme="light"] [class*="chartjs-legend"] li,
.foursys-vault[data-theme="light"] [class*="chartjs-legend"] span {
    color: #1D1D1F !important;
}

/* Generischer Fallback für alle Chart-Container Legend-Labels */
.foursys-vault[data-theme="light"] .foursys-vault-chart-container + ul li,
.foursys-vault[data-theme="light"] .foursys-vault-chart-container ul li,
.foursys-vault[data-theme="light"] #em-vault-comparison + ul li {
    color: #1D1D1F !important;
}

/* ==========================================================================
   Update v1.5.6: Performance-Badge mit farbiger Hinterlegung
   ========================================================================== */

/* Performance-Badge (dritte Stat-Card) - Grün bei Gewinn */
.foursys-vault[data-theme="light"] .foursys-vault-stats__badge.positive {
    background: rgba(52, 168, 83, 0.15) !important;
    color: var(--foursys-vault-success) !important;
}

/* Performance-Badge - Rot bei Verlust */
.foursys-vault[data-theme="light"] .foursys-vault-stats__badge.negative {
    background: rgba(234, 67, 53, 0.15) !important;
    color: var(--foursys-vault-error) !important;
}

/* ==========================================================================
   Update v1.5.6: Stat-Cards einheitlich wie Settings-Karten
   Update v1.5.9: Primary-Card (Gesamtwert) ausgenommen
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-stats__card:not(.foursys-vault-stats__card--primary) {
    background: #FFFFFF !important;
    border: 1px solid var(--foursys-vault-border) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* ==========================================================================
   Update v1.6.10: Unlock/Login-Required Screen Light Theme
   ========================================================================== */

.foursys-vault[data-theme="light"] .foursys-vault-unlock {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-unlock__title {
    color: var(--foursys-vault-gold-dark) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-unlock__subtitle {
    color: var(--foursys-vault-text-secondary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-unlock__info-text {
    color: var(--foursys-vault-text-secondary) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-unlock__security-note {
    color: var(--foursys-vault-text-muted) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-unlock__login-btn {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, var(--foursys-vault-gold-light) 0%, var(--foursys-vault-gold) 50%, var(--foursys-vault-gold-dark) 100%) !important;
}

.foursys-vault[data-theme="light"] .foursys-vault-unlock__login-btn:hover {
    color: #FFFFFF !important;
}
