/* slot-rtp-tool.css */

/* ---------- Base reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --table-bg: #0a1326;     /* dark blue table */
  --rim: #2c2c34;          /* dark gray rim */
  --accent: #f59e0b;       /* amber highlight */
  --white-20: rgba(255,255,255,.2);
  --white-30: rgba(255,255,255,.3);
  --shadow: 0 4px 10px rgba(0,0,0,.3);
}

/* ---------- Table surface container ---------- */
.slot-table-tool{
  background: var(--table-bg);
  border: 6.8px solid var(--rim);
  border-radius: 27px;
  padding: 20px;
  color: #e5e5e5;
  position: relative;
  overflow: hidden;
}

/* Add a subtle felt texture pattern if desired, 
   currently just a gradient to match poker feel */
.slot-table-tool::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* ---------- Input Groups ---------- */
.tool-input-group {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tool-input-group:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tool-input-group input,
.tool-input-group select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #4b5563;
    color: #fff;
}

.tool-input-group input:focus,
.tool-input-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

/* ---------- Results Section ---------- */
#result {
    backdrop-filter: blur(5px);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

#rtpBar {
    background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* ---------- Table Styling ---------- */
#result table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

#result thead th {
    border-bottom: 2px solid rgba(255,255,255,0.1);
    color: var(--accent);
}

#result td {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#result tr:last-child td {
    border-bottom: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px){
  .slot-table-tool{ padding: 15px; border-width: 4px; border-radius: 15px; }
  
  .tool-input-group {
      padding: 10px;
  }
}