/* General page styles */
body,
body.bg-light {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #e3f0ff 0%, #f8f9fa 100%);
  min-height: 100vh;
  padding-top: 3em;
}

/* Header styles */
h1 {
  font-size: 2.5em;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  letter-spacing: 1px;
  font-weight: 800;
  color: #222;
  margin-bottom: 0.5em;
}

h3 {
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #555;
}

p {
  font-size: 1.1em;
  color: #777;
}

/* Navbar */
.navbar {
  box-shadow: 0 4px 24px rgba(0, 123, 255, 0.08);
  
}

/* Team card styling */
.card {
  background: rgba(255,255,255,0.85);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border: none;
  backdrop-filter: blur(2px);
  transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0,123,255,0.10);
}

/* Card title */
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 1rem;
}

/* Team logo placeholder */
.team-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f1f5fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0b4da2;
}

.team-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

/* Modern team button */
.modern-team-btn,
.btn-primary {
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  padding: 0.75rem 0;
}

.modern-team-btn:hover,
.modern-team-btn:focus,
.btn-primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(0,123,255,0.18);
  background: linear-gradient(90deg, #0056b3 0%, #007bff 100%);
}

/* Card grid spacing */
.row.gy-4 {
  gap: 2rem 0;
}

/* Table styling */
/* Make standings table fit and avoid horizontal scrolling on mobile */
.table-responsive {
    overflow-x: auto;
}

@media (max-width: 576px) {
    .table-responsive {
        min-width: 0;
    }
    .table {
        font-size: 0.95em;
        width: 100%;
        table-layout: fixed;
    }
    .table th, .table td {
        padding: 0.5em 0.2em;
        word-break: break-word;
    }
}

.table,
.standings-table {
  font-size: 0.95rem;
  border-collapse: collapse;
  background: rgba(255,255,255,0.92);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  overflow: hidden;
  border: none;
}

.table th,
.table td,
.standings-table th,
.standings-table td {
  text-align: center;
  vertical-align: middle;
  font-size: 1.08rem;
  padding: 0.85rem 0.5rem;
  border: none;
}

.table-dark th,
.standings-table thead.table-dark th {
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
}

.standings-table tbody tr {
  transition: background 0.18s;
}

.standings-table tbody tr:hover {
  background: rgba(0,123,255,0.07);
}

/* Responsive tweaks */
@media (max-width: 576px) {
  h1 {
    font-size: 1.5rem;
  }
  .card-title {
    font-size: 1rem;
  }
  .modern-team-btn,
  .btn-primary {
    font-size: 0.95rem;
    padding: 0.6rem 0;
  }
  .standings-table th,
  .standings-table td,
  .table th,
  .table td {
    font-size: 0.95rem;
    padding: 0.6rem 0.3rem;
  }
}