/* --------------------------------------------------
   GLOBAL STYLES
-------------------------------------------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #f4f4f4;
  color: #222;
  line-height: 1.5;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

.app-header {
  background: #004b23;
  color: #fff;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.app-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

.budget-display {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.budget-display strong {
  font-size: 1.2rem;
  color: #ffdd57;
}

.gameweek-select label {
  margin-right: 0.4rem;
}

/* --------------------------------------------------
   MAIN LAYOUT
-------------------------------------------------- */

.app-main {
  display: flex;
  padding: 1rem;
  gap: 1rem;
}

.left-panel,
.right-panel {
  flex: 1;
}

.panel {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.panel h2 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* --------------------------------------------------
   FILTERS
-------------------------------------------------- */

.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.filter-group input,
.filter-group select {
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* --------------------------------------------------
   PLAYER LIST
-------------------------------------------------- */

.players-list {
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem;
  background: #fafafa;
}

.player-card {
  background: #fff;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin-bottom: 0.5rem;
  cursor: grab;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-card:hover {
  background: #f0f0f0;
}

.player-info {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-weight: bold;
}

.player-meta {
  font-size: 0.8rem;
  opacity: 0.8;
}

.player-price {
  font-weight: bold;
  color: #004b23;
}

/* --------------------------------------------------
   TEAM PANEL
-------------------------------------------------- */

.team-panel h3 {
  margin-bottom: 0.4rem;
}

.team-rules {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.team-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-line h3 {
  margin-bottom: 0.4rem;
}

.dropzone {
  min-height: 70px;
  border: 2px dashed #bbb;
  border-radius: 6px;
  padding: 0.5rem;
  background: #fafafa;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dropzone .player-card {
  cursor: default;
  background: #e8ffe8;
  border-color: #8bc34a;
}

/* --------------------------------------------------
   TEAM SUMMARY
-------------------------------------------------- */

.team-summary {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #f9f9f9;
  border-radius: 6px;
  border: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-summary strong {
  color: #004b23;
}

/* --------------------------------------------------
   COUNTY LIMITS
-------------------------------------------------- */

.county-limits {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #fff7e6;
  border: 1px solid #ffcc80;
  border-radius: 6px;
}

.county-warning {
  color: #d9534f;
  font-weight: bold;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */

button {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #004b23;
  color: #fff;
  font-size: 0.9rem;
}

button.secondary {
  background: #777;
}

button:hover {
  opacity: 0.9;
}

/* --------------------------------------------------
   TRANSFERS PANEL
-------------------------------------------------- */

.transfers-log {
  margin-top: 1rem;
}

.transfers-log ul {
  list-style: none;
}

.transfers-log li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
  font-size
