/* Dashboard View (Logged In) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 2.5rem;
}

/* Dashboard Hero Summary */
.stats-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stats-banner {
  grid-column: span 3;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37,99,235,0.4) 0%, rgba(10,15,30,0.8) 100%);
  border: 1px solid rgba(37,99,235,0.3);
  box-shadow: var(--shadow-lg), inset 0 0 40px rgba(0,0,0,0.5);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  z-index: 1;
  opacity: 0.5;
}

.manager-welcome {
  position: relative;
  z-index: 2;
}

.manager-welcome h2 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-banner-card {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-banner-link {
  transition: all 0.2s ease;
  cursor: pointer;
}

.stat-banner-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-banner-link:active {
  transform: translateY(1px);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.stat-value-gold {
  color: var(--accent-gold);
  text-shadow: 0 0 20px var(--accent-gold-glow);
}

.stat-value-blue {
  color: var(--accent-azure);
  text-shadow: 0 0 20px rgba(14,165,233,0.5);
}

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

.stat-icon-wrapper svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Deadline & Matchday Status */
.deadline-card {
  padding: 2rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(to right, rgba(10,15,30,0.6), rgba(37,99,235,0.15));
}

.deadline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.deadline-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}



/* Sidebar Widgets */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget-card {
  padding: 1.5rem;
}

.widget-header {
  margin-bottom: 1.25rem;
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-title svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-blue);
  fill: none;
}

/* Sidebar Leaderboard Tables */
.mini-league-table {
  width: 100%;
  border-collapse: collapse;
}

.mini-league-table th {
  text-align: left;
  padding: 0.75rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-normal);
}

.mini-league-table td {
  padding: 0.85rem 0.5rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

.mini-league-table tr:last-child td {
  border-bottom: none;
}

.mini-league-table tr.user-row td {
  background: var(--bg-hover);
  font-weight: 600;
}

.mini-rank {
  font-weight: 700;
  color: var(--text-secondary);
  width: 24px;
}

.mini-team-name {
  color: var(--text-primary);
  font-weight: 500;
}

.mini-points {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
}

/* Pitch Preview Override */
.dashboard-pitch-box {
  padding: 0;
  overflow: hidden;
}

.pitch-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  padding: 1.5rem 0.5rem;
  background: 
    linear-gradient(90deg, rgba(10,15,30,0.4), rgba(10,15,30,0.9)),
    url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%23050505"/><path d="M50,0 L50,100 M0,50 L100,50" stroke="rgba(37,99,235,0.4)" stroke-width="2"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(37,99,235,0.4)" stroke-width="2"/><rect x="-5" y="30" width="20" height="40" fill="none" stroke="rgba(37,99,235,0.4)" stroke-width="2"/><rect x="85" y="30" width="20" height="40" fill="none" stroke="rgba(37,99,235,0.4)" stroke-width="2"/></svg>') center/cover;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.pitch-line-center, .pitch-circle-center {
  display: none; /* Replaced by background SVG */
}

.pitch-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 10;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pitch-player-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-bounce);
  cursor: pointer;
}


.dashboard-pitch-box .fut-card {
  width: 125px;
  height: 180px;
}

.dashboard-pitch-box .fut-player-name {
  font-size: 0.8rem;
}

.dashboard-pitch-box .fut-player-pts {
  font-size: 1rem;
}

/* Position Filter Buttons */
.position-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pos-btn {
  flex: 1;
  padding: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pos-btn.active {
  background: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
}

/* Player List Rows */
.player-list-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.player-list-row:last-child {
  border-bottom: none;
}

.player-list-avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-list-avatar svg {
  width: 24px;
  height: 24px;
  fill: var(--text-muted);
}

.player-list-info {
  flex: 1;
}

.player-list-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.player-list-pos {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.player-list-pts {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}


