/* ============================================
   Full-Screen History Modal
============================================ */
#history-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  flex-direction: column;
  background: linear-gradient(to bottom, var(--background-color), var(--primary-color), var(--gradient-mid));
  backdrop-filter: blur(8px);
  color: #fff;
  z-index: 9999;
  padding: 20px 16px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ============================================
   Header
============================================ */
#history-box h3 {
  margin: 0 auto;
  font-size: 24px;
  text-align: center;
  font-weight: 600;
  padding-bottom: 12px;
  width: 100%;
}

/* ============================================
   Close Button
============================================ */
#closeHistory {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  background: transparent;
  color: #ccc;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
#closeHistory:hover {
  color: #fff;
}

/* ============================================
   Transaction List
============================================ */
#transactionHistory {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  overflow-y: auto;
  flex: 1;
}

/* ============================================
   Transaction Item
============================================ */
#transactionHistory li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  line-height: 1.6;
}
#transactionHistory li strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ============================================
   Status Colors
============================================ */
#transactionHistory li span {
  font-weight: bold;
  text-transform: capitalize;
}
#transactionHistory li span[style*="lightgreen"] {
  color: #4caf50 !important;
}
#transactionHistory li span[style*="yellow"] {
  color: #ffc107 !important;
}
#transactionHistory li span[style*="red"] {
  color: #f44336 !important;
}

/* ============================================
   Responsive Design
============================================ */
@media (max-width: 480px) {
  #history-box {
    padding: 16px 12px;
  }

  #history-box h3 {
    font-size: 20px;
  }

  #transactionHistory li {
    font-size: 14px;
  }

  #closeHistory {
    font-size: 20px;
  }
}