/* Transactions Page */
.transactions-page {
  min-height: calc(100vh - 64px);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 3rem 1rem;
}

.transactions-header {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.transactions-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.transactions-subtitle {
  color: #94a3b8;
  font-size: 1rem;
  margin: 0;
}

.transactions-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.transaction-item {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.transaction-item:hover {
  border-color: rgba(247, 147, 26, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.transaction-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.transaction-type {
  flex-shrink: 0;
}

.transaction-type-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  background: rgba(247, 147, 26, 0.2);
  color: #f7931a;
  border: 1px solid rgba(247, 147, 26, 0.3);
}

.transaction-type-badge.purchase {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.transaction-type-badge.incorrect_solution {
  background: rgba(243, 14, 14, 0.2);
  color: #e3240e;
  border-color: rgba(228, 53, 26, 0.3);
}

.transaction-type-badge.puzzle_creation {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
}

.transaction-type-badge.puzzle_solved {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.transaction-details {
  flex: 1;
}

.transaction-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.amount-positive {
  font-size: 1.25rem;
  font-weight: 700;
  color: #22c55e;
}

.amount-negative {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f87171;
}

.currency {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
}

.transaction-description {
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.transaction-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.transaction-parties {
  flex: 1;
}

.sent-to,
.received-from {
  font-size: 0.875rem;
  color: #94a3b8;
}

.transaction-info {
  text-align: right;
}

.transaction-date {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.transaction-balance {
  font-size: 0.875rem;
  color: #f7931a;
  font-weight: 600;
}

.empty-transactions {
  max-width: 400px;
  margin: 4rem auto 0;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-transactions h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.empty-transactions p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive styles for transactions page */
@media (max-width: 768px) {
  .transactions-page {
    padding: 2rem 1rem;
  }
  
  .transactions-header {
    margin-bottom: 1.5rem;
  }
  
  .transactions-title {
    font-size: 1.5rem;
  }
  
  .transaction-item {
    padding: 1rem;
  }
  
  .transaction-main {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .transaction-meta {
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
  }
  
  .transaction-info {
    text-align: left;
  }
  
  .empty-transactions {
    margin: 2rem auto 0;
    padding: 2rem 1rem;
  }
}
