html, body {
  height: 100%;
}

:root {
  --app-bg-start: #f8fbff;
  --app-bg-end: #eef3ff;
  --footer-bg: #111827;
  --footer-text: #e5e7eb;
  --text-muted: #495057;
  --btn-outline-border: #6c757d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --app-bg-start: #0b1220;
    --app-bg-end: #111827;
    --footer-bg: #0a0f1b;
    --footer-text: #e5e7eb;
    --text-muted: #adb5bd;
    --btn-outline-border: #adb5bd;
  }
}

body {
  background: linear-gradient(180deg, var(--app-bg-start) 0%, var(--app-bg-end) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .container {
  flex: 1 0 auto;
}

.app-navbar {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

[data-bs-theme='dark'] .app-navbar {
  background-color: rgba(17, 24, 39, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.text-muted {
  color: var(--text-muted) !important;
  font-weight: 500;
}

.btn-outline-secondary {
  border-color: var(--btn-outline-border);
  color: var(--btn-outline-border);
  border-width: 1.5px;
}

.btn-outline-secondary:hover {
  background-color: var(--btn-outline-border);
  border-color: var(--btn-outline-border);
  color: #fff;
}

.btn-outline-primary, .btn-outline-danger {
  border-width: 1.5px;
}

[data-bs-theme='dark'] .btn-outline-secondary {
  border-color: #adb5bd;
  color: #e5e7eb;
}

[data-bs-theme='dark'] .btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

.badge {
  font-weight: 600;
  padding: 0.4em 0.65em;
}

.card {
  border: none;
  border-radius: 14px;
}

[data-bs-theme='dark'] .card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.league-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.footer-bar {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.section-header {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dee2e6;
}

[data-bs-theme='dark'] .section-header {
  border-bottom-color: #495057;
}

.table {
  --bs-table-striped-bg: rgba(0, 0, 0, 0.02);
}

[data-bs-theme='dark'] .table {
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

/* Selektor języka - zapewnij, że dropdown nie chowa się pod innymi elementami */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  z-index: 1050;
  margin-top: 0.5rem;
}

/* Upewnij się, że zawartość strony ma niższy z-index */
.container {
  position: relative;
  z-index: 1;
}