/* ===== PÁGINA MEUS PALPITES ===== */
.meus-palpites-page .page-header {
  text-align: center;
  margin-bottom: 30px;
}

.meus-palpites-page .page-header h1 {
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.meus-palpites-page .filters-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.meus-palpites-page .filter-group {
  flex: 1;
  min-width: 200px;
}

.meus-palpites-page .filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}

.meus-palpites-page .styled-select {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232C5E1A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  appearance: none;
  cursor: pointer;
}

.meus-palpites-page .styled-select:focus {
  outline: none;
  border-color: var(--secondary);
}

.meus-palpites-page .btn-filter {
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.meus-palpites-page .btn-filter:hover {
  background-color: #1b3d0f;
}

.meus-palpites-page .bets-results {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.meus-palpites-page .results-header {
  background-color: var(--primary);
  color: white;
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.meus-palpites-page .results-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.meus-palpites-page .results-summary {
  display: flex;
  gap: 10px;
}

.meus-palpites-page .badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.meus-palpites-page .badge.points {
  background-color: var(--secondary);
  color: var(--dark);
}

.meus-palpites-page .badge.exact {
  background-color: var(--success);
  color: white;
}

.meus-palpites-page .badge.correct {
  background-color: var(--info);
  color: white;
}

.meus-palpites-page .bets-list {
  padding: 0;
}

.meus-palpites-page .bet-item {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.meus-palpites-page .bet-item:last-child {
  border-bottom: none;
}

.meus-palpites-page .match-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.meus-palpites-page .teams {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meus-palpites-page .team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meus-palpites-page .team-logo {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.meus-palpites-page .vs {
  font-weight: bold;
  color: var(--accent);
}

.meus-palpites-page .match-date {
  color: #666;
  font-size: 0.9rem;
}

.meus-palpites-page .bet-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.meus-palpites-page .user-bet,
.meus-palpites-page .actual-result,
.meus-palpites-page .bet-points {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meus-palpites-page .user-bet span,
.meus-palpites-page .actual-result span,
.meus-palpites-page .bet-points span {
  font-size: 0.9rem;
  color: #666;
}

.meus-palpites-page .actual-result .correct {
  color: var(--success);
}

.meus-palpites-page .actual-result .partial {
  color: var(--warning);
}

.meus-palpites-page .actual-result .wrong {
  color: var(--accent);
}

.meus-palpites-page .bet-points .points {
  color: var(--secondary);
  font-size: 1.2rem;
}

.bet-item {
      border-radius: 8px;
      padding: 15px;
      margin-bottom: 15px;
      background-color: white;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
      transition: all 0.3s ease;
    }

    /* Placar exato correto */
    .bet-item.exact-correct {
      border: 2px solid #f9d624;
      position: relative;
    }

    .bet-item.exact-correct::before {
      content: "✓ Placar Exato";
      position: absolute;
      top: -10px;
      right: 15px;
      background-color: #f9d624;
      color: #121212;
      padding: 2px 10px;
      border-radius: 10px;
      font-size: 0.7rem;
      font-weight: bold;
    }

    /* Resultado correto (mas não placar exato) */
    .bet-item.result-correct {
      border: 2px solid #2ecc71;
      position: relative;
    }

    .bet-item.result-correct::before {
      content: "✓ Resultado Correto";
      position: absolute;
      top: -10px;
      right: 15px;
      background-color: #2ecc71;
      color: white;
      padding: 2px 10px;
      border-radius: 10px;
      font-size: 0.7rem;
      font-weight: bold;
    }

    /* Resultado errado */
    .bet-item.result-wrong {
      border: 2px solid #e74c3c;
      position: relative;
    }

    .bet-item.result-wrong::before {
      content: "✗ Resultado Errado";
      position: absolute;
      top: -10px;
      right: 15px;
      background-color: #e74c3c;
      color: white;
      padding: 2px 10px;
      border-radius: 10px;
      font-size: 0.7rem;
      font-weight: bold;
    }

    /* Estilo para os pontos */
    .bet-points .points {
      color: #27ae60;
      font-weight: bold;
    }


    /* Modal de Edição */
.bolao-modal-edit {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-in-out;
}

.bolao-modal-content {
    background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    position: relative;
    border-top: 4px solid #4CAF50;
}

.bolao-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #888;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.bolao-close-modal:hover {
    color: #333;
}

.bolao-edit-form h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.3rem;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.bolao-edit-button {
        background-color: #4CAF50;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        margin-left: 20px;
        transition: background-color 0.3s;
    }

    .bolao-edit-button:hover {
        background-color: #45a049;
    }

.bolao-small-edit {
        background-color: transparent;
        color: #666;
        border: 1px solid #ddd;
        padding: 4px 8px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        margin-left: 10px;
        transition: all 0.3s;
    }

    .bolao-small-edit:hover {
        background-color: #f5f5f5;
        color: #333;
    }

/* Formulário de Edição */
.bolao-score-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.bolao-score-input input {
    width: 70px;
    padding: 10px 15px;
    font-size: 1.2rem;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.bolao-score-input input:focus {
    border-color: #4CAF50;
    outline: none;
}

.bolao-score-input span {
    font-size: 1.3rem;
    font-weight: bold;
    color: #555;
}

/* Botões */
.bolao-form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.bolao-cancel-btn, .bolao-save-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.bolao-cancel-btn {
    background-color: #f1f1f1;
    color: #555;
}

.bolao-cancel-btn:hover {
    background-color: #e0e0e0;
}

.bolao-save-btn {
    background-color: #4CAF50;
    color: white;
}

.bolao-save-btn:hover {
    background-color: #45a049;
}

.bolao-save-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bolao-error-message {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease-out;
}

.bolao-error-message i {
    font-size: 1.2rem;
}

/* Estilos adicionais para o modal com imagens */
.bolao-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.bolao-teams-display {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.bolao-team-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.bolao-team-logo-modal {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.bolao-team-name-modal {
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
}

.bolao-vs-separator {
    font-size: 1.5rem;
    font-weight: bold;
    color: #555;
    margin: 0 10px;
    align-self: center;
}

/* Ajuste no formulário */
.bolao-score-input-modal {
    margin-top: 25px;
}

.bolao-score-input-modal input {
    font-size: 1.4rem;
    font-weight: bold;
}

/* Estilos para estados de loading e erro */
.bolao-loading-modal {
    text-align: center;
    padding: 30px;
    color: #555;
}

.bolao-loading-modal i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #4CAF50;
}

.bolao-error-modal {
    text-align: center;
    padding: 20px;
}

.bolao-error-modal i {
    font-size: 2.5rem;
    color: #d32f2f;
    margin-bottom: 15px;
}

.bolao-error-modal p {
    margin-bottom: 20px;
}

.bolao-error-modal button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.bolao-error-modal button:hover {
    background-color: #d32f2f;
}

.bolao-team-logo-modal {
    transition: transform 0.3s;
}

.bolao-team-logo-modal:hover {
    transform: scale(1.1);
}

.bolao-team-modal:first-child .bolao-team-name-modal {
    color: #4CAF50;
    font-weight: bold;
}

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

/* Responsividade */
@media (max-width: 576px) {
    .bolao-modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 20px;
    }

    .bolao-score-input {
        gap: 10px;
    }

    .bolao-score-input input {
        width: 60px;
        padding: 8px 12px;
    }
}

* Responsividade */
@media (max-width: 480px) {
    .bolao-team-logo-modal {
        width: 50px;
        height: 50px;
    }

    .bolao-vs-separator {
        font-size: 1.3rem;
    }

    .bolao-team-name-modal {
        font-size: 0.8rem;
    }
}


.bet-item.other-user {
    opacity: 0.8;
    background-color: #f9f9f9;
}

.bet-item.other-user .match-info {
    border-left: 4px solid #ddd;
    padding-left: 10px;
}

