
.event-calendar {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #4caf50;
}

.calendar-nav-btn {
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2em;
}

.calendar-nav-btn:hover {
  background: #3d8b40;
  transform: scale(1.1);
}

.calendar-nav-btn:active {
  transform: scale(0.95);
}

#current-month-year {
  margin: 0;
  color: #333;
  font-size: 1.4em;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.calendar-day {
  padding: 12px 5px;
  text-align: center;
  border-radius: 8px;
  background: #f8f9fa;
  font-weight: 500;
  min-height: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: default;
  position: relative;
}

.calendar-day.header {
  background: #4caf50;
  color: white;
  font-weight: bold;
  font-size: 0.9em;
  text-transform: uppercase;
  padding: 10px 5px;
}

.calendar-day.empty {
  background: transparent;
  visibility: hidden;
}

.calendar-day.event-day {
  background: #e8f5e9;
  border: 2px solid #4caf50;
  font-weight: bold;
  position: relative;
}

.calendar-day.event-day::after {
  content: attr(data-event-type);
  position: absolute;
  top: -8px;
  right: -8px;
  background: #4caf50;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day.event-day:hover {
  background: #d4edda;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.today {
  background: #4caf50;
  color: white;
  font-weight: bold;
  position: relative;
}

.calendar-day.today::before {
  content: "Hoy";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff9800;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: bold;
}

.calendar-day .day-number {
  font-size: 1.1em;
  margin-bottom: 3px;
}

.calendar-day .event-icons {
  font-size: 0.8em;
  margin-top: 2px;
}


.calendar-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.calendar-legend p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 0.9em;
  color: #666;
}

.legend-event,
.legend-tournament,
.legend-special {
  font-size: 1.2em;
}

.legend-today {
  background: #4caf50;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
}


.calendar-events-list {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.calendar-events-list h4 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 8px;
}

.event-list-item {
  padding: 10px;
  margin: 8px 0;
  background: white;
  border-radius: 6px;
  border-left: 4px solid #4caf50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.event-list-item:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.event-list-date {
  font-weight: bold;
  color: #4caf50;
  min-width: 80px;
}

.event-list-title {
  flex: 1;
  margin: 0 15px;
}

.event-list-type {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
}


.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.results-table th {
  background: #4caf50;
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.results-table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

.results-table tr:hover {
  background: #f5f5f5;
}

.results-table tr:nth-child(even) {
  background: #f9f9f9;
}

.results-table tr:hover:nth-child(even) {
  background: #f0f0f0;
}


.btn-whatsapp {
  background: #25d366 !important;
  color: white !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.3s ease !important;
}

.btn-whatsapp:hover {
  background: #1da851 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3) !important;
}


@media (max-width: 768px) {
  .calendar-grid {
    gap: 5px;
  }

  .calendar-day {
    padding: 8px 3px;
    min-height: 40px;
    font-size: 0.9em;
  }

  .calendar-day.header {
    font-size: 0.8em;
    padding: 8px 3px;
  }

  .calendar-header {
    flex-direction: column;
    gap: 15px;
  }

  .calendar-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .event-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .event-list-date {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .calendar-day {
    padding: 6px 2px;
    font-size: 0.8em;
    min-height: 35px;
  }

  .calendar-day.event-day::after {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: -5px;
    right: -5px;
  }
}


.ranks-container-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.rank-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
}

.rank-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.rank-icon {
  font-size: 3em;
  margin-bottom: 15px;
  display: block;
}

.rank-icon.elite {
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.3);
}

.rank-icon.veteran {
  color: #c0c0c0;
  text-shadow: 2px 2px 4px rgba(192, 192, 192, 0.3);
}

.rank-icon.member {
  color: #cd7f32;
  text-shadow: 2px 2px 4px rgba(205, 127, 50, 0.3);
}

.rank-icon.novice {
  color: #4caf50;
  text-shadow: 2px 2px 4px rgba(76, 175, 80, 0.3);
}

.rank-item h3 {
  margin: 10px 0;
  color: #333;
  font-size: 1.2em;
}

.rank-item p {
  color: #666;
  font-size: 0.9em;
  margin: 0;
}

