/* --- VARIABLES --- */
:root {
    --gold: #FFD700;
    --dark-bg: #0b0b0b;
    --glass: rgba(20, 20, 20, 0.95);
    --border: rgba(255, 215, 0, 0.2);
    --text-white: #ffffff;
    --text-muted: #888;
    --input-bg: #141414;
}

body {
    background-color: var(--dark-bg);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-white);
    margin: 0; padding: 0;
}

/* --- LAYOUT --- */
.calc-container {
    max-width: 1000px; margin: 40px auto; padding: 20px;
}
.calc-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px;
}
@media(max-width: 768px) { .calc-grid { grid-template-columns: 1fr; } }

/* --- GLASS PANEL --- */
.glass-panel {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* --- SEARCHABLE DROPDOWN --- */
.search-select-wrapper { position: relative; }
.search-select-btn {
    width: 100%; padding: 12px; background: var(--input-bg);
    border: 1px solid #333; color: #fff; border-radius: 8px;
    text-align: left; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; transition: 0.3s;
}
.search-select-btn:hover { border-color: var(--gold); }
.search-select-btn i { font-size: 0.8rem; color: var(--gold); }

.search-dropdown {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: #1a1a1a; border: 1px solid var(--border);
    border-radius: 8px; z-index: 100; display: none;
    max-height: 300px; overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}
.search-dropdown.active { display: block; }
.search-input {
    width: 100%; padding: 10px; background: #222; border: none;
    border-bottom: 1px solid #333; color: #fff; outline: none;
}
.search-options-list { list-style: none; padding: 0; margin: 0; }
.search-option {
    padding: 10px 15px; cursor: pointer; border-bottom: 1px solid #222;
    transition: 0.2s; font-size: 0.9rem;
}
.search-option:hover { background: rgba(255,215,0,0.1); color: var(--gold); }
.search-option span { float: right; color: #666; font-size: 0.8rem; }

/* --- INPUTS --- */
.input-group { margin-bottom: 20px; }
.input-label {
    display: block; color: var(--text-muted); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.calc-input {
    width: 100%; padding: 12px; background: var(--input-bg);
    border: 1px solid #333; border-radius: 8px; color: #fff;
    font-size: 1rem; transition: 0.3s;
}
.calc-input:focus { border-color: var(--gold); outline: none; }
.calc-input:read-only { opacity: 0.7; cursor: not-allowed; }

/* --- BUTTON --- */
.btn-gold {
    width: 100%; padding: 15px; background: var(--gold);
    color: #000; font-weight: 800; border: none; border-radius: 8px;
    cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s; margin-top: 10px;
}
.btn-gold:hover { background: #e6c200; box-shadow: 0 0 15px rgba(255,215,0,0.3); }

/* --- RESULTS --- */
.result-header {
    color: var(--gold); font-size: 1.2rem; font-weight: 700;
    padding-bottom: 15px; border-bottom: 1px solid #333; margin-bottom: 20px;
}
.result-item {
    display: flex; justify-content: space-between; margin-bottom: 15px;
    padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.res-val { font-size: 1.2rem; font-weight: 700; }
.text-gold { color: var(--gold); }

.lot-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lot-box {
    background: rgba(255,255,255,0.03); padding: 15px; text-align: center;
    border-radius: 6px; border: 1px solid #333;
}
.lot-box small { display: block; color: #666; font-size: 0.7rem; text-transform: uppercase; }
.lot-box strong { font-size: 1.3rem; color: #fff; display: block; margin-top: 5px; }

/* Loader */
.loader-price {
    font-size: 0.8rem; color: var(--gold); margin-left: 10px; display: none;
}
/* =========================================
   3. TEXT VISIBILITY & CONTRAST FIXES
   ========================================= */

/* 1. Force all Headings to Pure White */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #ffffff !important;
}

/* 2. Make standard text Light Grey (Readable) */
p, li, span, div {
    color: #e0e0e0; /* Bright Grey */
}

/* 3. Fix Bootstrap's "Muted" text (It is usually too dark) */
.text-muted, .text-secondary {
    color: #b0b0b0 !important; /* Lighter grey so it shows on black */
}

/* 4. Invert ".text-dark" if used by mistake */
.text-dark {
    color: #ffffff !important;
}

/* 5. Highlight Gold Text */
.text-gold, strong, b {
    color: var(--gold) !important;
}

/* 6. FIX FORM INPUTS (Text was likely black) */
input, select, textarea, .form-control, .input-dark {
    background-color: #0a0a0a !important;
    border: 1px solid #333 !important;
    color: #ffffff !important; /* Force typing text to White */
}

/* 7. Fix Placeholders (The text inside empty inputs) */
::placeholder {
    color: #888 !important; /* Visible Grey */
    opacity: 1;
}

/* 8. Fix Link Colors (So they aren't blue/dark) */
a {
    text-decoration: none;
    color: var(--gold);
}
a:hover {
    color: #ffffff;
}