sicbo-history.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. /* History Page Specific Styles */
  2. /* History Panel - Main content area positioned to the right of menu */
  3. .history-panel {
  4. position: absolute;
  5. top: 20px;
  6. left: 116px;
  7. right: 20px;
  8. bottom: 20px;
  9. display: flex;
  10. flex-direction: column;
  11. font-family: 'Kanit', sans-serif;
  12. /* Golden border around entire panel */
  13. border-radius: 16px;
  14. background: rgba(0, 0, 0, 0.6);
  15. border: 2px solid #c9a861;
  16. box-sizing: border-box;
  17. padding: 16px;
  18. }
  19. /* Tab Buttons Container */
  20. .history-tabs {
  21. display: flex;
  22. gap: 16px;
  23. margin-bottom: 16px;
  24. }
  25. /* Individual Tab Button */
  26. .tab-button {
  27. flex: 1;
  28. position: relative;
  29. padding: 10px 20px;
  30. cursor: pointer;
  31. border-radius: 20px;
  32. transition: all 0.2s ease;
  33. text-align: center;
  34. }
  35. .tab-button.active {
  36. background: linear-gradient(180deg, #FFFFFF, #E1C59C);
  37. border: 2px solid #c9a861;
  38. }
  39. .tab-button:not(.active) {
  40. background: transparent;
  41. border: 2px solid #c9a861;
  42. }
  43. .tab-label {
  44. font-size: 24px;
  45. font-weight: 700;
  46. font-family: 'Kanit', sans-serif;
  47. color: #ffe3aa; /* Yellow for inactive */
  48. }
  49. .tab-button.active .tab-label {
  50. color: #000; /* Black for active */
  51. }
  52. /* Data Table */
  53. .history-table {
  54. flex: 1;
  55. display: flex;
  56. flex-direction: column;
  57. overflow-y: auto;
  58. }
  59. /* Table Header */
  60. .table-header {
  61. display: flex;
  62. padding: 12px 16px;
  63. font-weight: 700;
  64. font-size: 14px;
  65. color: rgba(255, 255, 255, 0.8);
  66. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  67. font-family: 'Kanit', sans-serif;
  68. }
  69. /* Table Row */
  70. .table-row {
  71. display: flex;
  72. padding: 12px 16px;
  73. font-size: 14px;
  74. color: #fff;
  75. border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  76. transition: background 0.2s ease;
  77. font-family: 'Kanit', sans-serif;
  78. }
  79. .table-row:last-child {
  80. border-bottom: none;
  81. }
  82. .table-row:hover {
  83. background: rgba(255, 255, 255, 0.05);
  84. }
  85. /* Column Widths */
  86. .col-id {
  87. width: 100px;
  88. flex-shrink: 0;
  89. }
  90. .col-time {
  91. flex: 1;
  92. text-align: center;
  93. }
  94. .col-coin {
  95. width: 120px;
  96. flex-shrink: 0;
  97. text-align: center;
  98. font-weight: 700;
  99. }
  100. .col-status {
  101. width: 80px;
  102. flex-shrink: 0;
  103. text-align: right;
  104. font-weight: 700;
  105. }
  106. /* Status Colors */
  107. .col-coin.positive {
  108. color: #b8ff84; /* Light green for winning */
  109. }
  110. .col-coin.negative {
  111. color: #ff6b6b; /* Red for losing */
  112. }
  113. .col-status.won {
  114. color: #b8ff84;
  115. }
  116. .col-status.lost {
  117. color: #ff6b6b;
  118. }
  119. /* Scrollbar Styling */
  120. .history-table::-webkit-scrollbar {
  121. width: 4px;
  122. }
  123. .history-table::-webkit-scrollbar-track {
  124. background: rgba(255, 255, 255, 0.05);
  125. border-radius: 2px;
  126. }
  127. .history-table::-webkit-scrollbar-thumb {
  128. background: rgba(255, 227, 170, 0.3);
  129. border-radius: 2px;
  130. }
  131. .history-table::-webkit-scrollbar-thumb:hover {
  132. background: rgba(255, 227, 170, 0.5);
  133. }
  134. /* Hidden class for tab switching */
  135. .hidden {
  136. display: none !important;
  137. }
  138. /* Prize History Columns */
  139. .col-account {
  140. width: 120px;
  141. flex-shrink: 0;
  142. }
  143. .col-value {
  144. width: 140px;
  145. flex-shrink: 0;
  146. text-align: center;
  147. font-weight: 700;
  148. }
  149. .usd {
  150. color: rgba(255, 255, 255, 0.5);
  151. font-size: 12px;
  152. margin-left: 4px;
  153. }
  154. /* Prize Status Colors */
  155. .col-status.pending {
  156. color: #ffe3aa; /* Yellow for pending */
  157. }
  158. .col-status.successful {
  159. color: #b8ff84; /* Green for successful */
  160. }
  161. .col-status.fail {
  162. color: #ff6b6b; /* Red for fail */
  163. }
  164. /* Purchase History Columns */
  165. .col-no {
  166. width: 60px;
  167. flex-shrink: 0;
  168. text-align: center;
  169. }
  170. .col-type {
  171. width: 120px;
  172. flex-shrink: 0;
  173. text-align: right;
  174. font-weight: 700;
  175. }
  176. .coins {
  177. color: rgba(255, 255, 255, 0.5);
  178. font-size: 12px;
  179. margin-left: 4px;
  180. }
  181. /* Purchase Type Colors */
  182. .col-type.daily-package {
  183. color: #ffe3aa; /* Yellow for daily package */
  184. }
  185. .col-type.buy-turn {
  186. color: #4fc3f7; /* Blue for buy turn */
  187. }