body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f7f7f7;
  color: #333;
}

header {
  text-align: center;
  padding: 1.5rem;
  background-color: #283593;
  color: #fff;
}

nav {
  background-color: #1a237e;
  padding: 0.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

header p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.trade-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

.team {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  flex: 1 1 300px;
  max-width: 450px;
}

.team h2 {
  margin-top: 0;
  color: #283593;
}

.input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.player-input {
  flex-grow: 1;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.team-select-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.team-select-container label {
  font-size: 0.85rem;
}
.team-select-container select {
  padding: 0.4rem;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 120px;
}

.roster-select-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.roster-select-container label {
  font-size: 0.85rem;
}
.roster-select-container select {
  padding: 0.4rem;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 150px;
}

.import-toggle-btn {
  margin: 0.5rem 0;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  background-color: #283593;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.import-toggle-btn:hover {
  background-color: #1a237e;
}

.add-btn {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  background-color: #283593;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.add-btn:hover {
  background-color: #1a237e;
}

.player-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.player-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

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

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

.player-value {
  margin-left: 1rem;
  color: #555;
  font-size: 0.9rem;
}

.remove-btn {
  background: none;
  border: none;
  color: #c62828;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 0.5rem;
}

.total-container {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #283593;
  font-size: 1rem;
}

.result {
  text-align: center;
  margin: 1rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result h2 {
  margin-top: 0;
}

#summaryText {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.settings-panel {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  margin: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.settings-panel h2 {
  flex-basis: 100%;
  margin: 0 0 0.5rem;
  color: #283593;
}
.setting-item {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}
.setting-item label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.setting-item select,
.setting-item input[type="number"],
.setting-item input[type="checkbox"] {
  padding: 0.4rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  align-self: flex-start;
  margin-top: 0.3rem;
}

.roster-tools {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  margin: 1rem;
}
.roster-tools h2 {
  margin-top: 0;
  color: #283593;
}
.import-section {
  margin-bottom: 1rem;
}
.import-section h3 {
  margin: 0 0 0.5rem 0;
  color: #283593;
}
.import-section label {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.import-section input[type="text"],
.import-section textarea,
.import-section select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.import-section button {
  margin-top: 0.5rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  background-color: #283593;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.import-section button:hover {
  background-color: #1a237e;
}
.hidden {
  display: none;
}
.import-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

#rosterDisplay h4 {
  margin: 0.5rem 0;
}
#rosterList {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.roster-player {
  background-color: #e8eaf6;
  border-radius: 4px;
  padding: 0.3rem 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}
.roster-player:hover {
  background-color: #c5cae9;
}

.roster-player.pick {
  background-color: #fff3e0;
}
.roster-player.pick:hover {
  background-color: #ffe0b2;
}

#yahooLoginBtn {
  display: none;
}