.betting-controls {
  border-top: 2px solid white;
}

.betting-interface {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}

/* Left section - Summary table */
.betting-summary-wrapper {
  flex: 0 0 25%;
  min-width: 180px;
}

.betting-summary-table {
  width: 100%;
  border-collapse: collapse;
  color: white;
  font-size: 12px;
}

.betting-summary-table td {
  padding: 4px;
  border: none;
  text-align: left;
}

.summary-label {
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  width: 120px;
}

.summary-value {
  color: #ff6b35;
  font-weight: 600;
  text-align: right;
  min-width: 30px;
}

.betting-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  padding-top: 10px !important;
  text-align: left;
}

/* Middle section - Input controls */
.betting-inputs-section {
  flex: 0 0 35%;
  display: flex;
  gap: 15px;
  align-items: flex-end;
  min-width: 200px;
}

.bet-amount-group,
.multiplier-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
}

.amount-input-wrapper,
.multiplier-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid white;
  height: 29px;
  overflow: hidden;
}

.amount-control-btn {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.amount-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.amount-control-btn:last-child {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-amount-input,
.multiplier-input {
  background: transparent;
  border: none;
  color: white;
  padding: 8px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  width: 60px;
  outline: none;
}

.bet-amount-input::-webkit-outer-spin-button,
.bet-amount-input::-webkit-inner-spin-button,
.multiplier-input::-webkit-outer-spin-button,
.multiplier-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.multiplier-input {
  opacity: 0.6;
}

/* Right section - Action buttons */
.betting-actions-section {
  flex: 0 0 40%;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.add-to-bet-slip-btn,
.instant-bet-btn {
  align-items: center;
  appearance: button;
  background-color: rgb(79, 79, 90);
  background-image: none;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  color: rgb(204, 204, 204);
  cursor: pointer;
  display: inline-flex;
  font-family: Roboto, "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  height: 33px;
  justify-content: center;
  line-height: 16.1px;
  margin: 0;
  opacity: 0.8;
  outline: none;
  overflow: visible;
  padding: 8px 16px;
  text-align: center;
  text-transform: none;
  flex: 1;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.add-to-bet-slip-btn:hover,
.instant-bet-btn:hover {
  opacity: 1;
  background-color: rgb(89, 89, 100);
}

/* Ensure icons are fully visible */
.add-to-bet-slip-btn svg,
.instant-bet-btn svg {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .betting-interface {
    flex-direction: column;
    gap: 20px;
  }

  .betting-summary-wrapper,
  .betting-inputs-section,
  .betting-actions-section {
    flex: 1 1 100%;
  }

  .betting-inputs-section {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .betting-actions-section {
    flex-direction: column;
    gap: 10px;
  }

  .add-to-bet-slip-btn,
  .instant-bet-btn {
    justify-content: center;
    max-width: none;
  }
}

/* Betting History Section */
.betting-history-container {
  width: 970px;
  border-radius: 8px;
  color: rgb(204, 204, 204);
  margin-bottom: 12px;
  box-shadow: 0px 0px 10px -5px;
  background-color: rgb(58, 58, 68);
  padding: 20px 0;
  overflow-y: auto;
  margin-left: 310px; /* Align with main-content, accounting for sidebar width */
}

.betting-history-button {
  background-color: rgb(130, 168, 249);
  border-radius: 8px;
  box-sizing: border-box;
  color: rgb(255, 255, 255);
  display: block;
  font-family: Roboto, "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  height: 36px;
  line-height: 16px;
  margin: 0 auto 20px auto;
  padding: 10px;
  text-align: center;
  text-size-adjust: 100%;
  unicode-bidi: isolate;
  width: 200px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.betting-history-button:hover {
  background-color: rgb(110, 148, 229);
  transform: translateY(-1px);
}

.betting-history-content {
  width: 970px;
  background-color: rgb(58, 58, 68);
  border-radius: 0 0 8px 8px;
  padding: 0;
  box-shadow: 0px 0px 10px -5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.betting-history-table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  table-layout: fixed;
}

.betting-history-thead th {
  background-color: rgb(64, 65, 75);
  color: rgb(187, 187, 187);
  padding: 8px 4px;
  font-weight: 600;
  font-size: 12px;
  border: none;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 2;
}

.betting-history-thead th:nth-child(1) {
  width: 70px;
}

.betting-history-thead th:nth-child(2) {
  width: 60px;
}

.betting-history-thead th:nth-child(3) {
  width: 80px;
}

.betting-history-thead th:nth-child(4) {
  width: 60px;
}

.betting-history-thead th:nth-child(5) {
  width: 60px;
}

.betting-history-thead th:nth-child(6) {
  width: 60px;
}

.betting-history-thead th:nth-child(7) {
  width: 70px;
}

.betting-history-thead th:nth-child(8) {
  width: 80px;
}

.betting-history-thead th:nth-child(9) {
  width: 50px;
}

.betting-history-thead th.text-left {
  text-align: left;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.betting-history-row {
  border: none;
}

.betting-history-row td {
  padding: 0 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  border: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.betting-history-row td:nth-child(1) {
  width: 70px;
}

.betting-history-row td:nth-child(2) {
  width: 60px;
}

.betting-history-row td:nth-child(3) {
  width: 80px;
}

.betting-history-row td:nth-child(4) {
  width: 60px;
}

.betting-history-row td:nth-child(5) {
  width: 60px;
}

.betting-history-row td:nth-child(6) {
  width: 60px;
}

.betting-history-row td:nth-child(7) {
  width: 70px;
}

.betting-history-row td:nth-child(8) {
  width: 80px;
}

.betting-history-row td:nth-child(9) {
  width: 50px;
}

.betting-history-row td:last-child {
  border-right: none;
}

/* .betting-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  display: inline-block;
  min-width: 80px;
}

.betting-status.pending {
  background: rgba(249, 190, 24, 0.2);
  color: #f9be18;
  border: 1px solid rgba(249, 190, 24, 0.3);
}

.betting-status.win {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.betting-status.lose {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
} */

.game-type {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.numbers-display {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
  font-family: monospace;
}

.numbers-display:hover {
  color: #fefefe;
}

.view-details-btn {
  color: rgba(92, 104, 202, 0.8);
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.view-details-btn:hover {
  transform: translateY(-1px);
}

/* Responsive adjustments for betting history */
@media (max-width: 768px) {
  .betting-history-container {
    margin: 10px;
    margin-left: 10px;
    align-items: stretch;
  }

  .betting-history-button {
    width: 100%;
    margin: 0 0 0 0;
  }

  .betting-history-content {
    width: 100%;
    max-width: none;
  }

  .betting-history-table {
    font-size: 12px;
  }

  .betting-history-thead th,
  .betting-history-row td {
    padding: 8px 6px;
    font-size: 11px;
  }

  .numbers-display {
    max-width: 80px;
  }

  .view-details-btn {
    padding: 6px 12px;
    font-size: 10px;
  }
}

/* Betting Confirmation Modal Styles */
.betting-modal-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 500px !important;
  width: auto !important;
  margin: 0 !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  position: fixed !important;
}

.modal-container {
  position: relative;
  background: rgb(64, 65, 75);
  border-radius: 12px;
  width: 444px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-blue-stripe {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 100%;
  background: rgb(92, 104, 202);
}

.confirmation-table {
  width: calc(100% - 50px);
  border-collapse: collapse;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  color: rgb(204, 204, 204);
  margin: 0;
  margin-left: 50px;
  padding: 20px;
  padding-left: 80px;
  box-sizing: border-box;
}

.confirmation-table td {
  padding: 8px 20px;
  border: none;
  vertical-align: top;
  line-height: 1.4;
}

.confirmation-table tbody tr:nth-child(odd) {
  background: transparent;
}

.confirmation-table tbody tr:nth-child(even) {
  background: rgb(58, 58, 68);
}

.lottery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.lottery-title {
  font-size: 16px;
  font-weight: 700;
  color: rgb(204, 204, 204);
  margin: 0;
}

.lottery-header .bold {
  font-size: 12px;
  font-weight: 600;
  color: rgb(204, 204, 204);
}

.confirmation-table .bold {
  font-weight: 600;
  color: rgb(204, 204, 204);
}

.confirmation-table .total-amount {
  font-weight: 700;
  color: rgb(204, 204, 204);
  text-align: right;
}

.total-summary {
  font-weight: 700;
  font-size: 15px;
  color: rgb(204, 204, 204);
  text-align: right;
  padding: 15px 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-actions {
  display: flex;
  justify-content: center;
  padding: 15px 0 10px 0;
}

.modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 60px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.confirm-btn {
  max-width: 170px;
  width: 100%;
  color: rgb(255, 255, 255);
  text-transform: uppercase;
  background-color: rgb(0, 161, 236);
}

.confirm-btn:hover {
  background-color: rgb(0, 145, 212);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 161, 236, 0.3);
}

.cancel-btn {
  max-width: 170px;
  width: 100%;
  background-color: rgb(204, 204, 204);
  color: rgb(51, 51, 51);
  text-transform: uppercase;
}

.cancel-btn:hover {
  background-color: rgb(184, 184, 184);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 204, 204, 0.3);
}

/* Selected numbers styling */
#modal-selected-numbers {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 600;
  color: rgb(204, 204, 204);
  padding: 4px 20px !important;
  margin: 5px 0;
}

/* Responsive adjustments for betting modal */
@media (max-width: 768px) {
  .modal-container {
    min-width: 280px;
    margin: 20px;
  }

  .confirmation-table {
    font-size: 13px;
    padding: 15px;
    padding-left: 65px;
  }

  .confirmation-table td {
    padding: 6px 15px;
  }

  .lottery-title {
    font-size: 16px;
  }

  .modal-btn {
    padding: 8px 20px;
    font-size: 13px;
    min-width: 80px;
  }

  .total-summary {
    font-size: 14px;
    padding: 12px 15px !important;
  }

  .modal-blue-stripe {
    width: 40px;
  }
}

/* Success Modal Styles */
.success-modal-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 400px !important;
  width: 90% !important;
  margin: 0 !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  position: fixed !important;
}

.MuiPaper-root.MuiDialog-paper.jss2 {
  background: white;
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  margin: 0;
  width: 300px;
}

.success-modal-content{
  border-radius: 4px !important;
}

.MuiPaper-root.MuiAlert-root.jss4.MuiAlert-standardSuccess {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(76, 175, 80, 0.1);
  padding: 16px;
  border-radius: 4px !important;
  margin: 0;
}

.MuiAlert-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0;
}

.MuiAlert-icon .MuiSvgIcon-root {
  width: 24px;
  height: 24px;
  fill: #4caf50;
}

.MuiAlert-message {
  flex: 1;
  padding: 0;
}

.MuiTypography-root.MuiAlertTitle-root.jss5 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #333;
  line-height: 1.2;
}

.MuiAlert-message {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.MuiDialogActions-root.MuiDialogActions-spacing {
  display: flex;
  justify-content: flex-end;
  background: white;
  margin: 0;
}

.sc-oc7jpj-0.dnrKLX.sc-1kjhckj-0.byakPK {
  background: transparent;
  border: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-transform: none;
  font-family: 'Inter', sans-serif;
}

.sc-oc7jpj-0.dnrKLX.sc-1kjhckj-0.byakPK:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #333;
}

/* Responsive adjustments for success modal */
@media (max-width: 768px) {
  .success-modal-content {
    width: 95% !important;
    max-width: 350px !important;
  }
  
  .MuiDialogContent-root.jss3 {
    padding: 20px 20px 12px 20px;
  }
  
  .MuiDialogActions-root.MuiDialogActions-spacing {
    padding: 6px 20px 12px 20px;
  }
  
  .MuiTypography-root.MuiAlertTitle-root.jss5 {
    font-size: 15px;
  }
  
  .MuiAlert-message {
    font-size: 13px;
  }
}
