body { font-family: system-ui, Arial, sans-serif; margin:0; background:#121416; color:#e0e5eb; }
.login-page { display:flex; align-items:center; justify-content:center; min-height:100vh; }
.login-form { background:#1e2227; padding:32px 28px; border-radius:12px; width:320px; box-shadow:0 4px 24px rgba(0,0,0,.4); }
.login-form h1 { margin:0 0 18px; font-size:24px; }
.login-form input { width:100%; padding:10px 12px; margin:6px 0 16px; background:#161a1e; border:1px solid #2d333b; color:#fff; border-radius:6px; }
.login-form button { width:100%; padding:12px; background:#2563eb; border:none; color:#fff; border-radius:6px; font-weight:600; cursor:pointer; }
.login-form button:hover { background:#1d4ed8; }
.alert.error { background:#b91c1c; padding:8px 10px; border-radius:6px; margin-bottom:12px; font-size:14px; }

.topbar { display:flex; align-items:center; gap:16px; padding:10px 18px; background:#1e2227; position:sticky; top:0; }
.topbar .logo { font-weight:700; font-size:18px; }
.topbar nav { display:flex; gap:8px; flex-wrap:wrap; }
.tab-btn { background:#2d333b; border:none; padding:8px 14px; border-radius:6px; cursor:pointer; color:#d1d6dc; font-size:14px; }
.tab-btn.active { background:#2563eb; color:#fff; }
.tab-btn:hover { background:#374048; }
.logout-form button { background:#b91c1c; border:none; padding:8px 14px; border-radius:6px; color:#fff; cursor:pointer; }
.logout-form button:hover { background:#991b1b; }

main { padding:16px 18px 40px; }
.filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.filters input, .filters select { background:#161a1e; border:1px solid #2d333b; padding:8px 10px; color:#fff; border-radius:6px; font-size:14px; }
.filters button { background:#2563eb; border:none; padding:8px 14px; border-radius:6px; color:#fff; cursor:pointer; }
.filters button:hover { background:#1d4ed8; }

#transactionsTable { width:100%; border-collapse:collapse; font-size:13px; }
#transactionsTable th, #transactionsTable td { padding:6px 8px; border-bottom:1px solid #2d333b; }
#transactionsTable th { text-align:left; position:sticky; top:56px; background:#1e2227; cursor:pointer; }
#transactionsTable th.sort-asc::after { content:' \25B2'; color:#2563eb; }
#transactionsTable th.sort-desc::after { content:' \25BC'; color:#2563eb; }
#transactionsTable tbody tr:hover { background:#1f252b; }

.status-paid { background:#065f46; color:#d1fae5; }
.status-created { background:#1e3a8a; color:#bfdbfe; }
.status-pending, .status-initiated { background:#92400e; color:#fef3c7; }
.status-notified { background:#14532d; color:#d1fae5; }
.status-failed, .status-canceled, .status_error { background:#7f1d1d; color:#ffe4e6; }

.badge { display:inline-block; padding:2px 6px; border-radius:4px; font-weight:600; font-size:11px; letter-spacing:.3px; }
.action-btn { background:#2563eb; border:none; padding:4px 8px; border-radius:4px; color:#fff; font-size:12px; cursor:pointer; }
.action-btn.secondary { background:#475569; }
.action-btn.danger { background:#dc2626; }
.action-btn:hover { opacity:.85; }

.tab { display:none; }
.tab.active { display:block; }
.log-view { background:#161a1e; padding:12px; border-radius:8px; white-space:pre-wrap; max-height:70vh; overflow:auto; font-size:12px; line-height:1.4; }

.table-small { font-size:12px; }

.fixed-actions { position:sticky; top:56px; background:#1e2227; padding:4px; }

.pagination { display:flex; align-items:center; gap:8px; margin-top:10px; flex-wrap:wrap; }
.pagination button { background:#2d333b; border:none; padding:6px 10px; border-radius:6px; color:#d1d6dc; cursor:pointer; }
.pagination button:hover:not([disabled]) { background:#374048; }
.pagination button[disabled] { opacity:.4; cursor:not-allowed; }
.pagination select { background:#161a1e; border:1px solid #2d333b; padding:6px 8px; color:#fff; border-radius:6px; }
.pagination #pageInfo { font-size:13px; opacity:.85; }
