/* --- DASHBOARD STYLING --- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;700;900&display=swap');

:root {
  --primary: #2ecc71;
  --secondary: #3498db;
  --bg-color: #e0f7fa;
  --panel-bg: #ffffff;
  --text-main: #2c3e50;
}

.roblox-wrapper {
  font-family: 'Nunito', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-color);
  color: var(--text-main);
  padding: 20px;
  border-radius: 20px;
}

h1, h2, h3, h4, button { font-family: 'Fredoka One', cursive; }

/* HEADER */
.game-header { text-align: center; margin-bottom: 20px; }
.highlight { color: var(--primary); text-shadow: 1px 1px 0 #000; -webkit-text-stroke: 1px #000; }

/* LAYOUT GRID (Sidebar + Main) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 250px 1fr; /* Sidebar fixed width, Main takes rest */
  gap: 25px;
}

/* SIDEBAR TIMERS */
.sidebar-timers {
  background: #fff;
  padding: 15px;
  border-radius: 16px;
  border: 2px solid #ecf0f1;
  height: fit-content;
  position: sticky; /* Keeps it visible on scroll */
  top: 20px; 
}
.timer-card {
  display: flex; align-items: center; gap: 10px;
  background: #f8f9fa; border-radius: 10px; padding: 10px; margin-bottom: 10px;
  border-left: 5px solid #ccc;
}
.timer-card h4 { margin: 0; font-size: 14px; color: #555; }
.countdown { font-weight: 900; font-size: 18px; font-family: 'Fredoka One'; }
.icon { font-size: 24px; }

/* Glow Effects for Timers */
.red-glow { border-left-color: #e74c3c; background: #fdedec; }
.red-glow .countdown { color: #e74c3c; }

.blue-glow { border-left-color: #3498db; background: #ebf5fb; }
.blue-glow .countdown { color: #3498db; }

.gold-glow { border-left-color: #f1c40f; background: #fef9e7; }
.gold-glow .countdown { color: #f39c12; }

/* MAIN TOOLS AREA */
.main-tools { min-height: 500px; }

/* NAV BUTTONS */
.game-nav { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.nav-btn {
  flex: 1; padding: 12px; border: none; background: #fff; border-bottom: 4px solid #ddd;
  border-radius: 10px; cursor: pointer; color: #7f8c8d; transition: 0.2s;
}
.nav-btn.active { background: var(--primary); color: white; border-bottom-color: #27ae60; transform: translateY(-2px); }

/* SECTIONS */
.game-section { display: none; background: #fff; padding: 25px; border-radius: 16px; border-bottom: 5px solid #bdc3c7; }
.game-section.active-tab { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

/* CALCULATOR */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.game-input { width: 100%; padding: 10px; border: 2px solid #eee; border-radius: 8px; font-weight: bold; margin-bottom: 10px; box-sizing: border-box;}
.mutation-box { height: 180px; overflow-y: auto; border: 2px solid #eee; padding: 5px; border-radius: 8px; }
.mutation-item label { display: block; padding: 5px; font-size: 13px; cursor: pointer; }
.mutation-item:hover { background: #f0f0f0; }

.sheckle-value { font-size: 36px; color: #f39c12; text-align: center; margin: 15px 0; }
.breakdown-row { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px dashed #eee; padding: 5px 0; }

/* BUTTONS */
.game-btn { width: 100%; padding: 12px; border: none; border-radius: 10px; font-size: 16px; color: white; cursor: pointer; }
.game-btn.green { background: #2ecc71; border-bottom: 4px solid #27ae60; }
.game-btn.blue { background: #3498db; border-bottom: 4px solid #2980b9; }
.game-btn.small { width: auto; padding: 8px 15px; }
.clear-btn { background: #e74c3c; margin-top: 15px; }

/* TRADE */
.trade-layout { display: flex; gap: 10px; align-items: flex-start; }
.trade-side { flex: 1; background: #f8f9fa; padding: 10px; border-radius: 10px; }
.trade-list { list-style: none; padding: 0; min-height: 80px; }
.trade-list li { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px solid #eee; padding: 5px 0;}
.verdict-badge { background: #ccc; color: white; padding: 8px 20px; border-radius: 20px; margin-top: 10px; text-align: center; }
.verdict-badge.Win { background: #2ecc71; }
.verdict-badge.Fair { background: #f1c40f; }
.verdict-badge.Lose { background: #e74c3c; }

/* NOTIFICATION */
.notify-banner { background: #2ecc71; color: white; padding: 10px; border-radius: 10px; display: flex; justify-content: space-between; margin-bottom: 20px; }
.hidden { display: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar-timers { display: flex; gap: 10px; position: relative; top: 0; overflow-x: auto; padding-bottom: 5px; }
  .timer-card { flex: 1; min-width: 120px; }
  .calc-grid, .trade-layout { grid-template-columns: 1fr; }
}