/* Global Reset */
body { font-family: sans-serif; margin: 0; }

/* Login */
.login-body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f4f4f4; }
.login-box { background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center;}
.login-box input { padding: 0.5rem; margin-bottom: 1rem; width: 100%; box-sizing: border-box; }
.login-box button { padding: 0.5rem 1rem; background: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; }
.login-box button:hover { background: #0056b3; }
.error { color: red; margin-bottom: 1rem; }

/* Dashboard */
.dash-body { background-color: #f9f9f9; padding: 2rem; }
.header { display: flex; justify-content: space-between; align-items: center; background: white; padding: 1rem 2rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 2rem; }
.status-badge { padding: 0.5rem 1rem; border-radius: 20px; font-weight: bold; color: white; }
.paper { background: #ffc107; color: black; }
.live { background: #28a745; }
.logout-btn { text-decoration:none; color: #dc3545; font-weight: bold; }

/* Table */
table { width: 100%; border-collapse: collapse; background: white; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid #eee; }
th { background: #fdfdfd; }
.won { color: #28a745; font-weight: bold; }
.lost { color: #dc3545; font-weight: bold; }
.pending { color: #ffc107; font-weight: bold; }
.open { color: #17a2b8; font-weight: bold; }
/* Mode Banner */
.mode-banner { position: fixed; top: 0; left: 0; width: 100%; text-align: center; padding: 0.5rem; font-weight: bold; z-index: 9999; }
.mode-banner.paper { background: #ffc107; color: black; }
.mode-banner.live { background: #dc3545; color: white; }
body { padding-top: 40px; }
.login-body { height: calc(100vh - 40px); }


/* Tooltip container */
.strat-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  font-size: 1.25em;
}

.strat-tooltip .strat-tooltiptext {
  visibility: hidden;
  width: 100px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 4px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  margin-left: -50px;
  opacity: 0;
  font-size: 0.75rem;
  transition: opacity 0.3s;
}

.strat-tooltip:hover .strat-tooltiptext, .strat-tooltip:active .strat-tooltiptext {
  visibility: visible;
  opacity: 1;
}
/* Tooltip container */
.strat-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  font-size: 1.25em;
}

.strat-tooltip .strat-tooltiptext {
  visibility: hidden;
  width: 100px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 4px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  margin-left: -50px;
  opacity: 0;
  font-size: 0.75rem;
  transition: opacity 0.3s;
}

.strat-tooltip:hover .strat-tooltiptext, .strat-tooltip:active .strat-tooltiptext {
  visibility: visible;
  opacity: 1;
}