/* Upbit Spot Only CSS */
.upbit-card {
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 203, 129, 0.15); /* assuming primary is teal */
}

.upbit-card h2 {
    color: var(--primary); 
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 203, 129, 0.3);
}

.input-theme {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.input-theme:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 203, 129, 0.2);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #00a86b; /* slightly darker primary */
}

.btn-danger {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-danger:hover {
    background: #b71c1c;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: rgba(0, 203, 129, 0.1);
    color: var(--primary);
    font-weight: 700;
}

.data-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.upbit-flow-slot {
    margin: 0 0 16px;
}
.upbit-flow {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card, var(--card-bg, #fff));
    overflow: hidden;
}
.upbit-flow-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 8px;
}
.upbit-flow-kicker {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--primary);
}
.upbit-flow-summary {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    color: var(--gray);
}
.upbit-flow-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.upbit-flow-pill {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 203, 129, 0.1);
    color: var(--primary);
}
.upbit-flow-pill.bybit {
    background: rgba(247, 147, 26, 0.12);
    color: #e08a12;
}
.upbit-flow-pill.krw {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}
.upbit-flow-pill.in {
    background: rgba(38, 166, 154, 0.12);
}
.upbit-flow-pill.need {
    background: rgba(239, 83, 80, 0.12);
    color: #ef5350;
}
.upbit-flow-note {
    margin: 0 14px 8px;
    font-size: 11px;
    color: var(--gray);
    line-height: 1.4;
}
.upbit-flow-pending {
    padding: 8px 14px 10px;
    border-top: 1px solid var(--border);
    background: rgba(239, 83, 80, 0.04);
}
.upbit-flow-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
}
.upbit-flow-col {
    min-width: 0;
    padding: 8px 14px 10px;
}
.upbit-flow-col + .upbit-flow-col {
    border-left: 1px solid var(--border);
}
.upbit-flow-col-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--gray);
}
.upbit-flow-col.krw .upbit-flow-col-title { color: #3b82f6; }
.upbit-flow-col.okx .upbit-flow-col-title { color: var(--primary); }
.upbit-flow-col.bybit .upbit-flow-col-title { color: #e08a12; }
.upbit-flow-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--gray);
}
.upbit-flow-stats b {
    font-weight: 800;
}
.upbit-flow-stats .net {
    color: inherit;
}
.upbit-flow-col.krw .upbit-flow-stats .net { color: #3b82f6; }
.upbit-flow-col.okx .upbit-flow-stats .net { color: var(--primary); }
.upbit-flow-col.bybit .upbit-flow-stats .net { color: #e08a12; }
.upbit-flow-list {
    max-height: 220px;
    overflow: auto;
}
.upbit-flow-empty {
    padding: 12px 0;
    font-size: 12px;
    color: var(--gray);
}
.upbit-flow-row {
    display: grid;
    grid-template-columns: 72px minmax(64px, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
}
.upbit-flow-row:last-child {
    border-bottom: 0;
}
.upbit-flow-row.pending {
    grid-template-columns: 72px minmax(52px, auto) 1fr;
}
.upbit-flow-when {
    color: var(--gray);
    font-variant-numeric: tabular-nums;
}
.upbit-flow-amt {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.upbit-flow-col.krw .upbit-flow-amt { color: #3b82f6; }
.upbit-flow-row.back .upbit-flow-amt { color: #3b82f6; }
.upbit-flow-dest {
    justify-self: end;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.upbit-flow-row.back .upbit-flow-dest { color: #3b82f6; }
.upbit-flow-ask {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.upbit-flow-ask button {
    border: 0;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    background: var(--border);
    color: inherit;
}
.upbit-flow-ask button.okx { background: rgba(0, 203, 129, 0.18); color: var(--primary); }
.upbit-flow-ask button.bybit { background: rgba(247, 147, 26, 0.18); color: #e08a12; }
.upbit-flow-ask button.krw { background: rgba(59, 130, 246, 0.18); color: #3b82f6; }
@media (max-width: 900px) {
    .upbit-flow-cols { grid-template-columns: 1fr; }
    .upbit-flow-col + .upbit-flow-col { border-left: 0; border-top: 1px solid var(--border); }
    .upbit-flow-list { max-height: 160px; }
}
