/* Transactions Page Specific Styles */

.transactions-header {
  margin: 40px 0 30px;
}

.transactions-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.transactions-header p {
  color: #777;
  font-size: 16px;
}

.transactions-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 50px;
}

/* Filters */
.transactions-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.filter-group label {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

.filter-group select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.filter-btn {
  align-self: flex-end;
  background-color: #e73323;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-btn:hover {
  background-color: #d62c1a;
}

/* Transactions Table */
.transactions-table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

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

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

.transactions-table th {
  background-color: #f9f9f9;
  font-weight: bold;
  color: #555;
  position: sticky;
  top: 0;
}

.transactions-table tr:hover {
  background-color: #f5f5f5;
}

.status-completed {
  color: #4caf50;
  font-weight: bold;
}

.status-pending {
  color: #ffc107;
  font-weight: bold;
}

.status-failed {
  color: #f44336;
  font-weight: bold;
}

.view-details-btn {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-details-btn:hover {
  background-color: #e73323;
  color: #fff;
  border-color: #e73323;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.pagination-btn {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #e73323;
  color: #fff;
  border-color: #e73323;
}

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

.pagination-numbers {
  display: flex;
  align-items: center;
  margin: 0 10px;
}

.pagination-number {
  background: none;
  border: none;
  padding: 8px 12px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination-number:hover {
  background-color: #f5f5f5;
}

.pagination-number.active {
  background-color: #e73323;
  color: #fff;
}

.pagination-ellipsis {
  margin: 0 5px;
}

/* Transaction Details Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 20px;
  margin: 0;
}

.close-modal {
  font-size: 24px;
  cursor: pointer;
  color: #777;
}

.modal-body {
  padding: 20px;
}

/* Transaction Details */
.transaction-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.transaction-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.info-group {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

.info-value {
  font-size: 16px;
  font-weight: bold;
}

.transaction-receipt {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.transaction-receipt h4 {
  font-size: 18px;
  margin-bottom: 15px;
}

.receipt-actions {
  display: flex;
  gap: 10px;
}

.download-btn,
.print-btn,
.email-btn {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.download-btn:hover,
.print-btn:hover,
.email-btn:hover {
  background-color: #eee;
}

.transaction-support {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.transaction-support h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.transaction-support p {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

.support-btn {
  display: inline-block;
  background-color: #e73323;
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.support-btn:hover {
  background-color: #d62c1a;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .transaction-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .transactions-filters {
    flex-direction: column;
    gap: 10px;
  }

  .filter-group {
    width: 100%;
  }

  .filter-btn {
    align-self: flex-start;
    width: 100%;
  }

  .receipt-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .pagination-numbers {
    display: none;
  }

  .pagination-btn {
    margin: 0 5px;
  }
}

