@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6 {
  font-weight: 700;
  color: #111827;
}

.uk-navbar-container {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.uk-logo {
  color: #3d195b !important;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.uk-card {
  border-radius: 10px !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  background: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.uk-card.uk-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-color: rgba(61, 25, 91, 0.15);
}

.uk-card-header {
  border-bottom: 1px solid #e5e7eb;
}

.uk-card-footer {
  border-top: 1px solid #e5e7eb;
}

.uk-button {
  border-radius: 6px !important;
  font-weight: 500;
  transition: all 0.2s ease;
}
.uk-button:hover {
  transform: translateY(-1px);
}
.uk-button:active {
  transform: translateY(0);
}

.uk-button-primary {
  background: #3d195b;
  box-shadow: 0 4px 14px 0 rgba(61, 25, 91, 0.15);
}
.uk-button-primary:hover {
  background: #5a2d82;
  box-shadow: 0 6px 20px 0 rgba(61, 25, 91, 0.2);
}

.uk-button-accent {
  background: #00ff87;
  color: #111827 !important;
  border: none;
}
.uk-button-accent:hover {
  background: rgb(0, 229.5, 121.5);
  color: #111827;
}

.uk-input,
.uk-select,
.uk-textarea {
  border-radius: 6px !important;
  border: 2px solid #e5e7eb;
  transition: all 0.2s ease;
  background-color: #fafbfc;
}
.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
  border-color: #3d195b;
  box-shadow: 0 0 0 3px rgba(61, 25, 91, 0.1);
  background-color: #ffffff;
}

.uk-table th {
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.uk-table-hover tbody tr:hover {
  background: rgba(61, 25, 91, 0.03);
}

.uk-table-striped tbody tr:nth-of-type(odd) {
  background: rgba(0, 0, 0, 0.02);
}

.uk-alert {
  border-radius: 10px !important;
  border: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.uk-alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.uk-alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

.uk-alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.uk-alert-primary {
  background: #e8def8;
  color: #3d195b;
  border-left: 4px solid #3d195b;
}

.uk-badge {
  border-radius: 4px !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.uk-dropdown {
  border-radius: 10px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

footer {
  background: linear-gradient(135deg, #3d195b 0%, rgb(34.1810344828, 14.0086206897, 50.9913793103) 100%);
  color: rgba(255, 255, 255, 0.9);
  border-top: none;
}
footer h4 {
  color: rgba(255, 255, 255, 0.8) !important;
}
footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.2s ease;
}
footer a:hover {
  color: #00ff87 !important;
}

.htmx-indicator {
  display: none;
  opacity: 0;
  transition: opacity 300ms ease-in;
  color: #3d195b;
}

.htmx-request .htmx-indicator {
  display: inline-block;
  opacity: 1;
}

.htmx-request.htmx-indicator {
  display: inline-block;
  opacity: 1;
}

.uk-tab > .uk-active > a {
  color: #333;
  border-color: #3d195b;
}

.position-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  font-weight: 600;
  font-size: 0.875rem;
}
.position-change.position-up {
  color: #10b981;
}
.position-change.position-down {
  color: #ef4444;
}
.position-change.position-same {
  color: #9ca3af;
}

.team-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f8f9fa;
  font-weight: 600;
  font-size: 0.875rem;
  color: #111827;
}

.standings-table .team-name {
  font-weight: 500;
  color: #111827;
}
.standings-table .team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.standings-table .stat-cell {
  font-variant-numeric: tabular-nums;
}
.standings-table .zone-champions {
  border-left: 3px solid #2563eb;
}
.standings-table .zone-europa {
  border-left: 3px solid #f97316;
}
.standings-table .zone-conference {
  border-left: 3px solid #22c55e;
}
.standings-table .zone-relegation {
  border-left: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.03);
}

.matchday-selector .uk-select {
  min-width: 120px;
}

.diff-stats-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}
.diff-stats-card .stat-value.positive {
  color: #10b981;
}
.diff-stats-card .stat-value.negative {
  color: #ef4444;
}
.diff-stats-card .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
}

.form-indicator {
  display: inline-flex;
  gap: 3px;
}
.form-indicator .form-result {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: white;
}
.form-indicator .form-result.win {
  background: #10b981;
}
.form-indicator .form-result.draw {
  background: #9ca3af;
}
.form-indicator .form-result.loss {
  background: #ef4444;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}
.leaderboard-item:last-child {
  border-bottom: none;
}
.leaderboard-item .rank {
  width: 28px;
  font-weight: 700;
  color: #9ca3af;
}
.leaderboard-item .rank.rank-1, .leaderboard-item .rank.rank-2, .leaderboard-item .rank.rank-3 {
  color: #3d195b;
}
.leaderboard-item .player-name {
  flex: 1;
  font-weight: 500;
}
.leaderboard-item .player-team {
  color: #9ca3af;
  font-size: 0.875rem;
}
.leaderboard-item .stat-value {
  font-weight: 700;
  font-size: 1.125rem;
  color: #111827;
  min-width: 40px;
  text-align: right;
}

.incomplete-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f59e0b;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.text-success {
  color: #10b981 !important;
}

.text-warning {
  color: #f59e0b !important;
}

.text-danger {
  color: #ef4444 !important;
}

.text-muted {
  color: #9ca3af !important;
}

.text-primary {
  color: #3d195b !important;
}

.bg-success {
  background-color: #10b981 !important;
}

.bg-warning {
  background-color: #f59e0b !important;
}

.bg-danger {
  background-color: #ef4444 !important;
}

.bg-primary {
  background-color: #3d195b !important;
}

.uk-card-primary {
  background-color: #3d195b !important;
  color: #ffffff;
}
.uk-card-primary .uk-card-title {
  color: #ffffff;
}
.uk-card-primary a {
  color: #ffffff;
  text-decoration: underline;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

a, button, input, select, textarea, .uk-card {
  transition: all 0.2s ease;
}

@media (max-width: 640px) {
  .uk-card-body {
    padding: 16px;
  }
  .standings-table {
    font-size: 0.875rem;
  }
  .standings-table .team-logo {
    width: 20px;
    height: 20px;
  }
  .form-indicator .form-result {
    width: 16px;
    height: 16px;
    font-size: 0.5rem;
  }
}
