/*
 Theme Name:   Bootscore Child
 Description:  Bootscore Child Theme
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/* 
All style editing is done via /assets/scss/_bootscore_custom.scss
*/
body {
  font-family: "Poppins", sans-serif !important;
}

input[type="text"],
input[type="number"],
select {
  background-color: #fffacd !important;
  /* background-color: rgba(255, 193, 7, 0.25); */
}
/*
input:is(:-webkit-autofill, :autofill) {
  background-color: rgba(255, 193, 7, 0.25) !important;
  border: 3px solid darkorange;
}
*/

input[readonly] {
  background-color: #b7b7b7 !important;
}

.chip-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.chip-button {
  width: 100px;
  height: 100px;
  background-size: cover;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.chip-button.red {
  background-image: url("API/REDCARPET/img/redChip_x_200.png");
}

.chip-button.black {
  background-image: url("API/REDCARPET/img/blackChip_x_200.png");
}

.chip-button.green {
  background-image: url("API/REDCARPET/img/greenChip_x_200.png");
}

.messageBox {
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  border: 1px solid black;
}

.navbar-brand img {
  max-height: 30px;
}

.content-tabs .nav-link {
  color: black !important;
  font-weight: bold !important;
}
#bootscore-navbar .nav-link {
  color: gold !important;
}
#nav-main {
  background-color: black;
}

.pt7rem {
  padding-top: 7rem !important;
}

/* Stili personalizzabili per le celle in alto */
#start {
  background-color: #ffe699;
  color: #000;
}

#win {
  background-color: #a2c4c9;
  color: #000;
}

#lose {
  background-color: #f4b084;
  color: #000;
}

#winPercentage {
  background-color: #c6e0b4;
  color: #000;
}

#averageQuota {
  background-color: #b4c7e7;
  color: #000;
}

#realTime {
  background-color: #d9d9d9;
  color: #000;
}

.dashboard {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}
.widget {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 15px;
  flex: 1 1 calc(25% - 20px);
}
.widget h2 {
  margin: 0;
  font-size: 1.2em;
}
.widget p {
  font-size: 1.8em;
  font-weight: bold;
  margin: 10px 0 0;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-top: 20px;
}
th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
th {
  background-color: #f4f4f4;
  font-weight: bold;
  color: #333;
}
tr {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.positive {
  color: #2ecc71; /* Green */
  font-weight: bold;
}
.negative {
  color: #e74c3c; /* Red */
  font-weight: bold;
}
.filters {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  gap: 15px;
}
select,
input {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}
.btn {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover {
  text-transform: uppercase !important;
}
.btn-primary {
  background-color: #1a4f8b;
  color: white;
}
.btn-primary:hover {
  background-color: #153d6b;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  border-radius: 4px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.bootscore-footer,
.bootscore-footer-info,
.bootscore-footer-columns {
  background-color: #000 !important;
  color: #fff !important;
  padding: 20px;
  text-align: center;
}

#addToMoney {
  margin-right: 0.5rem !important;
}

#addToMoney::after, #addToMoney::before, #rc-reset-save::after, #rc-reset-save::before {
  content: "";
  position: absolute !important;
  top: 1px !important;
  left: 1px !important;
}

.collapse.show {
  height: auto;
}

.select-readonly {
  pointer-events: none;
}

/* Custom Success Alert */
.success-alert {
  background: #0b31056e;
  color: #fff;
  padding: 15px 30px;
  border: 2px solid #ffd700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: borderGlow 2s infinite;
  margin: 20px 0;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.alert-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.alert-icon {
  font-size: 24px;
  color: #ffd700;
  animation: textGlow 2s infinite;
}

.alert-message {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.5px;
  animation: textGlow 2s infinite;
}

@keyframes borderGlow {
  0% {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  50% {
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  }
  100% {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
}

@keyframes textGlow {
  0% {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  50% {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  }
  100% {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
}

/* Custom Danger Alert */
.danger-alert {
  background: #0b31056e;
  color: #fff;
  padding: 15px 30px;
  border: 2px solid #dc3545;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: redBorderGlow 2s infinite;
  margin: 20px 0;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.danger-alert-icon {
  font-size: 24px;
  color: #dc3545;
  animation: redTextGlow 2s infinite;
}

.danger-alert-message {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.5px;
  animation: redTextGlow 2s infinite;
}

@keyframes redBorderGlow {
  0% {
    border-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.7);
  }
  50% {
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
  }
  100% {
    border-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.7);
  }
}

@keyframes redTextGlow {
  0% {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  50% {
    color: #dc3545;
    text-shadow: 0 0 15px rgba(220, 53, 69, 0.7);
  }
  100% {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
}

/* Custom styles for disabled elements */
.disabled-select {
  pointer-events: none;
  cursor: not-allowed;
}

/* BG Custom Colors */

.bg-custom-success {
  background-color: #84e2b7;
}
.bg-custom-danger {
  background-color: #e69ca3;
}
.bg-custom-warning {
  background-color: #f6db89;
}

.bg-custom-info {
  background-color: #a1ecfb;
}

/* Hide default page title */
.entry-header {
  color: white;
  display: none;
}

.entry-title {
  color: white;
}

#sideContent {
  color: black;
}

.max50 {
  max-width: 50px;
  max-height: 50px;
}

/* Mobile Touch Optimizations - Prevent Double-Tap Zoom */
@media (max-width: 768px) {
  /* Force disable zoom on ALL elements */
  html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
  }
  
  body {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Ultra-aggressive global touch prevention */
  *,
  *::before,
  *::after {
    touch-action: manipulation !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
  }
  
  /* Specific high-priority rules for interactive elements */
  button,
  .btn,
  input,
  select,
  textarea,
  a,
  span,
  div {
    touch-action: manipulation !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  /* Roulette-specific ultra high priority */
  .roulette-btn,
  .roulette-table,
  .roulette-table *,
  .col-keys,
  .col-keys *,
  .col-numbers,
  .col-numbers *,
  .selected-number,
  .numbers-list,
  .numbers-list *,
  [data-number],
  [data-index] {
    touch-action: manipulation !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    pointer-events: auto !important;
  }
  
  /* Container elements */
  .container,
  .container-fluid,
  .row,
  .col,
  [class*="col-"] {
    touch-action: manipulation !important;
  }
  
  /* Disable zoom on form elements specifically */
  input[type="button"],
  input[type="submit"],
  input[type="reset"] {
    touch-action: manipulation !important;
    -webkit-appearance: none !important;
  }
}

.min-h-100 {
  min-height: 100% !important;
}

.footer_widget {background-color: black !important;
color: white !important;}