* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    margin-bottom: 20px;
}

h2 {
    margin: 0 0 14px 0;
    font-size: 20px;
}

.top-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px;
}

.label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.value {
    font-size: 22px;
    font-weight: bold;
    color: #38bdf8;
}

.actions {
    margin-bottom: 20px;
}

button {
    border: none;
    border-radius: 8px;
    padding: 7px 11px;
    cursor: pointer;
    font-size: 14px;
}

#refreshBtn {
    background: #2563eb;
    color: white;
    padding: 10px 16px;
}

#refreshBtn:hover {
    background: #1d4ed8;
}

.panel {
    background: #111827;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #334155;
    font-size: 14px;
}

th {
    color: #93c5fd;
    background: #0b1220;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.status-complete {
    color: #22c55e;
    font-weight: bold;
}

.status-rejected {
    color: #ef4444;
    font-weight: bold;
}

.status-open {
    color: #f59e0b;
    font-weight: bold;
}

.pnl-positive {
    color: #22c55e;
    font-weight: bold;
}

.pnl-negative {
    color: #ef4444;
    font-weight: bold;
}

.buy-btn {
    background: #16a34a;
    color: white;
    margin-right: 6px;
}

.buy-btn:hover {
    background: #15803d;
}

.sell-btn {
    background: #dc2626;
    color: white;
}

.sell-btn:hover {
    background: #b91c1c;
}

.exit-btn {
    background: #f59e0b;
    color: black;
}

.exit-btn:hover {
    background: #d97706;
}

@media (max-width: 900px) {
    .top-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .top-bar {
        grid-template-columns: 1fr;
    }
}
