/* Loupe — dark watch discovery theme */

:root {
    --bg: #0d1117;
    --bg-card: #161b22;
    --bg-header: #1c2333;
    --border: #30363d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #1e40af;
    --profit: #3fb950;
    --loss: #f85149;
    --warning: #d29922;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', -apple-system, sans-serif;
    font-size: 14px;
}

/* Navbar */
.navbar {
    background: var(--bg-header) !important;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.text-accent { color: var(--accent) !important; }
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
}
.btn-accent:hover {
    background: #1d4ed8;
    color: #fff;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Colors */
.text-profit { color: var(--profit) !important; }
.text-loss { color: var(--loss) !important; }

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.card-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    padding: 10px 16px;
}

/* Tables */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
}

.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-color: var(--border);
}

.table td {
    border-color: var(--border);
    vertical-align: middle;
}

/* Badge tweaks */
.badge { font-weight: 500; }

/* Form inputs */
.form-control, .form-select {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

.form-control:focus, .form-select:focus {
    background: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
    color: var(--text);
}

/* Listing cards */
.listing-card {
    transition: transform 0.15s, box-shadow 0.15s;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.listing-img {
    height: 180px;
    object-fit: contain;
    background: #0d1117;
    padding: 8px;
}

.listing-img-placeholder {
    height: 180px;
    background: var(--bg);
}

.listing-brand {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-model {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.listing-price {
    font-weight: 700;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

/* Modal dark theme fix */
.modal-content {
    background: var(--bg-card);
    border-color: var(--border);
}

.modal-header {
    border-bottom-color: var(--border);
}

.modal-footer {
    border-top-color: var(--border);
}

/* Progress bars */
.progress {
    background: var(--bg);
}

/* Responsive */
@media (max-width: 768px) {
    .stat-value { font-size: 1.1rem; }
    .navbar-nav { flex-direction: row; gap: 0.25rem; }
    .nav-link { font-size: 0.85rem; padding: 0.25rem 0.5rem !important; }
    .listing-img { height: 140px; }
}
