/* =========================
   OLD STYLES (TABLES, FORMS, ETC.)
   ========================= */

/* --- Recorded Bets Table --- */
.table-container {
  overflow-x: auto;
  margin: 20px;
  margin-top: 40px;
  border: 1px solid #444;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  margin-top: 40px;
  font-size: 16px;
  text-align: left;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #ccc;
}

th {
  background-color: #333;
  color: #fff;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: none;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #e6e6e6;
  transition: background-color 0.2s ease;
}

tr td {
  font-family: sans-serif;
  color: #333;
  font-size: 14px;
  text-shadow: none;
}

/* Apply Comic Sans MS only for laptops (screen width 1024px - 1440px) */
@media screen and (min-width: 1024px) and (max-width: 1440px) {
  tr td {
      font-family: "Comic Sans MS", "Comic Sans", cursive;
  }
}

/* --- Upcoming Odds Area --- */
.date-header-container {
  margin: 20px 0;
  padding: 10px;
  background-color: #f5f5f5;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.date-header {
  font-size: 1.8rem;
  font-weight: bold;
  color: #343a40;
}

/* Renamed from .table-container to avoid conflict */
.table-container-upcoming {
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

/* --- Forms and Toggles (Add Odd/Bet) --- */
.specific-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f4f4f9;
}

.fixed-size-container {
  width: 60%;
  height: 70%;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.toggle-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.toggle-button {
  flex: 1;
  padding: 10px;
  margin: 0 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f4f4f9;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle-button.active {
  background-color: #007bff;
  color: white;
}

.toggle-button:hover {
  background-color: #0056b3;
  color: white;
}

.form-section {
  flex: 1;
  display: none;
}

.form-section.active {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fixed-size-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.form-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#bet-form input, #bet-form select, #type-fixture-form input {
  font-size: 1rem;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.graph-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
}

.toggle-row {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.toggle-btn {
  margin: 0 5px;
  padding: 10px 20px;
  font-size: 1rem;
  width: 200px;  /* Force all buttons to be the same size */
}

/* --- Card Row Examples --- */
.card-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.staked-card,
.profit-card {
  flex: 1;
  margin: 0 10px;
  border: 3.5px solid black; /* Black border */
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.card-label {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-value {
  font-size: 2rem;
  font-weight: bold;
}

/* Staked Cards: Flat grey background */
.staked-card {
  background: #9e9e9e39;
  color: #000000;
}

/* Profit Cards: Dynamic gradients */
.profit-green {
  background: linear-gradient(135deg, #00c853 0%, #00e676 50%, #76ff03 100%);
}
.profit-red {
  background: linear-gradient(135deg, #d50000 0%, #ff5252 50%, #ff1744 100%);
}
.profit-neutral {
  background: #9e9e9e39;
}
.profit-card {
  color: #000000;
}

.table-toggle {
  text-align: center;
  margin-top: 20px;
}

.expand-btn {
  font-size: 1.1rem;
  padding: 10px 20px;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #fff;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.expand-btn:hover {
  background: linear-gradient(135deg, #00e676, #00c853);
}


/* =========================
 NEW DASHBOARD STYLES
 ========================= */

/* === GLOBAL STYLES === */
body {
  /* Remove display: flex; or override it: */
  display: block;
  margin: 0;
  padding: 0;
  background: #F8FAFC;
  font-family: 'Inter', sans-serif;
}


/* === DASHBOARD CONTAINER === */
.dashboard-container {
  width: 90%;
  max-width: 1200px;
  margin-top: 20px;
}

/* === HEADER === */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
}

.live-badge {
  background: #22C55E;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
}

/* === TOP CARDS (PROFIT, STAKE, WINRATE) === */
.top-cards {
  display: flex;
  gap: 15px;
}

.row.g-3.align-items-stretch {
  display: flex;
  align-items: stretch; /* Forces columns to match height */
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers the content vertically */
  /* Existing styles remain unchanged */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  background: white;
  text-align: center;
}

.card-label {
  font-size: 14px;
  color: #6B7280;
  text-transform: uppercase;
}

.card-value {
  font-size: 24px;
  font-weight: bold;
}

.percentage-change {
  font-size: 12px;
  color: #22C55E;
}

.positive {
  color: #22C55E;
}

/* === PERFORMANCE OVERVIEW === */
.performance-overview {
  margin-top: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

.performance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.time-filters button {
  border: none;
  background: #E5E7EB;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.time-filters .active {
  background: #4F46E5;
  color: white;
}

/* === TODAY'S BETS === */
.todays-bets {
  margin-top: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

.todays-bets ul {
  list-style: none;
  padding: 0;
}

.todays-bets li {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.odds {
  font-weight: bold;
  color: #16A34A;
}

/* === RECENT ACTIVITY === */
.recent-activity {
  margin-top: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

.recent-activity ul {
  list-style: none;
  padding: 0;
}

.recent-activity li {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.win {
  color: #22C55E;
}

.loss {
  color: #DC2626;
}

.view-all {
  float: right;
  color: #4F46E5;
  cursor: pointer;
}



