body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
  color: #222;
}

header {
  background-color: #111;
  color: white;
  padding: 24px;
  text-align: center;
}

nav {
  background-color: #333;
  padding: 12px;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 12px;
  text-decoration: none;
}

.nav-logout-button {
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.nav-logout-button:hover {
  background: #374151;
}

main {
  max-width: 800px;
  margin: 24px auto;
  background-color: white;
  padding: 24px;
  border-radius: 8px;
}

section {
  margin-bottom: 24px;
}

footer {
  text-align: center;
  padding: 16px;
  color: #666;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  display: block;
  font-weight: bold;
  margin-top: 12px;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

textarea {
  min-height: 100px;
}

button {
  margin-top: 16px;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
}
.home-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.home-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.primary-link-button,
.secondary-link-button {
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 700;
}

.primary-link-button {
  background: #111827;
  color: #ffffff;
}

.primary-link-button:hover {
  background: #374151;
}

.secondary-link-button {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #d1d5db;
}

.secondary-link-button:hover {
  background: #e5e7eb;
}

.home-logout-button {
  margin-top: 14px;
}

.result-card {
  margin-top: 24px;
  padding: 20px;
  background-color: #f4f4f4;
  border-left: 5px solid #111;
  border-radius: 8px;
}

.draft-evaluations-card {
  padding: 20px;
  background-color: #fff8e6;
  border-left: 5px solid rgba(133, 100, 4, 0.8);
  border-radius: 8px;
}

.draft-evaluation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  margin-top: 10px;
  background-color: #ffffff;
  border: 1px solid rgba(133, 100, 4, 0.25);
  border-radius: 8px;
}

.draft-evaluation-row .profile-edit-draft-button {
  color: #111;
  border-color: rgba(133, 100, 4, 0.6);
  background: rgba(212, 160, 60, 0.35);
  white-space: nowrap;
}

.draft-evaluation-row .profile-edit-draft-button:hover {
  background: rgba(212, 160, 60, 0.55);
}

.player-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.player-card {
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #111;
  width: 220px;
}

.player-card h3 {
  margin-top: 0;
}

.rating-scale {
  margin: 24px 0;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-left: 5px solid #111;
  border-radius: 8px;
}

.rating-scale p {
  margin: 8px 0;
}

.category-section {
  margin: 28px 0;
  padding: 24px;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.category-section h3 {
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.category-section p {
  margin-bottom: 18px;
}

.category-section label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: bold;
}

.category-section select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.player-band {
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 12px;
}

.band-top-tier {
  background-color: #d4edda;
  color: #155724;
  border-left: 5px solid #155724;
}

.band-core-group {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 5px solid #0c5460;
}

.band-development {
  background-color: #fff3cd;
  color: #856404;
  border-left: 5px solid #856404;
}

.band-support-needed {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 5px solid #721c24;
}
.category-section summary {
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-section summary::-webkit-details-marker {
  display: none;
}

.category-section summary::after {
  content: "+";
  font-size: 24px;
  font-weight: bold;
}

.category-section[open] summary::after {
  content: "-";
}

.category-section summary:hover {
  color: #444;
}

.score-1 {
  background-color: #f8d7da !important;
  border-left: 6px solid #721c24 !important;
}

.score-2 {
  background-color: #ffe5d0 !important;
  border-left: 6px solid #cc5a00 !important;
}

.score-3 {
  background-color: #fff3cd !important;
  border-left: 6px solid #856404 !important;
}

.score-4 {
  background-color: #e2f0d9 !important;
  border-left: 6px solid #5b8c2a !important;
}

.score-5 {
  background-color: #d4edda !important;
  border-left: 6px solid #155724 !important;
}
.summary-card {
  margin-top: 16px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-left: 5px solid #111;
  border-radius: 10px;
}

.summary-card h3 {
  margin-top: 0;
  font-size: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.summary-grid p {
  margin: 6px 0;
}

.summary-section {
  margin-top: 20px;
  padding: 18px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.summary-section h3 {
  margin-top: 0;
}

.summary-section summary {
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}
.form-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.form-actions button {
  flex: 0;
  min-width: 220px;
}

.secondary-button {
  background-color: #e6e6e6;
  color: #222;
  border: 1px solid #bbb;
}

.secondary-button:hover {
  background-color: #d6d6d6;
}
.players-table-header {
  display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr 0.9fr 1fr 1.4fr 1fr;
  gap: 12px;
  padding: 12px;
  background-color: #111;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  margin-bottom: 10px;
}

.player-row {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #ffffff;
}

.player-row > summary {
  display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr 0.9fr 1fr 1.4fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.player-row > summary::-webkit-details-marker {
  display: none;
}

.player-row > summary:hover {
  background-color: #f4f4f4;
}

.player-eval-summary {
  padding: 16px;
  background-color: #fafafa;
  border-top: 1px solid #ddd;
}

.band-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
}
.dashboard-body {
  background-color: #111827;
}

.dashboard-header {
  background-color: #111827;
  color: white;
  padding: 24px;
  text-align: center;
}

.dashboard-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  background-color: #111827;
  color: #111;
  border-radius: 0;
}

.dashboard-filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
  padding: 20px;
  background-color: #0f172a;
  border: 1px solid #2f3a4d;
  border-radius: 10px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  width: 100%;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: bold;
}

.filter-group select,
.filter-group input {
  width: 100%;
  height: 44px;
  background-color: #c7c2a3;
  color: #111;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  padding: 8px 12px;
  box-sizing: border-box;
}

.filter-group input::placeholder {
  color: #666;
}

@media (max-width: 900px) {
  .filter-row {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 600px) {
  .filter-row {
    grid-template-columns: 1fr;
  }
}
.dashboard-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.dashboard-table-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow-x: auto;
  padding: 16px;
}

.dashboard-table-card h2 {
  margin-top: 0;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dashboard-table th {
  background-color: #111827;
  color: white;
  padding: 10px;
  text-align: left;
  white-space: nowrap;
}

.dashboard-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e5e5;
  white-space: nowrap;
}

.dashboard-table tbody tr:nth-child(even) {
  background-color: #f0f0f0;
}

.score-cell {
  font-weight: bold;
  text-align: center;
}

.score-high {
  background-color: #d4edda;
  color: #155724;
}

.score-core {
  background-color: #d1ecf1;
  color: #0c5460;
}

.score-development {
  background-color: #fff3cd;
  color: #856404;
}

.score-support {
  background-color: #f8d7da;
  color: #721c24;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-card,
.snapshot-card {
  background-color: #111827;
  color: white;
  border: 1px solid #4b5563;
  border-radius: 10px;
  padding: 18px;
}

.dashboard-card h3,
.snapshot-card h3 {
  margin-top: 0;
}

.snapshot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  background-color: #c7c2a3;
  color: #111;
  border-bottom: 1px solid #111827;
  font-size: 14px;
}

.overall-row {
  margin-top: 8px;
  font-weight: bold;
}

.band-distribution {
  display: flex;
  height: 36px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #e5e7eb;
}

.distribution-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: #111;
}

.top-tier-bar {
  background-color: #d4edda;
}

.core-group-bar {
  background-color: #d1ecf1;
}

.development-bar {
  background-color: #fff3cd;
}

.support-bar {
  background-color: #f8d7da;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-track {
  background-color: #374151;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  background-color: #c7c2a3;
  color: #111;
  padding: 6px;
  font-weight: bold;
  text-align: right;
  border-radius: 999px;
}

@media (max-width: 1000px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-filters {
  grid-template-columns: 1fr;
}
}

.draft-button {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #856404;
}

.draft-button:hover {
  background-color: #ffeeba;
}

.save-button {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #155724;
}

.save-button:hover {
  background-color: #c3e6cb;
}

.save-confirmation {
  margin-top: 18px;
  padding: 16px;
  background-color: #d4edda;
  color: #155724;
  border-left: 5px solid #155724;
  border-radius: 8px;
}

.empty-state {
  padding: 20px;
  background-color: #fafafa;
  border: 1px dashed #bbb;
  border-radius: 10px;
  text-align: center;
  color: #555;
}
.dynamic-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.dashboard-stat-card {
  background-color: #c7c2a3;
  color: #111;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  border-left: 5px solid #ffffff;
}

.dashboard-stat-card h3 {
  font-size: 13px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
}

.dashboard-stat-card p {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

@media (max-width: 1000px) {
  .dynamic-dashboard-summary {
    grid-template-columns: 1fr 1fr;
  }
}
.overall-average-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #c7c2a3;
  color: #111;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: bold;
}

.overall-average-card span {
  font-size: 16px;
}

.overall-average-card strong {
  font-size: 24px;
}
.saved-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.danger-button {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #721c24;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.danger-button:hover {
  background-color: #f5c6cb;
}

.report-card-button {
  background: #f4ead8;
  color: #102033;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}

.report-card-button:hover {
  background: #ffffff;
}

.report-card-button:disabled {
  background: #6b7280;
  color: #d1d5db;
  cursor: not-allowed;
  opacity: 0.75;
}

.player-search {
  margin: 16px 0;
}

.player-search label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.player-search input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
}
.profile-button {
  background-color: #111827;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-weight: bold;
  cursor: pointer;
}
.profile-control-card
.profile-button:hover {
  background-color: #374151;
}
.profile-main {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 24px 24px 24px;
}

.profile-control-card {
  background: #0b1d3a;
  border: 1px solid #2f3a4d;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-control-row-full {
  width: 100%;
}

.profile-control-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.profile-control-card .control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.profile-control-card .control-group label {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-control-card select,
.profile-control-card input,
.profile-control-card button {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: none;
  padding: 12px 14px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.profile-control-card select,
.profile-control-card input {
  background: #c9c3a8;
  color: #101828;
  font-weight: 600;
}

.profile-comparison-panel {
  margin-bottom: 24px;
}

.profile-comparison-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.profile-comparison-meta p {
  background-color: #111827;
  border: 1px solid #2f3a4d;
  border-radius: 10px;
  padding: 12px;
  margin: 0;
}

.profile-comparison-table {
  display: grid;
  gap: 8px;
}

.profile-comparison-header,
.profile-comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 12px;
  align-items: center;
}

.profile-comparison-header {
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 4px 4px 4px;
}

.profile-comparison-row {
  background-color: #111827;
  border: 1px solid #2f3a4d;
  border-radius: 10px;
  padding: 12px;
}

.profile-history-clickable-row,
.selected-history-row {
  text-decoration: none;
  color: inherit;
}

.profile-history-clickable-row:hover {
  background-color: #1f2937;
  transform: translateY(-1px);
  transition: 0.15s ease;
}

.profile-subcategory-comparison-table .profile-table-header,
.profile-subcategory-comparison-table .profile-table-row {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.profile-subcategory-comparison-row span:nth-child(2) {
  font-weight: 700;
  color: #ffffff;
}

@media (max-width: 800px) {
  .profile-subcategory-comparison-table .profile-table-header {
    display: none;
  }

  .profile-subcategory-comparison-table .profile-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


@media (max-width: 800px) {
  .profile-comparison-meta {
    grid-template-columns: 1fr;
  }

  .profile-comparison-header {
    display: none;
  }

  .profile-comparison-row {
    grid-template-columns: 1fr;
  }
}

.danger-button {
  background: #f3d9dd;
  color: #7a1f1f;
  font-weight: 700;
  cursor: not-allowed;
}

.danger-button:disabled {
  opacity: 1;
}

.profile-identity-card,
.profile-panel,
.profile-stat-card {
  background-color: #0f172a;
  color: white;
  border: 1px solid #2f3a4d;
  border-radius: 12px;
  padding: 20px;
}

@media (max-width: 1100px) {
  .profile-control-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .profile-control-row-grid {
    grid-template-columns: 1fr;
  }
}

.profile-identity-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.profile-photo-block {
  text-align: center;
}

.profile-photo-placeholder {
  width: 150px;
  height: 150px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  background-color: #c7c2a3;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  border: 4px solid #ffffff;
}

.profile-photo-note {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
}

.profile-identity-info h2 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 34px;
}

.profile-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  margin-top: 16px;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.profile-stat-card h3 {
  margin-top: 0;
  font-size: 15px;
  text-transform: uppercase;
}

.profile-stat-card p {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 0;
}

.profile-band-text {
  color: #c7c2a3;
}

.profile-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-left-column,
.profile-right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-panel h3 {
  margin-top: 0;
  margin-bottom: 14px;
}
.profile-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.profile-select-wrap {
  min-width: 260px;
}

.profile-select-wrap label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: white;
}

.profile-select-wrap select {
  width: 100%;
  background-color: #c7c2a3;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
}
.profile-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-table-header,
.profile-table-row,
.profile-major-score-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  align-items: center;
  background-color: #c7c2a3;
  color: #111;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: bold;
}

.profile-table-header {
  background-color: #e5e7eb;
}

.profile-major-score-row {
  margin-bottom: 10px;
}

.profile-detail-card {
  margin-top: 4px;
}

.profile-chart-panel {
  min-height: 240px;
}

.profile-chart-placeholder {
  min-height: 180px;
  border: 2px dashed #64748b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #cbd5e1;
  background-color: rgba(255, 255, 255, 0.03);
  font-weight: bold;
}
.profile-chart-box {
  height: 320px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 2px dashed #64748b;
  border-radius: 10px;
  padding: 16px;
}
.profile-rating-list p {
  margin: 8px 0;
}

.profile-back-link a {
  font-weight: bold;
}

@media (max-width: 1100px) {
  .profile-controls-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-content-grid {
    grid-template-columns: 1fr;
  }

  .profile-identity-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-identity-grid {
    grid-template-columns: 1fr;
  }
}
.profile-control-card .profile-action-button {
  width: 100%;
  height: 72px;
  margin-top: 0;
  background-color: #c7c2a3;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

.profile-delete-evaluation-button {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(248, 113, 113, 0.8);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.profile-delete-evaluation-button:hover {
  background: rgba(185, 28, 28, 0.55);
  border-color: rgba(252, 165, 165, 0.95);
}

.profile-edit-draft-button {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(212, 160, 60, 0.8);
  border-radius: 999px;
  background: rgba(133, 100, 4, 0.35);
  color: #ffeeba;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.profile-edit-draft-button:hover {
  background: rgba(133, 100, 4, 0.55);
  border-color: rgba(212, 160, 60, 0.95);
}

.profile-control-card .profile-action-button:hover {
  background-color: #b8b294;
}
@media (max-width: 700px) {
  .profile-controls-bar {
    grid-template-columns: 1fr;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr;
  }
.profile-control-card .danger-button {
  width: 100%;
  margin-top: 0;
}
  .profile-table-header,
  .profile-table-row,
  .profile-major-score-row {
    grid-template-columns: 1fr;
  }
}
/* Player Profile page override */
.profile-main {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 24px 24px 24px;
  background-color: transparent;
  border-radius: 0;
}
.player-search-results {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.player-search-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem;
  margin-bottom: 0.35rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f7f7f7;
  cursor: pointer;
}

.player-search-result:hover {
  background: #eaeaea;
}

.player-selection-preview {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 4px solid #1f4e79;
  background: #f7f7f7;
}
.dashboard-filters {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  margin-bottom: 0.4rem;
}

.players-list-section {
  margin-top: 24px;
}

.players-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.players-section-header p {
  margin-top: 4px;
  color: #555;
}

.supabase-players-table-header,
.supabase-player-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr 1fr;
  gap: 12px;
  align-items: center;
}

.supabase-players-table-header {
  margin-top: 16px;
  padding: 12px;
  background-color: #111827;
  color: white;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
}

.supabase-player-row {
  padding: 14px 12px;
  background-color: #f4f4f4;
  border-bottom: 1px solid #ddd;
}

.supabase-player-row:last-child {
  border-radius: 0 0 8px 8px;
}

.player-card-actions,
.supabase-player-row .profile-link-button {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  line-height: 1.1;
  border: none;
  cursor: pointer;
}

.profile-link-button:hover {
  background-color: #222;
  color: #fff;
  text-decoration: none;
}
.supabase-player-row .profile-link-button {
  width: fit-content;
  min-width: 86px;
}

@media (max-width: 900px) {
  .supabase-players-table-header {
    display: none;
  }

  .supabase-player-row {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 12px;
    border-radius: 8px;
  }
}

.profile-player-search-card {
  background-color: #0f172a;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
}

.profile-player-search-card label {
  display: block;
  color: white;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.profile-player-search-card input {
  width: 100%;
  height: 54px;
  background-color: #c7c2a3;
  color: #111;
  border: none;
  border-radius: 7px;
  font-size: 22px;
  font-weight: bold;
  padding: 10px 14px;
  box-sizing: border-box;
}

.profile-player-search-card input::placeholder {
  color: #666;
}

.profile-player-search-results {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.profile-player-search-empty {
  background-color: #111827;
  color: #c7c2a3;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
}

.profile-player-search-result {
  width: 100%;
  border: none;
  border-radius: 7px;
  background-color: #f4f4f4;
  color: #111;
  padding: 12px 14px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.profile-player-search-result strong {
  display: block;
  font-size: 16px;
}

.profile-player-search-result small {
  display: block;
  color: #555;
  margin-top: 3px;
}

.profile-player-search-result em {
  font-style: normal;
  font-weight: bold;
  background-color: #000;
  color: #fff;
  padding: 7px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.profile-player-search-result:hover {
  background-color: #e7e7e7;
}

/* ============================= */
/* BETA APP PAGE SHELL */
/* Used by: players.html, evaluation.html, player-profile.html */
/* Dashboard keeps its own dashboard-body styles */
/* ============================= */

body.app-page {
  margin: 0;
  background-color: #111827;
  color: #111827;
  font-family: Arial, sans-serif;
}

body.app-page header {
  background-color: #111827;
  color: #ffffff;
  text-align: center;
  padding: 42px 24px 36px;
}

body.app-page header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
}

body.app-page header p {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.35;
  color: #ffffff;
}

body.app-page nav {
  background-color: #333333;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 20px;
  border-bottom: none;
}

body.app-page nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

body.app-page nav a:hover {
  text-decoration: underline;
}

body.app-page .nav-logout-button {
  background-color: #111827;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 15px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

body.app-page .nav-logout-button:hover {
  background-color: #1f2937;
}

body.app-page main {
  background-color: #111827;
  padding: 28px 24px 48px;
  min-height: calc(100vh - 210px);
}

/* Normal app pages keep white content cards */
body.app-page:not(.profile-theme-page) main > section {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
}

body.app-page:not(.profile-theme-page) .players-container,
body.app-page:not(.profile-theme-page) .evaluation-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

body.app-page label {
  font-weight: 700;
}

body.app-page input,
body.app-page select,
body.app-page textarea {
  border-radius: 4px;
}

/* ============================= */
/* PLAYER PROFILE DASHBOARD THEME */
/* Used only by: body.app-page.profile-theme-page */
/* ============================= */

body.profile-theme-page {
  background-color: #111827;
  color: #ffffff;
}

body.profile-theme-page main {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 24px 48px;
  background-color: #111827;
  color: #ffffff;
  border-radius: 0;
}

/* Control card stays dashboard-style navy */
body.profile-theme-page .profile-control-card {
  background-color: #0f172a;
  color: #ffffff;
  border: 1px solid #2f3a4d;
  border-radius: 16px;
}

/* Important: profile sections should NOT inherit white app-page cards */
body.profile-theme-page section {
  background-color: transparent;
  color: #ffffff;
  padding: 0;
  margin-bottom: 24px;
}

/* Main profile cards */
body.profile-theme-page .profile-identity-card,
body.profile-theme-page .profile-panel,
body.profile-theme-page .profile-stat-card,
body.profile-theme-page .profile-comparison-panel {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #2f3a4d !important;
  border-radius: 12px !important;
}

/* Profile identity layout */
body.profile-theme-page .profile-identity-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
}

body.profile-theme-page .profile-photo-block {
  text-align: center;
}

body.profile-theme-page .profile-photo-placeholder {
  width: 150px;
  height: 150px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  background-color: #c7c2a3 !important;
  color: #111827 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  border: 4px solid #ffffff;
}

body.profile-theme-page .profile-photo-note {
  font-size: 14px;
  color: #cbd5e1 !important;
  margin: 0;
}

body.profile-theme-page .profile-identity-info h2 {
  color: #ffffff !important;
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 34px;
}

body.profile-theme-page .profile-identity-info,
body.profile-theme-page .profile-identity-info p,
body.profile-theme-page .profile-identity-info span,
body.profile-theme-page .profile-identity-info strong,
body.profile-theme-page .profile-identity-grid,
body.profile-theme-page .profile-identity-grid p,
body.profile-theme-page .profile-identity-grid span,
body.profile-theme-page .profile-identity-grid strong {
  color: #ffffff !important;
}

body.profile-theme-page .profile-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  margin-top: 16px;
}

/* Stat cards */
body.profile-theme-page .profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

body.profile-theme-page .profile-stat-card {
  padding: 20px;
}

body.profile-theme-page .profile-stat-card h3 {
  color: #ffffff !important;
  margin-top: 0;
  font-size: 15px;
  text-transform: uppercase;
}

body.profile-theme-page .profile-stat-card p,
body.profile-theme-page .profile-stat-card strong,
body.profile-theme-page .profile-stat-card span {
  color: #ffffff !important;
}

/* Keep band pills readable */
body.profile-theme-page .profile-stat-card .band-pill {
  color: #111827 !important;
}

/* Profile panels and rows */
body.profile-theme-page .profile-panel {
  padding: 20px;
}

body.profile-theme-page .profile-panel h3,
body.profile-theme-page .profile-panel h4,
body.profile-theme-page .profile-panel p,
body.profile-theme-page .profile-panel span,
body.profile-theme-page .profile-panel strong {
  color: #ffffff;
}

/* Tan rows inside navy panels */
body.profile-theme-page .profile-table-header,
body.profile-theme-page .profile-table-row,
body.profile-theme-page .profile-major-score-row {
  background-color: #c7c2a3;
  color: #111827;
}

body.profile-theme-page .profile-table-header span,
body.profile-theme-page .profile-table-row span,
body.profile-theme-page .profile-major-score-row span,
body.profile-theme-page .profile-table-header strong,
body.profile-theme-page .profile-table-row strong,
body.profile-theme-page .profile-major-score-row strong {
  color: #111827;
}

/* Profile dropdowns and search inputs */
body.profile-theme-page .profile-control-card select,
body.profile-theme-page .profile-control-card input,
body.profile-theme-page .profile-player-search-card input,
body.profile-theme-page input,
body.profile-theme-page select,
body.profile-theme-page textarea {
  background-color: #c7c2a3 !important;
  color: #111827 !important;
  border: none;
  border-radius: 8px;
  font-weight: 700;
}

body.profile-theme-page input::placeholder,
body.profile-theme-page textarea::placeholder {
  color: #666666;
}

/* Report action button */
body.profile-theme-page .profile-control-card .profile-action-button {
  background-color: #f4ead8;
  color: #111827;
  border: none;
  border-radius: 8px;
  font-weight: 800;
}

body.profile-theme-page .profile-control-card .profile-action-button:hover {
  background-color: #ffffff;
}

/* Empty state */
body.profile-theme-page .empty-state {
  background-color: #0f172a;
  color: #ffffff;
  border: 1px dashed #64748b;
  border-radius: 10px;
}

/* Links on dark background */
body.profile-theme-page main a {
  color: #dbeafe;
  font-weight: 700;
}

/* Responsive profile layout */
@media (max-width: 1100px) {
  body.profile-theme-page .profile-identity-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body.profile-theme-page .profile-identity-grid {
    grid-template-columns: 1fr;
  }

  body.profile-theme-page .profile-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/* COMPARISON CHANGE PILLS */
/* Permanent single source of truth */
/* Used by Player Profile comparison views */
/* ============================= */

.comparison-change-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 160px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  color: #111827 !important;
  border-left: 6px solid transparent;
}

/* Improved / positive change */
.comparison-change-pill.comparison-improved,
.comparison-improved .comparison-change-pill {
  background-color: #e2f0d9;
  color: #111827;
  border-left-color: #5b8c2a;
}

/* No change / neutral */
.comparison-change-pill.comparison-neutral,
.comparison-neutral .comparison-change-pill {
  background-color: #fff3cd;
  color: #111827;
  border-left-color: #856404;
}

/* Decreased / attention */
.comparison-change-pill.comparison-attention,
.comparison-attention .comparison-change-pill {
  background-color: #ffe5d0;
  color: #111827;
  border-left-color: #cc5a00;
}

/* Keep nested text readable, including inside dark profile panels */
.comparison-change-pill span,
.comparison-change-pill strong,
.comparison-change-pill em,
body.profile-theme-page .profile-panel .comparison-change-pill span,
body.profile-theme-page .profile-panel .comparison-change-pill strong,
body.profile-theme-page .profile-panel .comparison-change-pill em,
body.profile-theme-page .profile-comparison-row .comparison-change-pill span,
body.profile-theme-page .profile-comparison-row .comparison-change-pill strong,
body.profile-theme-page .profile-comparison-row .comparison-change-pill em {
  color: #111827;
}

.comparison-change-pill,
.comparison-change-pill * {
  color: #111827 !important;
}

.admin-users-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-users-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.admin-users-table th,
.admin-users-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

.admin-users-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  background: #f8fafc;
}

.admin-users-table input,
.admin-users-table select {
  width: 100%;
  min-width: 130px;
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
}

.admin-user-save-button {
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.admin-user-save-button:hover {
  background: #1e293b;
}

.admin-refresh-button {
  padding: 0.5rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}

.admin-refresh-button:hover {
  background: #e2e8f0;
}

.admin-refresh-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-invite-instructions {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.admin-invite-instructions h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: #0c4a6e;
}

.admin-invite-instructions ol {
  margin: 0;
  padding-left: 20px;
  color: #0369a1;
  line-height: 1.6;
}

.admin-invite-instructions a {
  color: #0369a1;
  font-weight: 600;
}

.form-message {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.form-message:empty {
  display: none;
}

.form-message-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-message-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-link-row {
  margin-top: 12px;
  text-align: center;
}

.auth-link-row a {
  color: #0369a1;
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-link-row a:hover {
  text-decoration: underline;
}

.dashboard-empty-state {
  padding: 2rem;
  text-align: center;
  border: 1px dashed rgba(17, 24, 39, 0.25);
  border-radius: 12px;
  background-color: #f9fafb;
  color: #111827;
}

.dashboard-empty-state h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
  color: #111827;
}

.dashboard-table td.dashboard-empty-cell {
  position: sticky;
  left: 0;
  white-space: normal;
  background-color: #f8f8f8;
}

.dashboard-empty-cell .dashboard-empty-state {
  max-width: 680px;
  margin: 0 auto;
}

.dashboard-empty-state p {
  margin: 0 auto 1rem auto;
  max-width: 620px;
  color: #4b5563;
  line-height: 1.45;
}

.dashboard-empty-state .profile-link-button {
  display: inline-block;
  margin-top: 0.25rem;
}

/* ============================= */
/* PLAYER COMPARISON PAGE        */
/* ============================= */

.comparison-control-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .comparison-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .comparison-control-grid {
    grid-template-columns: 1fr;
  }
}

.comparison-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.comparison-actions .primary-link-button {
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.comparison-actions .primary-link-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comparison-warning {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  font-size: 0.9rem;
}

.comparison-result-panel {
  margin-top: 24px;
}

.comparison-player-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .comparison-player-cards {
    grid-template-columns: 1fr;
  }
}

.comparison-player-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.comparison-player-card h4 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  color: #111827;
}

.comparison-player-card p {
  margin: 0 0 8px 0;
  color: #4b5563;
  font-size: 0.9rem;
}

.comparison-eval-meta {
  font-size: 0.82rem;
  color: #6b7280;
}

.comparison-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #e5e7eb;
}

.comparison-score-row span {
  font-size: 0.9rem;
  color: #374151;
}

.comparison-score-row strong {
  font-size: 0.95rem;
  color: #111827;
}

.comparison-detail-table {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.comparison-4col {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
}

@media (max-width: 700px) {
  .comparison-4col {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4px;
    font-size: 0.82rem;
  }
}

.comparison-detail-table .profile-comparison-header {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-detail-table .profile-comparison-row {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.comparison-detail-table .profile-comparison-row:last-child {
  border-bottom: none;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s, transform 0.3s;
  color: #fff;
}

.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-exit {
  opacity: 0;
  transform: translateX(100%);
}

.toast-success {
  background: #16a34a;
}

.toast-error {
  background: #dc2626;
}

.toast-warning {
  background: #d97706;
}

.toast-info {
  background: #2563eb;
}

.toast span {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  opacity: 0.8;
}

.toast-close:hover {
  opacity: 1;
}

/* Form validation */
.field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.field-error-message {
  color: #dc2626;
  font-size: 13px;
  margin-top: 2px;
  margin-bottom: 4px;
}

/* Session expiry banner */
.session-expiry-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #d97706;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9998;
}