history.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /* History specific styles */
  2. .history-game-tabs {
  3. display: flex;
  4. padding: 0 16px;
  5. gap: 8px;
  6. margin-top: 20px;
  7. overflow-x: auto;
  8. padding-bottom: 8px;
  9. }
  10. .history-game-tabs::-webkit-scrollbar { display: none; }
  11. .game-tab {
  12. flex: none;
  13. padding: 10px 18px;
  14. background: white;
  15. border-radius: 14px;
  16. font-size: 13px;
  17. font-weight: 800;
  18. color: #4B5563;
  19. box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  20. border: 1.5px solid transparent;
  21. transition: all 0.2s;
  22. cursor: pointer;
  23. white-space: nowrap;
  24. }
  25. .game-tab.active {
  26. color: #0062FF;
  27. border-color: #0062FF;
  28. background: #FFF5F5;
  29. }
  30. .status-filters {
  31. display: flex;
  32. padding: 0;
  33. gap: 4px;
  34. background: transparent;
  35. box-shadow: none;
  36. margin: 0;
  37. }
  38. .status-filter {
  39. flex: 1;
  40. padding: 10px 4px;
  41. text-align: center;
  42. font-size: 14px;
  43. font-weight: 700;
  44. color: #9CA3AF;
  45. position: relative;
  46. cursor: pointer;
  47. transition: all 0.2s;
  48. }
  49. .status-filter.active {
  50. color: #0062FF;
  51. }
  52. .status-filter.active::after {
  53. content: '';
  54. position: absolute;
  55. bottom: 0px;
  56. left: 20%;
  57. right: 20%;
  58. height: 3px;
  59. background: #0062FF;
  60. border-radius: 4px;
  61. }
  62. /* Ticket Card */
  63. .ticket-card {
  64. background: white;
  65. border-radius: 12px;
  66. margin: 16px 0;
  67. padding: 0;
  68. box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  69. position: relative;
  70. border: 1px solid #F1F1F1;
  71. overflow: hidden;
  72. }
  73. .ticket-card-top {
  74. padding: 12px 16px 16px 16px;
  75. background: white;
  76. position: relative;
  77. }
  78. .ticket-perforation {
  79. height: 4px;
  80. background-image: radial-gradient(circle, #F3F4F6 6px, transparent 6px);
  81. background-size: 24px 24px;
  82. background-position: center;
  83. background-repeat: repeat-x;
  84. position: relative;
  85. margin: 0 -10px;
  86. }
  87. .ticket-card-bottom {
  88. padding: 12px 16px;
  89. background: #FDFDFD;
  90. border-top: 1px dashed #E5E7EB;
  91. }
  92. .ticket-header {
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. margin-bottom: 12px;
  97. }
  98. .ticket-id {
  99. font-size: 13px;
  100. color: #9CA3AF;
  101. font-weight: 700;
  102. font-family: 'Bricolage Grotesque', sans-serif;
  103. }
  104. .ticket-status {
  105. padding: 6px 14px;
  106. border-radius: 30px;
  107. font-size: 11px;
  108. font-weight: 900;
  109. text-transform: uppercase;
  110. letter-spacing: 0.5px;
  111. }
  112. .status-waiting { background: #FFF9C4; color: #B45309; }
  113. .status-win { background: #DCFCE7; color: #15803D; }
  114. .status-notwin { background: #FEE2E2; color: #B91C1C; }
  115. .ticket-numbers {
  116. display: flex;
  117. flex-wrap: wrap;
  118. gap: 10px;
  119. padding: 0;
  120. background: transparent;
  121. }
  122. .ticket-ball {
  123. width: 32px;
  124. height: 32px;
  125. background: #F3F4F6;
  126. border: 1px solid #E5E7EB;
  127. border-radius: 50%;
  128. display: flex;
  129. align-items: center;
  130. justify-content: center;
  131. font-size: 13px;
  132. font-weight: 800;
  133. color: #4B5563;
  134. transition: all 0.2s;
  135. flex-shrink: 0;
  136. }
  137. .ticket-ball.ball-win {
  138. background: #10B981;
  139. color: white;
  140. border-color: #059669;
  141. box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  142. }
  143. .ticket-ball.ball-lose {
  144. background: #EF4444;
  145. color: white;
  146. border-color: #DC2626;
  147. box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
  148. }
  149. .ticket-ball.ball-waiting {
  150. background: #F3F4F6;
  151. color: #9CA3AF;
  152. border: 1px dashed #D1D5DB;
  153. }
  154. .ticket-info-grid {
  155. display: flex;
  156. flex-direction: column;
  157. gap: 8px;
  158. }
  159. .info-row {
  160. display: flex;
  161. justify-content: space-between;
  162. align-items: center;
  163. }
  164. .info-label { font-size: 12px; color: #9CA3AF; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
  165. .info-value { font-size: 14px; color: #1F2937; font-weight: 900; }
  166. .win-amount { color: #0062FF; font-size: 18px; }
  167. .history-items-list {
  168. flex: 1;
  169. /* Use more vertical space (avoid unused gray gap under list) */
  170. height: calc(100vh - 140px) !important;
  171. overflow-y: auto !important;
  172. overflow-x: hidden !important;
  173. /* keep content clear of fixed bottom navbar */
  174. padding-bottom: calc(120px + env(safe-area-inset-bottom));
  175. scrollbar-width: thin !important;
  176. scrollbar-color: #fce303 transparent !important;
  177. }
  178. .history-items-list::-webkit-scrollbar {
  179. width: 6px !important;
  180. display: block !important;
  181. }
  182. .history-items-list::-webkit-scrollbar-track {
  183. background: transparent !important;
  184. }
  185. .history-items-list::-webkit-scrollbar-thumb {
  186. background-color: #fce303 !important;
  187. border-radius: 20px !important;
  188. }