/* SatoshiFi Admin Styles */
/* Shared styles for all admin panels: admin-table, admin-spv, admin-redemption */

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.confirmed {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.ready {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.distributed {
  background: #e0e7ff;
  color: #4338ca;
}

/* Buttons */
.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  margin: 0 0.25rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-success {
  background: #10b981;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #059669;
}

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

.btn-danger:hover:not(:disabled) {
  background: #dc2626;
}

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

.btn-warning:hover:not(:disabled) {
  background: #d97706;
}

.btn-link {
  background: transparent;
  color: #6366f1;
  border: 1px solid #6366f1;
  padding: 0.125rem 0.5rem;
}

.btn-link:hover:not(:disabled) {
  background: #6366f1;
  color: white;
}

.btn-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.data-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #475569;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 1rem;
  border-top: 1px solid #f1f5f9;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.data-table tr.pending {
  background: #fef3c7;
}

.data-table tr.pending:hover {
  background: #fde68a;
}

.data-table tr.confirmed,
.data-table tr.distributed {
  opacity: 0.7;
}

.data-table tr.confirmed:hover,
.data-table tr.distributed:hover {
  opacity: 1;
  background: #f8fafc;
}

/* Text Utilities */
.text-muted {
  color: #9ca3af;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-center {
  text-align: center;
}

/* Messages */
.info-message {
  background: #e0e7ff;
  border: 1px solid #6366f1;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.info-message p {
  margin: 0.5rem 0;
  color: #4338ca;
}

.info-message strong {
  color: #3730a3;
}

.error-message {
  background: #fee2e2;
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.error-message p {
  margin: 0.5rem 0;
  color: #dc2626;
}

.success-message {
  background: #d1fae5;
  border: 1px solid #10b981;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.success-message p {
  margin: 0.5rem 0;
  color: #065f46;
}

.warning-message {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.warning-message p {
  margin: 0.5rem 0;
  color: #92400e;
}

.no-data {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
  font-size: 1.1rem;
}

/* Admin Badge */
.admin-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Loading States */
.loading {
  text-align: center;
  padding: 2rem;
  color: #64748b;
}

.loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Code blocks */
code {
  background: #f1f5f9;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  color: #475569;
}

/* Forms in admin panels */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group .hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #64748b;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 3rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
}

.upload-zone:hover {
  border-color: #6366f1;
  background: #f0f4ff;
}

.upload-zone.drag-over {
  border-color: #6366f1;
  background: #e0e7ff;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 2rem;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Print styles */
@media print {
  .btn, button {
    display: none !important;
  }

  .data-table tr.pending {
    background: white !important;
  }

  .stat-card {
    break-inside: avoid;
  }
}
