:root {
  --primary-color: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --accent-gold: #facc15;
  --accent-silver: #c0c0c0;
  --accent-bronze: #cd7f32;
  --success: #22c55e;
  --danger: #ef4444;
  --dark-bg: #0f172a;
  --card-bg: #1e293b;
  --card-hover: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #334155;
  --glass-bg: rgba(15, 23, 42, 0.8);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.16);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --transition: all 0.3s ease;
}

/* Navbar Styles */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--dark-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-logo i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.navbar-logo .highlight {
    color: var(--primary-color);
    font-weight: 400;
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-signup {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-signup:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Media queries dla responsywności */
@media (max-width: 950px) {
    .navbar-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .btn-login span {
        display: none;
    }
    
    .user-name {
        display: none;
    }
    
    .user-menu i {
        display: none;
    }
}

@media (max-width: 640px) {
    .navbar-container {
        padding: 1rem;
    }
    
    .btn-login {
        padding: 0.5rem;
    }
    
    .btn-signup {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .navbar-logo span {
        font-size: 1.1rem;
    }
    
    .btn-logout {
        padding: 0.5rem;
    }
    
    .btn-logout span {
        display: none;
    }
}

/* Możesz dodać tę klasę do obsługi menu mobilnego z JavaScript */
.navbar-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Styl dla kontenera głównego */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ===== Header Styles ===== */
header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.1;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo i {
  font-size: 2.5rem;
  animation: bounce 2s infinite;
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo h1 span {
  font-weight: 300;
  opacity: 0.8;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 180px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Main Content Styles ===== */
main {
    display: block;
}

/* Dashboard panel na całej szerokości */
.dashboard-panel {
    width: 100%;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    max-width: 100%;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-group label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.filter-group select {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.filter-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.search {
  position: relative;
  width: 300px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--dark-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: inherit;
  transition: var(--transition);
}

.search input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
  outline: none;
}

.search input::placeholder {
  color: var(--text-muted);
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-toggle button {
  background-color: var(--dark-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.view-toggle button.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ===== Rankings Container ===== */
.rankings-container {
  margin-bottom: 2rem;
}

.rankings-container h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.rankings-container h2 i {
  color: var(--accent-gold);
}

/* ===== Podium Styles ===== */
.podium {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: var(--transition);
}

.podium-item:hover {
  transform: translateY(-10px);
}

.avatar-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.medal {
  position: absolute;
  bottom: -6px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-bg);
  z-index: 2;
}

.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

.silver {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  box-shadow: 0 0 10px rgba(229, 231, 235, 0.4);
}

.bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--dark-bg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.podium-first .avatar {
  width: 100px;
  height: 100px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.podium-points {
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 0.25rem;
}

.podium-position {
  font-size: 2.5rem;
  font-weight: 800;
  opacity: 0.15;
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
}

.podium-second {
  margin-bottom: 2rem;
}

.podium-first {
  margin-bottom: 4rem;
}

/* Style for user profile links in ranking */
.podium-item .user-profile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.podium-item .user-profile-link:hover {
    transform: scale(1.05);
}

.podium-item .user-profile-link h3 {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.podium-item .user-profile-link:hover h3 {
    color: var(--primary-color);
}

.table-user.user-profile-link {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.table-user.user-profile-link:hover {
    color: var(--primary-color);
}

.table-user.user-profile-link:hover img {
    border-color: var(--primary-light);
}

/* ===== Ranking Cards ===== */
.ranking-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.participant-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.participant-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background-color: var(--card-hover);
}

.rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.3;
}

.participant-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.participant-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var (--primary-color);
  padding: 2px;
}

.info-container {
  flex: 1;
}

.info-container h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.group {
  font-size: 0.85rem;
  color: var (--text-muted);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background-color: rgba(55, 65, 81, 0.5);
  border-radius: var(--radius-sm);
}

.stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.stat {
  text-align: center;
}

.stat .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat .label {
  font-size: 0.8rem;
  color: var (--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.streak {
  margin-top: auto;
}

.streak-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.success {
  background-color: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.dot.fail {
  background-color: var(--danger);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--dark-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 500;
}

.pagination button.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination button:hover:not(.active) {
  background-color: var(--card-hover);
}

.pagination button.ellipsis {
  cursor: default;
}

.pagination button.next {
  width: auto;
  padding: 0 1rem;
}

/* ===== Data Insights ===== */
.data-insights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.insight-card {
  background-color: var(--card-bg);
  border-radius: var (--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.insight-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.insight-card h3 i {
  color: var(--primary-color);
}

.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.match:last-child {
  border-bottom: none;
}

.team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.team:last-child {
  justify-content: flex-end;
}

.vs {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.date {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 0.15rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.stat-bars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bar-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.bar {
  height: 12px;
  background-color: var(--dark-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
  border-radius: var(--radius-sm);
}

/* ===== Footer ===== */
footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-brand i {
  color: var(--primary-color);
}

.footer-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* ===== Animations ===== */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 1100px) {
  main {
    grid-template-columns: 1fr;
  }
  
  .data-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 900px) {
  .ranking-cards {
    grid-template-columns: 1fr;
  }
  
  .filters {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search {
    width: 100%;
  }
  
  .header-stats {
    gap: 1rem;
  }
  
  .stat-card {
    flex: 1;
    min-width: auto;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }
  
  header {
    padding: 1.5rem 1rem;
  }
  
  .logo h1 {
    font-size: 1.8rem;
  }
  
  .podium {
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
    padding-bottom: 0;
  }
  
  .podium-second,
  .podium-first {
    margin-bottom: 0;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-brand {
    justify-content: center;
  }
}

/* Style dla tabeli rankingowej */

.ranking-table {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 1rem;
    text-align: left;
}

.ranking-table thead {
    background-color: var(--dark-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.ranking-table tbody tr:last-child {
    border-bottom: none;
}

.ranking-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.table-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.table-user span {
    font-weight: 500;
}

.rank-col {
    width: 80px;
    font-weight: 600;
    color: var(--text-muted);
}

.participant-col {
    min-width: 250px; /* Slightly wider to fill gap left by group column */
}

/* Hide group-related elements */
.group-col,
.group-badge,
.group {
    display: none;
}

.points-col,
.hits-col,
.exact-col {
    width: 100px;
    font-weight: 600;
    text-align: center;
}

.points-col {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.trend-col {
    width: 150px;
}

.trend-col .streak-dots {
    justify-content: flex-start;
}

/* Responsywność tabeli */
@media (max-width: 950px) {
    .hits-col,
    .exact-col {
        display: none;
    }
}

@media (max-width: 640px) {
    .ranking-table th,
    .ranking-table td {
        padding: 0.75rem;
    }
    
    .table-user span {
        font-size: 0.9rem;
    }
    
    .rank-col {
        width: 50px;
    }
    
    .participant-col {
        min-width: 150px;
    }
}

/* Zmianę przycisków przełączania widoku, aby wskazywały aktywny widok */
.view-toggle button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Style dla sekcji użytkownika */

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.user-menu:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-name {
    font-weight: 500;
    color: var (--text-primary);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-logout:hover {
    background-color: rgba(239, 68, 68, 0.2);
}

/* Media query dla lepszego wykorzystania przestrzeni na szerokich ekranach */
@media (min-width: 1400px) {
    .dashboard-panel {
        max-width: 100%; /* Changed from 1200px to 100% */
        margin: 0 auto;
    }
}

/* Responsywność tabeli */
@media (max-width: 1200px) {
    .container {
        padding: 1rem;
    }
    
    .dashboard-panel {
        padding: 1rem;
    }
    
    .ranking-table {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .podium {
        flex-direction: column-reverse;
        align-items: center;
    }
    
    .podium-first {
        margin-bottom: 2rem;
    }
    
    .ranking-table th, 
    .ranking-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .group-col, 
    .hits-col, 
    .exact-col {
        display: none;
    }
}

@media (max-width: 480px) {
    .trend-col {
        display: none;
    }
    
    .pagination button {
        width: 35px;
        height: 35px;
    }
}

/* Optymalizacja filtrów */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-sm);
}

.filter-group, 
.search {
    flex: 1;
}

.search {
    min-width: 200px;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group, 
    .search,
    .view-toggle {
        width: 100%;
    }
    
    .view-toggle {
        display: flex;
        justify-content: center;
    }
}

/* ===== Login Page Styles ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    min-height: calc(100vh - 300px); /* Adjust for navbar and footer */
}

.login-card {
    width: 100%;
    max-width: 500px;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.login-header {
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.login-logo {
    margin: 0 auto 1.5rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.login-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: var(--radius-sm);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-family: inherit;
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: flex-end; /* Changed from space-between to flex-end */
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input {
    accent-color: var(--primary-color);
}

.remember-me label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.btn-login-submit {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.login-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    background-color: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.login-footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Active state for navbar login button */
.btn-login.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

/* Responsive styles for login page */
@media (max-width: 640px) {
    .login-card {
        margin: 0 1rem;
    }
    
    .login-header {
        padding: 1.5rem 1rem;
    }
    
    .login-form {
        padding: 1.5rem 1rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .login-footer {
        padding: 1.5rem 1rem;
    }
}

/* ===== Clean Login Page Styles ===== */
.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
    background-color: var(--dark-bg);
}

.login-page main {
    flex: 1;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-top: 3rem;
}

.site-logo i {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.site-logo .highlight {
    color: var(--primary-color);
    font-weight: 400;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 3rem;
}

.login-back {
    margin-top: 2rem;
}

.login-back a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.login-back a:hover {
    color: var(--primary-color);
}

.login-simple-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .site-logo {
        font-size: 1.5rem;
        padding-top: 2rem;
    }
    
    .site-logo i {
        font-size: 2rem;
    }
}

/* ===== User Statistics Page Styles ===== */
.user-profile {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary-color);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-tile {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--card-hover);
}

.stat-icon {
    height: 50px;
    width: 50px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.user-stats-charts {
    background-color: var(--card-bg);
    border-radius: var (--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.chart-container h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.chart-container h3 i {
    color: var(--primary-color);
}

.progress-chart {
    height: 200px;
    position: relative;
}

.chart-placeholder {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 1rem;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 0.5rem;
}

.chart-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.chart-bar {
    width: 30px;
    min-height: 6px;
    background: linear-gradient(to top, var(--primary-dark), var(--primary-color));
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.chart-bar:hover {
    transform: scaleY(1.05);
    background: linear-gradient(to top, var(--primary-dark), var(--primary-light));
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.chart-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.predictions-history {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.predictions-table {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.predictions-table table {
    width: 100%;
    border-collapse: collapse;
}

.predictions-table th,
.predictions-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.predictions-table th {
    background-color: var(--dark-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.predictions-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.predictions-table.compact th.status-col,
.predictions-table.compact td.status-col {
    width: 170px;
    min-width: 170px;
}

.predictions-table.compact td.status-col .prediction-status {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
}

.match-teams .vs {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.match-result, .user-prediction {
    font-weight: 600;
    font-size: 1.1rem;
}

.prediction-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background-color: rgba(15, 23, 42, 0.35);
    font-size: 0.85rem;
    font-weight: 600;
}

.prediction-status.exact {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.45);
    background-color: rgba(34, 197, 94, 0.12);
}

.prediction-status.correct {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.45);
    background-color: rgba(245, 158, 11, 0.12);
}

.prediction-status.wrong {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.45);
    background-color: rgba(239, 68, 68, 0.12);
}

.points-earned {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Responsive styles for user stats page */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
    }
    
    .section-actions .search {
        width: 100%;
    }
    
    .predictions-table th,
    .predictions-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .meta-item {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Admin Panel Styles ===== */
.admin-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-main {
    display: flex;
    flex: 1;
    margin-top: 1rem;
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-right: 1.5rem;
    border: 1px solid var(--border-color);
    height: auto;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-left-color: var(--primary-light);
}

.sidebar-link.active {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.admin-content {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
}

.admin-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.admin-date i {
    color: var(--primary-color);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background-color: var(--dark-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.stat-icon.users {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.stat-icon.matches {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.stat-icon.predictions {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.system {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-change {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.admin-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.admin-widget {
    background-color: var(--dark-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-header h3 i {
    color: var(--primary-color);
}

.widget-action {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.widget-action:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.widget-content {
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-item:first-child {
    padding-top: 0;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.activity-icon.green {
    background-color: var(--success);
}

.activity-icon.blue {
    background-color: var(--primary-color);
}

.activity-icon.red {
    background-color: var(--danger);
}

.activity-icon.yellow {
    background-color: #f59e0b;
}

.activity-details {
    flex: 1;
}

.activity-text {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.alert-item:last-child {
    margin-bottom: 0;
}

.alert-item i {
    font-size: 1.25rem;
}

.alert-item.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
}

.alert-item.warning i {
    color: #f59e0b;
}

.alert-item.info {
    background-color: rgba(14, 165, 233, 0.1);
    border-left: 3px solid var(--primary-color);
}

.alert-item.info i {
    color: var(--primary-color);
}

.alert-item.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-left: 3px solid var(--success);
}

.alert-item.success i {
    color: var(--success);
}

.alert-message {
    flex: 1;
}

.alert-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.alert-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Admin link in navbar */
.nav-link.admin-link {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ef4444;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.nav-link.admin-link:hover, 
.nav-link.admin-link.active {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ef4444;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .admin-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-main {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
    }
    
    .sidebar-link {
        width: 50%;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar-link {
        width: 100%;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== Admin Buttons ===== */
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.user-actions .admin-btn {
    width: 2.2rem;
    padding: 0.4rem;
    box-sizing: border-box;
}

.admin-btn.success {
    background-color: var(--success);
    color: white;
}

.admin-btn.success:hover {
    background-color: #1ca350;
}

.admin-btn.secondary {
    background-color: var(--card-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.admin-btn.secondary:hover {
    background-color: var(--card-bg);
}

.admin-btn.danger {
    background-color: var(--danger);
    color: white;
}

.admin-btn.danger:hover {
    background-color: #d53535;
}

.admin-btn.warning {
    background-color: #f59e0b;
    color: white;
}

.admin-btn.warning:hover {
    background-color: #d88a09;
}

.admin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Admin Header ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-header h1 i {
    color: var(--primary-color);
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

/* ===== Admin Toolbar ===== */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-toolbar .search {
    width: 300px;
}

.filters {
    display: flex;
    gap: 0.75rem;
}

.filters select {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    cursor: pointer;
}

.filters select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.bulk-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== Admin Table ===== */
.admin-table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: var(--dark-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-cell img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-login {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.badge.admin {
    background-color: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.badge.moderator {
    background-color: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.badge.user {
    background-color: rgba(14, 165, 233, 0.2);
    color: var(--primary-color);
}

.badge.success {
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.badge.warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.badge.danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: var(--card-hover);
    color: var(--text-primary);
}

/* Admin Pagination */
.admin-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.admin-pagination span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive - Admin Users Page */
@media (max-width: 1200px) {
    .admin-toolbar {
        flex-direction: column;
    }
    
    .admin-toolbar .search {
        width: 100%;
    }
    
    .filters {
        width: 100%;
        justify-content: space-between;
    }
    
    .bulk-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3),
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4),
    .admin-table th:nth-child(7),
    .admin-table td:nth-child(7) {
        display: none;
    }
    
    .admin-pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters select {
        width: 100%;
    }
    
    .bulk-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .admin-table th:nth-child(5), 
    .admin-table td:nth-child(5) {
        display: none;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Admin Search Styles */
.admin-search {
    position: relative;
    width: 300px;
}

.admin-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: var(--radius-sm);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-family: inherit;
    transition: var(--transition);
}

.admin-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
    outline: none;
}

.admin-search input::placeholder {
    color: var(--text-muted);
}

.admin-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Responsive styles for admin search */
@media (max-width: 1200px) {
    .admin-search {
        width: 100%;
    }
}

/* Update existing admin toolbar styles */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* ===== User Profile Styles ===== */
.user-profile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
}

.profile-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.profile-tab:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.profile-tab.active {
    color: var(--primary-color);
    background-color: rgba(14, 165, 233, 0.1);
    border-bottom: 2px solid var(--primary-color);
}

.profile-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.profile-section.active {
    display: block;
}

.profile-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-big-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.profile-big-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-form {
    margin-bottom: 2.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.danger-zone {
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.danger-zone h3 {
    color: var(--danger);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.danger-zone p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.danger-actions {
    display: flex;
    gap: 1rem;
}

.password-strength {
    margin-bottom: 1.5rem;
}

.strength-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.strength-label span {
    color: var(--success);
    font-weight: 500;
}

.strength-meter {
    height: 6px;
    background-color: var(--dark-bg);
    border-radius: 3px;
    overflow: hidden;
}

.strength-value {
    height: 100%;
    border-radius: 3px;
}

.login-history {
    margin-top: 1.5rem;
}

.login-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.login-item:last-child {
    border-bottom: none;
}

.login-device {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.login-device i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.device-name {
    font-weight: 500;
    color: var(--text-primary);
}

.device-ip {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-time {
    flex: 1;
    text-align: center;
}

.time-text {
    font-weight: 500;
    color: var(--text-primary);
}

.location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.login-status.success {
    color: var(--success);
}

.login-status i {
    font-size: 0.7rem;
}

.security-section {
    margin-top: 3rem;
}

.security-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Animation for tab switching */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive styles for user profile */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar-actions {
        flex-direction: row;
    }
    
    .login-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .login-time, .login-status {
        text-align: left;
    }
}

/* ===== Matches Page Styles ===== */
.matches-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary-color);
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.match-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.match-card.live {
    border-left: 3px solid #ff6b6b;
}

.match-card.upcoming {
    border-left: 3px solid var(--primary-color);
}

.match-card.awaiting-result {
    border-left: 3px solid #f59e0b;
}

.match-card.finished {
    border-left: 3px solid var(--success);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
}

.match-competition {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.match-competition img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.match-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.match-date.live {
    color: #ff6b6b;
    font-weight: 600;
}

.live-icon {
    font-size: 0.6rem;
    color: #ff6b6b;
    animation: pulse 1.5s infinite;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1rem;
}

.team-home, .team-away {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 110px;
}

.team-home img, .team-away img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.team-home span, .team-away span {
    font-weight: 600;
    font-size: 1rem;
}

.team-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

/* Match status styles */
.match-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 80px;
}

.match-status.upcoming {
    color: var(--primary-color);
    font-weight: 500;
}

.match-status.live {
    color: #ff6b6b;
    font-weight: 600;
}

.match-status.live .match-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff6b6b;
    padding: 0 0.5rem;
    background-color: rgba(255, 107, 107, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.match-status.finished span {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team-home, .team-away {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .team-home {
        flex-direction: row-reverse;
    }
    
    .team-score {
        margin-top: 0;
        font-size: 1.3rem;
        min-width: 30px;
        text-align: center;
    }
    
    .match-status {
        margin: 0.5rem 0;
        width: 100%;
    }
}

.match-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.match-status.upcoming {
    color: var(--primary-color);
    font-weight: 500;
}

.match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
}

.match-score.live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: rgba(255, 107, 107, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.match-score.live span {
    font-size: 1.5rem;
    font-weight: 700;
}

.match-score.live .match-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff6b6b;
    padding: 0 0.5rem;
}

.match-score.finished {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.match-score.finished span {
    font-size: 1.5rem;
    font-weight: 700;
}

.match-score.finished .match-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.match-prediction-form {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-prediction-form p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.prediction-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-input {
    width: 50px;
    height: 40px;
    text-align: center;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.2rem;
    transition: var(--transition);
}

.score-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
    outline: none;
}

.match-prediction-info {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.prediction-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.prediction-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.prediction-value {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.prediction-value.exact {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.prediction-value.correct {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary-light);
}

.prediction-value.wrong {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.points-earned {
    margin-left: auto;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.prediction-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background-color: rgba(15, 23, 42, 0.35);
    font-size: 0.9rem;
    font-weight: 600;
}

.prediction-status.success,
.prediction-status.exact {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.45);
    background-color: rgba(34, 197, 94, 0.12);
}

.prediction-status.correct {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.45);
    background-color: rgba(245, 158, 11, 0.12);
}

.prediction-status.wrong {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.45);
    background-color: rgba(239, 68, 68, 0.12);
}

.prediction-status.in-progress {
    color: var(--primary-color);
}

.match-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.match-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.match-details-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.match-details-link a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.pagination-container {
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}

/* Animation for live icon */
@keyframes pulse {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

/* Responsive styles for matches */
@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .match-prediction-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .match-prediction-form .admin-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team-home, .team-away {
        justify-content: center;
    }
    
    .match-score.live, .match-score.finished {
        margin: 0.5rem 0;
    }
    
    .prediction-row {
        flex-wrap: wrap;
    }
    
    .points-earned {
        margin-left: 0;
        width: 100%;
        text-align: right;
    }
}

/* Team flag display in prediction history */
.team-flag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.team-flag img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    box-shadow: var(--shadow-sm);
}

/* Compact predictions table */
.predictions-table.compact table {
    font-size: 0.9rem;
}

.predictions-table.compact th,
.predictions-table.compact td {
    padding: 0.32rem 0.45rem;
    line-height: 1.2;
}

.predictions-table.compact .match-teams {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: auto;
}

.predictions-table.compact .team-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.predictions-table.compact .team-flag span {
    text-align: center;
    line-height: 1.1;
}

.predictions-table.compact .vs {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0.2rem;
    align-self: center;
}

.predictions-table.compact .match-result, 
.predictions-table.compact .user-prediction {
    text-align: center;
    font-size: 1rem;
}

.predictions-table.compact .prediction-status {
    padding: 0.05rem 0.4rem;
    font-size: 0.8rem;
}

.predictions-table.compact th.base-col,
.predictions-table.compact td.base-col,
.predictions-table.compact th.multiplier-col,
.predictions-table.compact td.multiplier-col,
.predictions-table.compact th.points-col,
.predictions-table.compact td.points-col,
.predictions-table.compact th.match-col,
.predictions-table.compact td.match-col,
.predictions-table.compact th.result-col,
.predictions-table.compact td.result-col,
.predictions-table.compact th.prediction-col,
.predictions-table.compact td.prediction-col {
    text-align: center;
}

.predictions-table.compact td.match-col .match-teams {
    width: 100%;
    justify-content: space-between;
}

.predictions-table.compact .points-earned {
    text-align: center;
    font-weight: 600;
}

/* Adjust responsive behavior for the compact table */
@media (max-width: 768px) {
    .predictions-table.compact th:nth-child(1),
    .predictions-table.compact td:nth-child(1) {
        display: none; /* Hide date column on smaller screens */
    }
    
    .predictions-table.compact .team-flag span {
        display: none; /* Hide team names, show only flags */
    }
    
    .predictions-table.compact .match-teams {
        min-width: 80px;
    }
}

/* ===== Notification Popup ===== */
.notification-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 1100;
    transition: transform 0.4s ease-in-out;
    pointer-events: none;
}

.notification-popup.show {
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    pointer-events: auto;
}

.notification-content.success {
    background-color: rgba(34, 197, 94, 0.9);
    color: white;
    border-left: 4px solid #16a34a;
}

.notification-content.error {
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
    border-left: 4px solid #dc2626;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-content span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive styles for notification */
@media (max-width: 640px) {
    .notification-popup {
        width: 90%;
    }
}

/* ===== Modal Styles ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2001;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 800px; /* Increased from 600px to 800px for wider appearance */
    max-height: 80vh; /* Reduced from 90vh to 80vh to be shorter */
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2002;
    overflow: hidden;
    animation: modalFadeIn 0.3s forwards;
    border: 1px solid var(--border-color);
}

@keyframes modalFadeIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem; /* Reduced padding to make it shorter */
    border-bottom: 1px solid var(--border-color);
    background-color: var(--dark-bg);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-header h3 i {
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.25rem 1.5rem; /* Reduced padding to make it shorter */
    overflow-y: auto;
    max-height: calc(80vh - 60px); /* Adjusted to match new header height */
}

/* Admin Form Styles */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Reduced gap to make the form more compact */
}

.admin-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0; /* Removed bottom margin to make it more compact */
}

/* Make form elements more compact in the modal */
.modal .form-group {
    margin-bottom: 0.75rem; /* Reduced from 1.5rem to 0.75rem */
}

.modal .form-group label {
    margin-bottom: 0.25rem; /* Reduced from 0.5rem */
    font-size: 0.85rem; /* Slightly smaller font */
}

.modal .form-control {
    padding: 0.6rem 0.75rem; /* Reduced padding */
}

.modal .form-actions {
    margin-top: 1rem;
}

/* Responsive Modal */
@media (max-width: 640px) {
    .modal-content {
        width: 92%;
        max-width: none;
        margin: 0 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .admin-btn {
        width: 100%;
    }
    
    .file-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .file-name {
        max-width: 100%;
    }
}

/* Admin Form Styles */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background-color: var(--card-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.file-input-label:hover {
    background-color: var(--primary-color);
    color: white;
}

.file-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Registration Success Page Styles */
.success-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.success-message {
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.7;
}

.email-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-sm);
    color: var(--success);
}

.email-info i {
    font-size: 1.25rem;
}

.success-actions {
    padding: 0.5rem 2rem 2rem;
    text-align: center;
}

/* Match Predictions Page */
.match-predictions-header {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.back-link {
    margin-bottom: 1.5rem;
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.back-link a:hover {
    color: var(--primary-light);
    transform: translateX(-5px);
}

.match-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.match-date-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.match-meta-competition {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.match-meta-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1;
}

.match-result-display {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1rem 0;
}

.match-result-display .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 100px;
}

.match-result-display .team img {
    width: 60px;
    height: 45px;
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
}

.match-result-display .team span {
    font-weight: 600;
    font-size: 1.1rem;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--dark-bg);
    border-radius: var(--radius-sm);
    margin: 0 1rem;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.score-divider {
    font-size: 2rem;
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.match-status-info {
    text-align: center;
}

.status {
    font-size: 0.95rem;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-sm);
}

.status.finished {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.status.upcoming {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
}

.status.live {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ff6b6b;
    animation: pulse 1.5s infinite;
}

.your-prediction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.prediction-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.prediction-value {
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

/* Prediction statistics section */
.prediction-stats-section,
.all-predictions-section {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary-color);
}

.prediction-stats {
    display: block;
}

.stat-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.prediction-stat-card {
    background-color: var(--dark-bg);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    flex: 1 1 220px;
}

.prediction-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon.success-icon {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.stat-icon.primary-icon {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
}

.stat-icon.danger-icon {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.popular-predictions {
    background-color: var(--dark-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.popular-predictions h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.popular-predictions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-prediction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popular-prediction-item .prediction {
    font-weight: 600;
    color: var(--text-primary);
    width: 40px;
    text-align: center;
}

.prediction-bar {
    flex: 1;
    height: 14px;
    background-color: var(--card-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.prediction-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
}

.prediction-bar-fill.exact {
    background-color: var(--success);
}

.prediction-bar-fill.correct {
    background-color: var(--primary-color);
}

.prediction-bar-fill.wrong {
    background-color: var(--danger);
}

.prediction-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    width: 80px;
    text-align: right;
}

/* All predictions section */
.predictions-filters {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-toggle {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: var(--card-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.predictions-table {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.predictions-table table {
    width: 100%;
    border-collapse: collapse;
}

.predictions-table th,
.predictions-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.predictions-table th {
    background-color: var(--dark-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.predictions-table tbody tr:last-child td {
    border-bottom: none;
}

.predictions-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.prediction-col {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.football-icon {
    width: 24px;
    height: 24px;
    background-image: url('soccer-ball.svg');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
  }

/* Responsive styles for match predictions page */
@media (max-width: 768px) {
    .prediction-stat-card {
        flex: 1 1 calc(50% - 0.5rem);
    }
    
    .match-result-display {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-toggle {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 640px) {
    .match-predictions-header {
        padding: 1rem;
    }
    
    .your-prediction {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .predictions-filters {
        flex-direction: column;
    }
    
    .prediction-stat-card {
        flex: 1 1 100%;
    }
    
    .match-result-display .team {
        min-width: auto;
    }
    
    .score-display {
        padding: 0.5rem 1rem;
    }
    
    .score-number {
        font-size: 2rem;
    }
}
/* ===== Blazor / Extra Styles ===== */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: .75rem 1.5rem;
    background: #ef4444;
    color: white;
    font-size: .9rem;
    z-index: 9999;
    text-align: center;
}
#blazor-error-ui.open { display: block; }
#blazor-error-ui .reload { color: white; margin-left: 1rem; }
#blazor-error-ui .dismiss { cursor: pointer; margin-left: 1rem; }

/* Matches grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Match card */
.match-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}
.match-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.match-card.live { border-left: 3px solid #ef4444; }
.match-card.finished { opacity: .85; }

.match-card .match-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .75rem; height: 52px; padding: 0 1rem; background-color: var(--dark-bg); border-bottom: 1px solid var(--border-color); }
.match-card .match-competition,
.match-card .match-date { display: flex; align-items: center; font-size: .85rem; color: var(--text-muted); white-space: nowrap; line-height: 1; min-height: 100%; }
.match-card .match-date { justify-content: end; }
.match-card .meta-chip { display: inline-flex; align-items: center; gap: .4rem; line-height: 1; }
.match-card .meta-chip > * { margin: 0; line-height: 1; }
.match-card .meta-chip i { font-size: .8rem; text-align: center; flex-shrink: 0; }
.match-card .meta-chip .football-icon { width: auto; height: auto; background: none; vertical-align: baseline; }
.match-card .match-competition .meta-chip > span { position: relative; }

.match-teams { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.team-home, .team-away { display: flex; align-items: center; gap: .5rem; font-weight: 600; flex: 1; }
.team-away { justify-content: flex-end; flex-direction: row-reverse; }
.match-teams img { width: 36px; height: 27px; border-radius: 2px; }

.match-status { font-size: .85rem; color: var(--text-muted); text-align: center; flex-shrink: 0; }
.match-status.upcoming { color: var(--primary-light); }
.match-status.awaiting-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; color: #f59e0b; font-weight: 600; font-size: .75rem; min-width: 90px; }
.match-status.awaiting-result i { font-size: 1.1rem; }

.match-score-display { display: flex; align-items: center; gap: .25rem; font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.score-number { font-size: 1.4rem; font-weight: 700; }
.score-divider { font-size: 1.2rem; color: var(--text-muted); margin: 0 .1rem; }

.live-score { font-size: 1.3rem; font-weight: 700; color: #ef4444; display: block; }
.live-badge { display: inline-block; background: #ef4444; color: white; font-size: .7rem; font-weight: 700; padding: .1rem .4rem; border-radius: .25rem; animation: livePulse 1.5s infinite; }
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.match-prediction-form { background: rgba(15,23,42,.5); border-radius: var(--radius-sm); padding: 1rem; }
.match-prediction-form p { font-size: .9rem; color: var(--text-secondary); margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.prediction-inputs { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.score-input { width: 56px; text-align: center; padding: .5rem; border-radius: var(--radius-sm); background: var(--dark-bg); color: var(--text-primary); border: 1px solid var(--border-color); font-size: 1.1rem; font-weight: 600; font-family: inherit; }
.score-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(14,165,233,.2); }

.match-card .match-prediction-form { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: .75rem; }
.match-card .match-prediction-form > p { margin: 0; line-height: 1.4; }
.match-card .prediction-inputs { margin-bottom: 0; }

.match-actions { display: flex; align-items: center; justify-content: space-between; }
.match-stats { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); font-size: .9rem; }

.section-title { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.matches-section { margin-bottom: 2rem; }

/* Admin buttons */
.admin-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-radius: var(--radius-sm);
    border: none; font-family: inherit; font-size: .9rem; font-weight: 500;
    cursor: pointer; transition: var(--transition); text-decoration: none;
}
.admin-btn.success { background: var(--success); color: white; }
.admin-btn.success:hover { background: #16a34a; }
.admin-btn.secondary { background: rgba(255,255,255,.08); color: var(--text-secondary); border: 1px solid var(--border-color); }
.admin-btn.secondary:hover { background: rgba(255,255,255,.12); }
.admin-btn.danger { background: rgba(239,68,68,.15); color: var(--danger); border: 1px solid rgba(239,68,68,.3); }
.admin-btn.danger:hover { background: rgba(239,68,68,.25); }
.admin-btn.warning { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.3); }
.admin-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Notification popup */
.notification-popup {
    position: fixed; top: 5rem; right: 1.5rem; z-index: 9000;
    animation: slideIn .3s ease;
}
.notification-content {
    display: flex; align-items: center; gap: .75rem;
    padding: .85rem 1.25rem; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-weight: 500;
}
.notification-content.success { background: var(--success); color: white; }
@keyframes slideIn { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:translateX(0); } }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.admin-table thead { background: var(--dark-bg); color: var(--text-secondary); font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.admin-table tbody tr:hover { background: rgba(255,255,255,.03); }
.admin-table-container { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.admin-actions { display: flex; gap: .75rem; }
.bulk-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.user-cell { display: flex; align-items: center; gap: .75rem; }
.user-cell img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.user-login { font-size: .8rem; color: var(--text-muted); }

/* Badge */
.badge {
    display: inline-block; padding: .2rem .65rem;
    border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600;
}
.badge.admin { background: rgba(99,102,241,.2); color: #818cf8; }
.badge.moderator { background: rgba(245,158,11,.2); color: #fbbf24; }
.badge.user { background: rgba(14,165,233,.1); color: var(--primary-light); }
.badge.success { background: rgba(34,197,94,.2); color: var(--success); }
.badge.warning { background: rgba(245,158,11,.2); color: #f59e0b; }
.badge.danger { background: rgba(239,68,68,.2); color: var(--danger); }

/* Actions */
.actions { display: flex; gap: .35rem; }
.action-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: .35rem .45rem; border-radius: .25rem; transition: var(--transition); }
.action-btn:hover { background: rgba(255,255,255,.08); color: var(--text-primary); }

/* Admin widgets */
.admin-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.admin-widget { background: var(--dark-bg); border-radius: var(--radius-md); border: 1px solid var(--border-color); overflow: hidden; }
.widget-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color); }
.widget-header h3 { font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.widget-header h3 i { color: var(--primary-color); }
.widget-action { font-size: .85rem; color: var(--primary-color); text-decoration: none; }
.widget-content { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .85rem; }

.activity-item { display: flex; align-items: flex-start; gap: .75rem; }
.activity-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.activity-icon.green { background: rgba(34,197,94,.2); color: var(--success); }
.activity-icon.blue { background: rgba(14,165,233,.2); color: var(--primary-light); }
.activity-icon.red { background: rgba(239,68,68,.2); color: var(--danger); }
.activity-icon.yellow { background: rgba(245,158,11,.2); color: #fbbf24; }
.activity-text { font-size: .9rem; }
.activity-time { font-size: .8rem; color: var(--text-muted); }

.alert-item { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem; border-radius: var(--radius-sm); border: 1px solid transparent; }
.alert-item.warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #fbbf24; }
.alert-item.info { background: rgba(14,165,233,.1); border-color: rgba(14,165,233,.3); color: var(--primary-light); }
.alert-item.success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: var(--success); }
.alert-item i { margin-top: .15rem; }
.alert-title { font-size: .9rem; font-weight: 600; }
.alert-description { font-size: .8rem; opacity: .85; margin-top: .15rem; }

.stat-change { font-size: .85rem; display: flex; align-items: center; gap: .25rem; }
.stat-change.positive { color: var(--success); }

/* Match predictions page */
.match-predictions-header { margin-bottom: 2rem; }
.back-link a { color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; transition: var(--transition); margin-bottom: 1rem; display: inline-flex; }
.back-link a:hover { color: var(--primary-color); }
.match-info-card { background: var(--dark-bg); border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--border-color); text-align: center; margin-bottom: 1rem; }
.match-date-info { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1rem; font-size: .9rem; color: var(--text-muted); }
.match-result-display { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-bottom: 1rem; }
.match-result-display .team { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-weight: 600; }
.score-display { display: flex; align-items: center; gap: .25rem; font-size: 2.5rem; font-weight: 800; }
.match-status-info { display: flex; justify-content: center; }
.status.finished { background: rgba(34,197,94,.15); color: var(--success); padding: .25rem .75rem; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; }
.your-prediction { display: flex; align-items: center; gap: .75rem; padding: 1rem; background: var(--dark-bg); border-radius: var(--radius-sm); border: 1px solid var(--border-color); margin-top: 1rem; }
.prediction-label { color: var(--text-secondary); font-size: .9rem; }
.prediction-value { font-size: 1.25rem; font-weight: 700; }
.prediction-value.exact { color: var(--success); }
.prediction-value.correct { color: var(--primary-light); }
.prediction-value.wrong { color: var(--danger); }
.prediction-stat-card { background: var(--dark-bg); border-radius: var(--radius-md); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; border: 1px solid var(--border-color); min-width: 160px; }

/* Profile */
.profile-container { }
.profile-tabs { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: .5rem; }
.profile-tab { background: none; border: none; color: var(--text-secondary); font-family: inherit; font-size: .95rem; padding: .5rem 1rem; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: .4rem; }
.profile-tab.active { background: rgba(14,165,233,.1); color: var(--primary-color); font-weight: 500; }
.profile-tab:hover:not(.active) { background: rgba(255,255,255,.05); color: var(--text-primary); }
.profile-section { }
.profile-section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.profile-avatar-section { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.profile-big-avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; border: 3px solid var(--primary-color); }
.profile-big-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-actions { display: flex; flex-direction: column; gap: .5rem; }
.profile-form { display: flex; flex-direction: column; gap: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: .4rem; font-size: .9rem; color: var(--text-secondary); }
.form-control { width: 100%; padding: .6rem .9rem; background: var(--dark-bg); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(14,165,233,.2); }
textarea.form-control { resize: vertical; }
select.form-control { cursor: pointer; }
.form-actions { display: flex; gap: .75rem; margin-top: .5rem; }

.password-strength { margin-bottom: 1.25rem; }
.strength-label { font-size: .85rem; color: var(--text-secondary); margin-bottom: .35rem; }
.strength-meter { height: 6px; background: var(--dark-bg); border-radius: 3px; overflow: hidden; border: 1px solid var(--border-color); }
.strength-value { height: 100%; border-radius: 3px; transition: width .3s ease, background-color .3s ease; }

/* Team flag small */
.team-flag { display: flex; align-items: center; gap: .4rem; }
.team-flag img { width: 20px; height: 15px; border-radius: 1px; }

/* Forgotten password page */
.zapomniane-haslo { }

@media (max-width: 600px) {
    .matches-grid { grid-template-columns: 1fr; }
    .admin-main { flex-direction: column; }
    .admin-sidebar { width: 100%; min-width: unset; margin-right: 0; margin-bottom: 1rem; }
    .form-row { grid-template-columns: 1fr; }
}