.rank-benefits {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.rank-benefits h3 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.rank-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rank-benefits li {
  padding: 10px 15px;
  margin: 8px 0;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
  display: flex;
  align-items: center;
}

.rank-benefits li strong {
  color: #4caf50;
  min-width: 80px;
  display: inline-block;
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.stat-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #4caf50;
}

.stat-value {
  font-size: 2.5em;
  font-weight: bold;
  color: #4caf50;
  margin-bottom: 5px;
  line-height: 1;
}

.stat-label {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
  font-weight: 500;
}

.stat-trend {
  font-size: 0.8em;
  padding: 4px 10px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stat-trend.positive {
  background: #e8f5e9;
  color: #2e7d32;
}

.stat-trend.stable {
  background: #fff3e0;
  color: #ef6c00;
}


@media (max-width: 768px) {
  .ranks-container-simple {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ranks-container-simple {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 2em;
  }
}


.reminder-note {
  margin-top: 15px;
  font-size: 0.9em;
  color: #666;
}


.news-link {
  color: #4caf50;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: #388e3c;
  text-decoration: underline;
}


.today-event-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

@media (min-width: 768px) {
  .today-event-container {
    flex-direction: row;
  }
}

.today-event-card {
  flex: 1;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 12px;
  padding: 25px;
  border: 2px solid #4caf50;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1);
}

.today-event-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.today-event-content.no-event {
  flex-direction: column;
  text-align: center;
  gap: 15px;
}

.today-event-icon {
  font-size: 3.5em;
  background: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.today-event-details {
  flex: 1;
}

.today-event-details h3 {
  margin: 0 0 10px 0;
  color: #2e7d32;
  font-size: 1.4em;
}

.today-event-type {
  display: inline-block;
  background: #4caf50;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 10px;
}

.today-event-description {
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}

.today-event-time {
  color: #666;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.today-countdown-container {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 25px;
  border: 2px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.today-countdown-timer {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.today-timer-unit {
  background: #f8f9fa;
  padding: 15px 10px;
  border-radius: 10px;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.today-timer-number {
  font-size: 2em;
  font-weight: bold;
  color: #4caf50;
  display: block;
  line-height: 1;
}

.today-timer-label {
  font-size: 0.8em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.countdown-note {
  text-align: center;
  color: #666;
  font-size: 0.9em;
  margin-top: 10px;
  font-style: italic;
}


.team-registration {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 20px 0;
}

@media (min-width: 992px) {
  .team-registration {
    flex-direction: row;
  }
}

.registration-info {
  flex: 2;
}

.registration-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  counter-reset: step-counter;
}

.registration-steps li {
  counter-increment: step-counter;
  padding: 15px 15px 15px 60px;
  margin: 10px 0;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
  position: relative;
  line-height: 1.5;
}

.registration-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: #4caf50;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.available-teams {
  margin-top: 30px;
}

.available-teams h4 {
  margin-bottom: 20px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.teams-grid::-webkit-scrollbar {
  width: 8px;
}

.teams-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.teams-grid::-webkit-scrollbar-thumb {
  background: #4caf50;
  border-radius: 4px;
}

.teams-grid::-webkit-scrollbar-thumb:hover {
  background: #3d8b40;
}

.team-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: #4caf50;
}

.team-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.team-card h5 {
  margin: 10px 0 5px 0;
  color: #333;
  font-size: 1.1em;
}

.team-card p {
  color: #666;
  font-size: 0.85em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.team-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

.team-status {
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: bold;
}

.team-status.open {
  background: #e8f5e9;
  color: #2e7d32;
}

.team-status.full {
  background: #ffebee;
  color: #c62828;
}

.registration-action {
  flex: 1;
}

.whatsapp-invite {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-icon {
  font-size: 3em;
  margin-bottom: 15px;
  display: block;
}

.whatsapp-invite h4 {
  margin: 0 0 15px 0;
  color: white;
  font-size: 1.3em;
}

.whatsapp-invite p {
  margin-bottom: 15px;
  opacity: 0.9;
}

.whatsapp-invite ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.whatsapp-invite li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-invite li:last-child {
  border-bottom: none;
}

.whatsapp-invite li::before {
  content: "✓";
  font-weight: bold;
}

.btn-whatsapp {
  background: white !important;
  color: #25d366 !important;
  border: none !important;
  font-weight: 600 !important;
  margin-top: 20px;
  width: 100%;
}

.btn-whatsapp:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3) !important;
}

.registration-note {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9em;
  text-align: left;
}

.registration-note i {
  color: white;
  margin-right: 8px;
}


@media (max-width: 768px) {
  .today-event-content {
    flex-direction: column;
    text-align: center;
  }

  .today-event-icon {
    margin: 0 auto;
  }

  .today-countdown-timer {
    gap: 10px;
  }

  .today-timer-unit {
    min-width: 70px;
    padding: 12px 8px;
  }

  .teams-grid {
    grid-template-columns: 1fr;
    max-height: 400px;
  }

  .team-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .today-timer-unit {
    min-width: 60px;
    padding: 10px 5px;
  }

  .today-timer-number {
    font-size: 1.6em;
  }

  .today-event-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5em;
  }

  .teams-grid {
    max-height: 350px;
  }
}


.calendar-day.today {
  background-color: #e3f2fd;
  border: 2px solid #2196f3;
  font-weight: bold;
}

.calendar-day.today .day-number {
  color: #2196f3;
  font-weight: bold;
}

.calendar-day.event-day {
  position: relative;
  cursor: pointer;
}

.calendar-day.event-day:hover {
  background-color: #f5f5f5;
  transform: scale(1.05);
  transition: transform 0.2s;
}

.calendar-day.event-tournament {
  border-left: 3px solid #ff9800;
}

.calendar-day.event-game {
  border-left: 3px solid #2196f3;
}

.calendar-day.event-special {
  border-left: 3px solid #9c27b0;
}

.event-icons {
  font-size: 1.2em;
  margin-top: 5px;
  cursor: pointer;
}

.today-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #2196f3;
  color: white;
  font-size: 0.7em;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: bold;
}


.events-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.events-count {
  background-color: #e3f2fd;
  color: #2196f3;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: bold;
}

.event-list-item {
  border-left: 4px solid #ddd;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 0 8px 8px 0;
  background: white;
  transition: all 0.3s ease;
}

.event-list-item.today-event-list {
  border-left-color: #2196f3;
  background-color: #e3f2fd;
  transform: translateX(5px);
}

.event-list-item.soon-event-list {
  border-left-color: #ff9800;
  background-color: #fff3e0;
}

.event-list-item.past-event-list {
  opacity: 0.7;
  border-left-color: #9e9e9e;
}

.event-list-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.event-day-number {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
}

.event-day-name {
  color: #666;
  font-size: 0.9em;
}

.event-list-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.event-icon {
  font-size: 1.2em;
}

.today-badge {
  background-color: #2196f3;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
}

.soon-badge {
  background-color: #ff9800;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
}

.event-list-description {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.event-list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  color: #777;
}


.today-event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.today-event-badge {
  background-color: #2196f3;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
}

.today-event-meta {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
}


.event-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.event-modal-content {
  background-color: white;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.event-modal-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #666;
}

.event-modal-body {
  padding: 20px;
}

.event-modal-icon {
  text-align: center;
  margin-bottom: 20px;
}

.event-modal-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #666;
}

.event-modal-description {
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.event-modal-actions {
  display: flex;
  gap: 10px;
}

.btn-set-reminder,
.btn-share-event {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-set-reminder {
  background-color: #e3f2fd;
  color: #2196f3;
}

.btn-share-event {
  background-color: #f5f5f5;
  color: #666;
}


.today-button {
  background-color: #2196f3;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.today-button:hover {
  background-color: #1976d2;
}


#calendar-notification {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.no-events-message {
  text-align: center;
  padding: 30px;
  color: #666;
}

.no-events-message i {
  font-size: 3em;
  color: #ddd;
  margin-bottom: 15px;
}


.reminder-badge {
  background-color: #ff9800;
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 0.8em;
  margin-left: 5px;
  cursor: help;
}


.event-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-set-reminder,
.btn-remove-reminder,
.btn-share-event {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  min-width: 150px;
}

.btn-set-reminder {
  background-color: #ff9800;
  color: white;
}

.btn-set-reminder:hover {
  background-color: #f57c00;
}

.btn-remove-reminder {
  background-color: #f44336;
  color: white;
}

.btn-remove-reminder:hover {
  background-color: #d32f2f;
}

.btn-share-event {
  background-color: #2196f3;
  color: white;
}

.btn-share-event:hover {
  background-color: #1976d2;
}


.countdown-action {
  margin-top: 15px;
  text-align: center;
}

.btn-reminder {
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-reminder:hover {
  background-color: #f57c00;
}

.btn-join-discord,
.btn-join-whatsapp {
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin: 0 5px;
}

.btn-join-discord {
  background-color: #5865f2;
  color: white;
}

.btn-join-whatsapp {
  background-color: #25d366;
  color: white;
}


.past-event-list {
  opacity: 0.6;
  background-color: #f5f5f5;
}

.past-event-list .event-list-title {
  text-decoration: line-through;
}


.countdown-phase {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
}

.phase-indicator {
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 20px;
  margin-bottom: 15px;
  display: inline-block;
  font-size: 14px;
}

.phase-1 {
  background-color: rgba(33, 150, 243, 0.1);
  color: #2196f3;
  border: 2px solid #2196f3;
}

.phase-2 {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 2px solid #4caf50;
}

.phase-3 {
  background-color: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
  border: 2px solid #9e9e9e;
}

.event-progress {
  margin: 15px 0;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  transition: width 1s ease;
}

.progress-label {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.event-finished {
  padding: 20px;
}

.event-finished-icon {
  font-size: 48px;
  color: #4caf50;
  margin-bottom: 15px;
}

.event-finished-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.event-finished-subtitle {
  color: #666;
  margin-bottom: 20px;
  font-size: 16px;
}

.event-finished-stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 10px;
  flex: 1;
  min-width: 120px;
}

.stat-item i {
  font-size: 24px;
  color: #2196f3;
  display: block;
  margin-bottom: 5px;
}

.stat-item span {
  font-size: 12px;
  color: #666;
}

.event-finished-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-feedback,
.btn-results {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  font-size: 14px;
}

.btn-feedback {
  background-color: #ff9800;
  color: white;
}

.btn-results {
  background-color: #2196f3;
  color: white;
}

.btn-feedback:hover,
.btn-results:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}


.next-event-countdown {
  background: rgba(33, 150, 243, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.next-event-countdown i {
  color: #2196f3;
}

.countdown-text {
  font-weight: bold;
  color: #2196f3;
}


.event-list-duration {
  background: rgba(158, 158, 158, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

.event-list-duration i {
  margin-right: 3px;
}


.today-event-duration {
  background: rgba(158, 158, 158, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  color: #666;
  display: inline-block;
}


.today-countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 20px 0;
}

.today-timer-unit {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 15px 10px;
  min-width: 70px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.today-timer-number {
  font-size: 28px;
  font-weight: bold;
  display: block;
  color: #333;
}

.today-timer-label {
  font-size: 12px;
  color: #666;
  display: block;
  margin-top: 5px;
}

.today-timer-separator {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0 5px;
}

.countdown-note {
  font-size: 14px;
  color: #666;
  margin: 15px 0;
}

.countdown-note i {
  margin-right: 5px;
}


.countdown-action {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-reminder,
.btn-join-discord,
.btn-join-whatsapp {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-reminder {
  background-color: #ff9800;
  color: white;
}

.btn-join-discord {
  background-color: #7289da;
  color: white;
}

.btn-join-whatsapp {
  background-color: #25d366;
  color: white;
}

.btn-reminder:hover,
.btn-join-discord:hover,
.btn-join-whatsapp:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}


@media (max-width: 768px) {
  .today-countdown-timer {
    flex-wrap: wrap;
  }

  .today-timer-unit {
    min-width: 60px;
    padding: 10px 5px;
  }

  .today-timer-number {
    font-size: 22px;
  }

  .today-timer-separator {
    font-size: 20px;
  }

  .event-finished-stats {
    flex-direction: column;
  }

  .stat-item {
    margin-bottom: 10px;
  }

  .event-finished-actions {
    flex-direction: column;
  }

  .btn-feedback,
  .btn-results {
    width: 100%;
  }
}


.live-badge {
  background: linear-gradient(45deg, #ff0000, #ff6b6b);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

.finished-badge {
  background: #757575;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}


.event-live {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #ff0000, #ff6b6b);
  color: white;
  border-radius: 10px;
}

.event-live-icon {
  font-size: 48px;
  margin-bottom: 10px;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

.event-finished {
  text-align: center;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 10px;
  color: #666;
}

.event-finished-icon {
  font-size: 48px;
  margin-bottom: 10px;
  color: #757575;
}

.btn-join-now {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin: 10px 0;
}

.btn-join-now:hover {
  background: #45a049;
}


.live-badge {
  background: linear-gradient(45deg, #ff0000, #ff6b6b);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

.finished-badge {
  background: #757575;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}


.event-live {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #ff0000, #ff6b6b);
  color: white;
  border-radius: 10px;
}

.event-live-icon {
  font-size: 48px;
  margin-bottom: 10px;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

.event-finished {
  text-align: center;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 10px;
  color: #666;
}

.event-finished-icon {
  font-size: 48px;
  margin-bottom: 10px;
  color: #757575;
}

.btn-join-now {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin: 10px 0;
}

.btn-join-now:hover {
  background: #45a049;
}


.table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}


@media (max-width: 768px) {
  .results-table {
    min-width: 600px;
  }

  .table-container {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 5px;
    background: #f8f9fa;
  }


  .table-container::-webkit-scrollbar {
    height: 8px;
  }

  .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .table-container::-webkit-scrollbar-thumb {
    background: #4caf50;
    border-radius: 4px;
  }

  .table-container::-webkit-scrollbar-thumb:hover {
    background: #3d8b40;
  }
}


.table-container {
  scrollbar-width: thin;
  scrollbar-color: #4caf50 #f1f1f1;
}


@media (max-width: 768px) {

  .event-calendar {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }


  .calendar-grid {
    min-width: 700px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
  }


  .event-calendar::-webkit-scrollbar {
    height: 8px;
  }

  .event-calendar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin: 0 10px;
  }

  .event-calendar::-webkit-scrollbar-thumb {
    background: #4caf50;
    border-radius: 4px;
  }

  .event-calendar::-webkit-scrollbar-thumb:hover {
    background: #3d8b40;
  }


  .calendar-day {
    min-height: 50px;
    padding: 10px 3px;
    font-size: 0.85em;
  }

  .calendar-day.header {
    font-size: 0.8em;
    padding: 8px 3px;
  }

  .calendar-day .day-number {
    font-size: 1em;
  }


  .calendar-header.calendar-navigation {
    min-width: 700px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }


  .calendar-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

  #current-month-year {
    font-size: 1.1em;
    text-align: center;
    flex-grow: 1;
  }


  .calendar-legend {
    min-width: 700px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .calendar-legend p {
    white-space: nowrap;
  }
}


@media (max-width: 480px) {
  .calendar-grid {
    min-width: 650px;
    gap: 4px;
  }

  .calendar-header.calendar-navigation {
    min-width: 650px;
  }

  .calendar-legend {
    min-width: 650px;
  }

  .calendar-day {
    min-height: 45px;
    padding: 8px 2px;
    font-size: 0.8em;
  }

  .calendar-day.header {
    font-size: 0.75em;
  }
}


.event-calendar {
  scrollbar-width: thin;
  scrollbar-color: #4caf50 #f1f1f1;
}


.btn-whatsapp {
  background: #25d366 !important;
  color: #000000 !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
  padding: 12px 25px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
  cursor: pointer !important;
}

.btn-whatsapp:hover {
  background: #1da851 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3) !important;
  color: #000000 !important;
}

.btn-whatsapp:active {
  transform: translateY(0) !important;
}


.btn-large.btn-whatsapp {
  padding: 15px 35px !important;
  font-size: 1.1rem !important;
}


.card .btn-whatsapp {
  margin: 10px 0;
  justify-content: center;
}


@media (max-width: 768px) {
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
}
