:root {
    /* DEFAULT DARK THEME */
    --bg-color: #0b0e11;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    --item-hover: rgba(255, 255, 255, 0.05);
}

[data-theme="white"] {
    --bg-color: #f4f7f9;
    --text-primary: #1e2329;
    --text-secondary: #707a8a;
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    --item-hover: rgba(0, 0, 0, 0.03);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
        font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

[data-theme="dark"] {
    --glass-bg: rgba(15, 20, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --bg-gradient: linear-gradient(135deg, #0f141e 0%, #2c3e50 100%);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}





/* Fix Table Backgrounds for Themes */
.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-primary) !important;
    background-color: transparent !important;
    margin-bottom: 0;
}

.table td, .table th {
    background-color: transparent !important;
    border-color: var(--glass-border) !important;
    color: var(--text-primary) !important;
}

/* Price Change Flash Animation */
@keyframes flash-green {
    0% { background: rgba(0, 255, 136, 0.2); }
    100% { background: transparent; }
}
@keyframes flash-red {
    0% { background: rgba(255, 77, 77, 0.2); }
    100% { background: transparent; }
}

.up-flash { animation: flash-green 0.8s ease; }
.down-flash { animation: flash-red 0.8s ease; }

/* Sparkline Canvas */
.sparkline {
    width: 80px;
    height: 30px;
    opacity: 0.8;
}

.instrument-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--glass-bg);
}


/* Updated Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
}


/* Liquid elements */
.liquid-btn {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px 24px;
    transition: transform 0.2s;
}
.liquid-btn:active { transform: scale(0.95); }
/* Placeholder Visibility Fix */
::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1; /* Firefox fix */
}

[data-theme="white"] ::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

/* Modern Liquid Input Style */
.glass-input-group {
    position: relative;
    margin-bottom: 25px;
}

.glass-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

[data-theme="white"] .glass-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* Eye Icon Positioning */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    z-index: 10;
}

.password-toggle:hover { opacity: 1; color: #00d4ff; }

/* Verify Password Logic */
.match-status {
    font-size: 11px;
    margin-top: 5px;
    display: none;
}

.modal-backdrop-glass {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content-centered {
    width: 90%;
    max-width: 400px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Date Input specific for glass style */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Makes the icon white in dark mode */
    opacity: 0.5;
    cursor: pointer;
}

[data-theme="white"] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0); /* Makes the icon black in white mode */
}

.page-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
}