/* Auth-related styles */

/* Auth modals */
.auth-modal h2 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .auth-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  .form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
  }
  
  .auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  
  .auth-button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
  }
  
  .login-button, .signup-button {
    background-color: #1a73e8;
    color: white;
  }
  
  .google-button {
    background-color: white;
    color: #757575;
    border: 1px solid #dadce0;
  }
  
  .auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
  }
  
  .auth-link {
    color: #1a73e8;
    cursor: pointer;
  }
  
  .auth-link:hover {
    text-decoration: underline;
  }
  
  /* Header auth buttons */
  .auth-nav-button {
    background: none;
    border: none;
    color: #1a73e8;
    font-weight: bold;
    cursor: pointer;
    margin-right: 15px;
  }
  
  .auth-nav-button:hover {
    text-decoration: underline;
  }
  
  /* Profile dropdown */
  .profile-container {
    position: relative;
  }
  
  .profile-button {
    background-color: #eaeaea;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    font-weight: bold;
  }
  
  .profile-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px;
  }
  
  .dropdown-header {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  
  .user-name {
    font-weight: bold;
    font-size: 18px;
  }
  
  .user-email {
    color: #666;
    font-size: 14px;
  }
  
  .dropdown-stats {
    margin-bottom: 15px;
  }
  
  .stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
  }
  
  .dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .dropdown-link {
    text-decoration: none;
    color: #1a73e8;
    padding: 5px 0;
  }
  
  .dropdown-link:hover {
    text-decoration: underline;
  }
  
  .logout-button {
    width: 100%;
    padding: 8px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
  }
  
  /* Leaderboard styles */
  .leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .leaderboard-container h1 {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .leaderboard-tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0;
  }
  
  .tab-button {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
  }
  
  .tab-button.active {
    background-color: #1a73e8;
    color: white;
    font-weight: bold;
  }
  
  .leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  .leaderboard-header, .leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
  }
  
  .leaderboard-header {
    font-weight: bold;
    background-color: #f5f5f5;
  }
  
  .current-user {
    background-color: #e8f0fe;
  }
  
  .rank-column, .player-column, .score-column, .streak-column {
    padding: 5px;
  }
  
  .user-rank {
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
  }
  
  .loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
  }
  
  .no-data {
    text-align: center;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
  }
  
  /* Profile page styles */
  .profile-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .profile-page-container h1 {
    text-align: center;
    margin-bottom: 30px;
  }
  
  
  .profile-avatar {
    width: 80px;
    height: 80px;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-right: 20px;
  }
  
  .profile-info h2 {
    margin: 0 0 5px 0;
  }
  
  .profile-info p {
    margin: 5px 0;
    color: #666;
  }
  
  .profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
  }
  
  .stat-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
  }
  
  .stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #1a73e8;
  }
  
  .stat-label {
    margin-top: 10px;
    color: #666;
  }
  
  .completed-games-list {
    margin: 30px 0;
  }
  
  .completed-games-list h3 {
    margin-bottom: 15px;
  }
  
  .games-table {
    width: 100%;
    border-collapse: collapse;
  }
  
   .game-row {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
  }
  
  
  .date-column, .topic-column, .progress-column {
    padding: 5px;
  }
  
  .mini-progress-indicator {
    display: flex;
    justify-content: center;
  }
  
  .mini-progress-square {
    width: 10px;
    height: 10px;
    margin: 0 2px;
    border-radius: 2px;
  }
  
  .progress-type-0 {
    background-color: #eb6868; /* Red for incorrect guesses */
  }
  
  .progress-type-1 {
    background-color: #90b6fd; /* Blue for correct guesses */
  }
  
  .no-games {
    text-align: center;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 8px;
  }
  
  .play-game-link {
    display: inline-block;
    margin-top: 10px;
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
  }
  
  .login-prompt {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
  }
  
  .login-prompt-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
  }
  
  #leaderboard-button {
    background-color: #d7e8f0;
    border: none;
    font-weight: bold;
    padding: 7px 15px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 4px;
  }
  
  /* Responsive adjustments */
  @media (max-width: 600px) {
    .leaderboard-header, .leaderboard-row {
      grid-template-columns: 50px 1fr 80px 80px;
      font-size: 14px;
    }
  
    .games-header, .game-row {
      grid-template-columns: 80px 1fr 80px;
      font-size: 14px;
    }
  
    .profile-avatar {
      width: 60px;
      height: 60px;
      font-size: 24px;
    }
  
    .stat-value {
      font-size: 24px;
    }
    
    
    .profile-avatar {
      margin-right: 0;
      margin-bottom: 15px;
    }
    
    .profile-dropdown {
      right: 0;
      left: auto;
    }
  }