/* ===== REQUEST HISTORY PAGE ===== */
.history-page {
  padding: 24px;
  max-width: 1200px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: #f0f6fc;
}

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(240,246,252,.06);
  border: 1px solid rgba(240,246,252,.1);
  border-radius: 8px;
  color: #c9d1d9;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.export-btn:hover {
  background: rgba(92,184,230,.1);
  border-color: rgba(92,184,230,.3);
  color: #5cb8e6;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: rgba(240,246,252,.04);
  border-radius: 10px;
  padding: 4px;
}

.filter-tab {
  padding: 8px 18px;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: #8b949e;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.filter-tab:hover {
  color: #c9d1d9;
}
.filter-tab.active {
  background: #111827;
  color: #5cb8e6;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(240,246,252,.04);
  border: 1px solid rgba(240,246,252,.08);
  border-radius: 8px;
  transition: border-color .2s;
}
.search-box:focus-within {
  border-color: #5cb8e6;
}

.search-box svg {
  color: #8b949e;
  flex-shrink: 0;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #f0f6fc;
  font-size: 13px;
  width: 180px;
}
.search-input::placeholder {
  color: #484f58;
}

/* Date Range */
.date-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-input {
  padding: 8px 12px;
  background: rgba(240,246,252,.04);
  border: 1px solid rgba(240,246,252,.08);
  border-radius: 8px;
  color: #f0f6fc;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.date-input:focus {
  border-color: #5cb8e6;
}
.date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
}

.date-sep {
  font-size: 12px;
  color: #484f58;
}

/* Section Panel */
.section-panel {
  background: #111827;
  border: 1px solid rgba(240,246,252,.06);
  border-radius: 12px;
  padding: 24px;
}

/* Data Table */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(240,246,252,.06);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: #c9d1d9;
  border-bottom: 1px solid rgba(240,246,252,.04);
}

.data-table tbody tr:hover {
  background: rgba(240,246,252,.02);
}

.ref-cell {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #8b949e;
}

/* Type Tags */
.type-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.type-tag.deposit {
  background: rgba(63,185,80,.12);
  color: #3fb950;
}
.type-tag.withdrawal {
  background: rgba(248,81,73,.12);
  color: #f85149;
}
.type-tag.wire {
  background: rgba(92,184,230,.12);
  color: #5cb8e6;
}
.type-tag.topup {
  background: rgba(163,113,247,.12);
  color: #a371f7;
}

/* Amounts */
.amount-negative {
  color: #f85149;
  font-weight: 500;
}
.amount-positive {
  color: #3fb950;
  font-weight: 500;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.status-badge.completed {
  background: rgba(63,185,80,.12);
  color: #3fb950;
}
.status-badge.pending {
  background: rgba(210,153,34,.12);
  color: #d29922;
}
.status-badge.failed {
  background: rgba(248,81,73,.12);
  color: #f85149;
}

/* Responsive */
@media (max-width: 800px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-tabs {
    overflow-x: auto;
  }
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input {
    width: 100%;
  }
}
