:root {
    --bg-color: #12141c;
    --card-bg: #1c1f2b;
    --border-color: #2e3345;
    --text-main: #ffffff;
    --text-muted: #b0b7c3;
    --accent-green: #10b981;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.drop-zone {
    border: 2px dashed var(--accent-green);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(16, 185, 129, 0.04);
}

.drop-zone:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: #34d399;
}

/* TABELA */

.table-custom {
    color: var(--text-main);
    font-size: 13px;
    margin-bottom: 0;
}

.table-custom th {
    background-color: #161922;
    color: #94a3b8;
    border-bottom: 2px solid var(--border-color);
    border-top: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.6px;
    padding: 12px 8px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.table-custom th:hover {
    color: var(--accent-green);
}

.table-custom td {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.table-hover tbody tr:hover td {
    background-color: #232837;
}

/* BADGES */

.badge-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-weight: 600;
}

.badge-primary {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    font-weight: 600;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-weight: 600;
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-weight: 600;
}

/* CORES DO SCORE */

.score-badge {
    display: inline-block;
    min-width: 48px;
    padding: 6px 9px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 14px;
    border: 1px solid transparent;
}

.score-red {
    background: rgba(239, 68, 68, 0.16);
    color: #ff6464;
    border-color: rgba(239, 68, 68, 0.45);
}

.score-orange {
    background: rgba(249, 115, 22, 0.16);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.45);
}

.score-yellow {
    background: rgba(234, 179, 8, 0.16);
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.45);
}

.score-green {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.45);
}

/* VALOR DE MERCADO */

.valor-badge {
    font-weight: 700;
    color: #facc15;
}

/* DESTAQUE DAS RECOMENDAÇÕES */

.market-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge-opportunity {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.25),
        rgba(16, 185, 129, 0.08)
    );
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.65);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.12);
}

.badge-premium {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.5);
}

.search-box {
    background-color: #161922;
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
}

.search-box:focus {
    background-color: #161922;
    color: #fff;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* LEGENDA DO SCORE */

.score-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 11px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #cbd5e1;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.legend-red {
    background: #ef4444;
}

.legend-orange {
    background: #f97316;
}

.legend-yellow {
    background: #eab308;
}

.legend-green {
    background: #10b981;
}

.market-column {
    min-width: 205px;
}
