* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f2f5;
  color: #333;
  line-height: 1.6;
}

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

header {
  text-align: center;
  padding: 30px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  border-radius: 10px;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.subtitle {
  opacity: 0.9;
  font-size: 1.1rem;
}

section {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

section h2 {
  color: #444;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.credentials {
  background: #f8f9ff;
}

.credential-box {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #1a1a2e;
}

.credential-box p {
  margin: 8px 0;
}

.credential-box code {
  background: #e8e8e8;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
}

.credential-box em {
  color: #666;
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #f8f9fa;
  font-weight: 600;
  color: #555;
}

tr:hover {
  background: #f8f9fa;
}

.mono {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.85rem;
}

.amount {
  font-weight: 600;
  color: #2d3748;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.preparing {
  background: #e3f2fd;
  color: #1976d2;
}

.status-badge.approved,
.status-badge.authorized,
.status-badge.paid,
.status-badge.funded {
  background: #e8f5e9;
  color: #388e3c;
}

.status-badge.expired {
  background: #fff3e0;
  color: #f57c00;
}

.status-badge.cancelled,
.status-badge.reversed {
  background: #ffebee;
  color: #d32f2f;
}

.empty-state {
  text-align: center;
  color: #999;
  padding: 40px !important;
  font-style: italic;
}

.actions {
  white-space: nowrap;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
  margin-right: 5px;
}

.btn-success {
  background: #4caf50;
  color: white;
}

.btn-success:hover {
  background: #43a047;
}

.btn-danger {
  background: #f44336;
  color: white;
}

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

.btn-warning {
  background: #ff9800;
  color: white;
}

.btn-warning:hover {
  background: #fb8c00;
}

.btn-info {
  background: #2196f3;
  color: white;
}

.btn-info:hover {
  background: #1976d2;
}

.btn-secondary {
  background: #607d8b;
  color: white;
}

.btn-secondary:hover {
  background: #546e7a;
}

.endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.method {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

.method.post {
  background: #4caf50;
  color: white;
}

.endpoint code {
  font-family: 'Monaco', 'Consolas', monospace;
  background: white;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.endpoint .desc {
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 8px 10px;
  }

  .btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}
