@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --pokemon-blue: #3B4CCA;
  --pokemon-yellow: #FFDE00;
  --pokemon-red: #FF0000;
  --pokemon-light-blue: #65A7DB;
  --dark-bg: #1A1B26;
  --card-bg: #222436;
  --light-text: #F0F0F5;
  --streamer-pink: #F56FAD; /* Added streamer pink */
  --streamer-teal: #4ECDC4; /* Added streamer teal */
}

body {
  background-color: var(--dark-bg);
  color: var(--light-text);
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Custom Pokeball background pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 20%, rgba(255, 222, 0, 0.03) 0%, transparent 20%),
                    radial-gradient(circle at 90% 30%, rgba(59, 76, 202, 0.03) 0%, transparent 20%),
                    radial-gradient(circle at 30% 70%, rgba(255, 0, 0, 0.03) 0%, transparent 20%),
                    radial-gradient(circle at 70% 90%, rgba(101, 167, 219, 0.03) 0%, transparent 20%);
  background-size: 300px 300px;
  opacity: 0.6;
  z-index: -1;
}

.pokeball-decoration {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(to bottom, rgba(255, 0, 0, 0.03) 0%, rgba(255, 0, 0, 0.03) 46%, 
            rgba(0, 0, 0, 0.05) 48%, rgba(0, 0, 0, 0.05) 52%, 
            rgba(255, 255, 255, 0.03) 54%, rgba(255, 255, 255, 0.03) 100%);
  z-index: -1;
}

.pokeball-1 {
  top: -150px;
  right: -150px;
  transform: rotate(30deg);
}

.pokeball-2 {
  bottom: -200px;
  left: -200px;
  transform: rotate(-15deg);
}

.page-container {
  background: linear-gradient(135deg, rgba(26, 27, 38, 0.95), rgba(34, 36, 54, 0.9));
  backdrop-filter: blur(10px);
  min-height: 100vh;
}

.calendar-container {
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 1200px;
  border: 2px solid rgba(101, 167, 219, 0.2);
  position: relative;
  overflow: hidden;
}

.calendar-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='38' fill='none' stroke='rgba(101, 167, 219, 0.05)' stroke-width='4'/%3E%3Cpath d='M40 2 A38 38 0 0 1 40 78 A38 38 0 0 1 40 2Z' fill='none' stroke='rgba(255, 222, 0, 0.05)' stroke-width='4'/%3E%3Cline x1='2' y1='40' x2='78' y2='40' stroke='rgba(0, 0, 0, 0.1)' stroke-width='4'/%3E%3Ccircle cx='40' cy='40' r='12' fill='rgba(0, 0, 0, 0.05)' stroke='rgba(0, 0, 0, 0.1)' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 80px 80px;
  opacity: 0.3;
  z-index: 0;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.month-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pokemon-yellow);
  text-shadow: 0 0 10px rgba(255, 222, 0, 0.3);
  position: relative;
  padding-bottom: 8px;
}

.month-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pokemon-blue), var(--pokemon-light-blue));
  border-radius: 3px;
}

.calendar-nav-button {
  background: var(--streamer-teal); /* Use streamer teal */
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(59, 76, 202, 0.4);
}

.calendar-nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(245, 111, 173, 0.5); /* Pink shadow on hover */
  background: var(--streamer-pink); /* Use streamer pink for hover */
}

.calendar-nav-button:active {
  transform: translateY(0);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.75rem;
  color: var(--streamer-teal); /* Use teal for weekdays */
  font-weight: 600;
  text-align: center;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
}

.calendar-day {
  background: rgba(42, 44, 65, 0.8);
  border-radius: 16px;
  min-height: 120px;
  padding: 0.75rem;
  position: relative;
  transition: all 0.2s;
  overflow: hidden;
  border: 1px solid rgba(101, 167, 219, 0.1);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex; /* Added */
  flex-direction: column; /* Added */
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(101, 167, 219, 0.3);
  background: rgba(50, 52, 75, 0.9);
}

/* Modified today style */
.calendar-day.today {
  border: 2px solid var(--streamer-pink); /* Use streamer pink for today's border */
  background: rgba(245, 111, 173, 0.1); /* Match today's subtle pink background */
  box-shadow: 0 0 10px rgba(245, 111, 173, 0.15), inset 0 0 40px rgba(78, 205, 196, 0.05); /* Pink/Teal glow */
}

.calendar-day .date {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--light-text);
  text-align: center;
  padding: 0.5rem 0.75rem; /* Adjusted padding */
  border-radius: 16px 16px 0 0; /* Rounded top corners only */
  background: rgba(101, 167, 219, 0.2);
  width: calc(100% + 1.5rem); /* Span full width including parent padding */
  margin: -0.75rem -0.75rem 0.5rem -0.75rem; /* Adjust margins to remove spacing */
  box-sizing: border-box; /* Include padding in width calculation */
}

.calendar-day.today .date {
  /* background: var(--pokemon-yellow); Removed yellow background */
  color: var(--light-text); /* Ensure text color is readable */
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); Removed shadow */
  /* Keep the border from .calendar-day.today */
  background: rgba(245, 111, 173, 0.1); /* Match today's subtle pink background */
}

.event-badge {
  display: block;
  border-radius: 8px; /* Slightly smaller radius */
  padding: 4px 8px; /* Reduced padding */
  font-size: 0.8em; /* Reduced font size */
  margin-bottom: 4px; /* Reduced margin */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Slightly smaller shadow */
  color: white;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.event-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--streamer-pink); /* Add subtle pink border on hover */
}

/* Pokemon event types */
.event-badge.raid {
  background: linear-gradient(135deg, #e53935, #c62828);
}

.event-badge.community {
  background: linear-gradient(135deg, #43a047, #2e7d32);
}

.event-badge.spotlight {
  background: linear-gradient(135deg, #fb8c00, #ef6c00);
}

.event-badge.special {
  background: linear-gradient(135deg, #8e24aa, #6a1b9a);
}

.event-badge.go-battle {
  background: linear-gradient(135deg, #1976d2, #0d47a1);
}

.modal-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.modal {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  color: var(--light-text);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  position: relative;
  border: 2px solid var(--pokemon-light-blue);
  animation: modalAppear 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalAppear {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--light-text);
  font-size: 1.3em;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.modal-icon.raid { background: linear-gradient(135deg, #e53935, #c62828); }
.modal-icon.community { background: linear-gradient(135deg, #43a047, #2e7d32); }
.modal-icon.spotlight { background: linear-gradient(135deg, #fb8c00, #ef6c00); }
.modal-icon.special { background: linear-gradient(135deg, #8e24aa, #6a1b9a); }
.modal-icon.go-battle { background: linear-gradient(135deg, #1976d2, #0d47a1); }

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pokemon-yellow);
  line-height: 1.2;
}

.modal-day-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pokemon-yellow);
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-time {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--pokemon-light-blue);
  font-weight: 500;
}

.modal-time i {
  margin-right: 0.5rem;
}

.modal-desc {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

.modal-event-link {
  display: inline-flex;
  align-items: center;
  background: rgba(78, 205, 196, 0.2); /* Teal background */
  border: 1px solid rgba(78, 205, 196, 0.3); /* Teal border */
  padding: 0.6rem 1rem;
  border-radius: 100px;
  color: var(--streamer-teal); /* Teal text */
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  margin-top: 1rem;
}

.modal-event-link:hover {
  background: rgba(78, 205, 196, 0.3); /* Darker teal background */
  transform: translateY(-2px);
  color: var(--streamer-pink); /* Pink text on hover */
}

.modal-event-link i {
  margin-right: 0.5rem;
}

.modal-status {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-status.active {
  background: rgba(67, 160, 71, 0.2);
  color: #81c784;
  border: 1px solid rgba(67, 160, 71, 0.4);
}

.modal-status.upcoming {
  background: rgba(251, 140, 0, 0.2);
  color: #ffb74d;
  border: 1px solid rgba(251, 140, 0, 0.4);
}

.modal-status.ended {
  background: rgba(229, 57, 53, 0.2);
  color: #e57373;
  border: 1px solid rgba(229, 57, 53, 0.4);
}

.modal-image-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modal-image-container:hover img {
  transform: scale(1.05);
}

.modal-image-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 1rem;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
}

.pokemon-logo {
  height: 60px;
  margin-right: 1rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.page-title {
  text-align: center;
  margin-bottom: 2rem;
}

.page-title h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--pokemon-yellow);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 12px rgba(255, 222, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-title p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--light-text);
  line-height: 1.6;
}

.event-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.legend-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin-right: 0.7rem;
}

/* Empty day styles */
.calendar-day.empty {
  background: rgba(42, 44, 65, 0.4);
  min-height: 90px;
  cursor: default;
}

/* Day events modal specific styles */
.day-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.day-event-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.2s;
  border-left: 4px solid #3B4CCA;
}

.day-event-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.day-event-item.raid { border-left-color: #e53935; }
.day-event-item.community { border-left-color: #43a047; }
.day-event-item.spotlight { border-left-color: #fb8c00; }
.day-event-item.special { border-left-color: #8e24aa; }
.day-event-item.go-battle { border-left-color: #1976d2; }

.day-event-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.day-event-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.day-event-icon.raid { background: linear-gradient(135deg, #e53935, #c62828); }
.day-event-icon.community { background: linear-gradient(135deg, #43a047, #2e7d32); }
.day-event-icon.spotlight { background: linear-gradient(135deg, #fb8c00, #ef6c00); }
.day-event-icon.special { background: linear-gradient(135deg, #8e24aa, #6a1b9a); }
.day-event-icon.go-battle { background: linear-gradient(135deg, #1976d2, #0d47a1); }

.day-event-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--light-text);
}

.day-event-time {
    font-size: 0.9rem;
    color: var(--pokemon-light-blue);
    margin-top: 0.2rem;
  }
  
  .day-event-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
  }
  
  .view-details-btn {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(78, 205, 196, 0.2); /* Changed from pink to teal background */
  border: 1px solid rgba(78, 205, 196, 0.4); /* Changed from pink to teal border */
  color: var(--streamer-teal); /* Changed from pink to teal text */
  border-radius: 100px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.view-details-btn:hover {
  background: rgba(78, 205, 196, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Added rule to push the button container to the bottom */
.calendar-day > div:has(.view-details-btn) {
  margin-top: auto;
  text-align: center;
  padding-top: 5px; /* Add some space above the button */
}

.event-counter {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(245, 111, 173, 0.2); /* Subtle pink background like today */
  color: var(--light-text);
  font-size: 0.7rem; /* Made smaller */
  font-weight: 600;
  width: 18px; /* Made smaller */
  height: 18px; /* Made smaller */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  z-index: 3; 
  border: 1px solid var(--streamer-pink); /* Added pink border like today */
}

/* Time until tooltip */
.event-badge {
  position: relative;
}

.time-until-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-bg);
  color: var(--light-text);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 200; /* Increased z-index to ensure visibility */
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid var(--streamer-teal);
  pointer-events: none; /* Ensure tooltip doesn't interfere with hover */
}

.time-until-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--dark-bg);
}

.event-badge:hover .time-until-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

/* Hover effect for event badges */
.event-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  z-index: 1;
  border-radius: 10px;
}

.event-badge:hover::after {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Animated pokeball button */
.pokemon-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  margin-left: 10px;
}

.pokemon-button::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  background: linear-gradient(to bottom, 
            var(--pokemon-red) 0%, var(--pokemon-red) 45%, 
            #000 45%, #000 55%, 
            #fff 55%, #fff 100%);
  border-radius: 50%;
  transform: scale(0.9);
  transition: all 0.3s;
}

.pokemon-button::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #000;
  z-index: 1;
}

.pokemon-button:hover::before {
  transform: scale(1);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.pokemon-button:active::before {
  transform: scale(0.8);
}

/* Filter dropdown - fixed z-index issue */
.filter-dropdown {
  position: relative;
  margin: 0 1rem;
}

.filter-button {
  background: rgba(59, 76, 202, 0.2);
  border: 1px solid rgba(59, 76, 202, 0.3);
  color: var(--pokemon-light-blue);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-button:hover {
  background: rgba(59, 76, 202, 0.3);
}

.filter-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background-color: var(--card-bg); /* Explicitly set background color */
  border: 1px solid rgba(101, 167, 219, 0.2); /* Add border for better visibility */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  z-index: 1000; /* Significantly increased z-index */
  padding: 0.75rem;
  transform-origin: top left;
  transform: scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.filter-dropdown.active .filter-menu {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.filter-option {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.filter-option.active .filter-checkbox {
  background: var(--pokemon-blue);
  border-color: var(--pokemon-blue);
}

.filter-option.active .filter-checkbox::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.filter-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Current time indicator */
.current-time-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0px;
  background: var(--streamer-pink); /* Use pink for time indicator */
  z-index: 5;
  box-shadow: 0 0 4px var(--streamer-pink);
}

.current-time-indicator::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--streamer-pink); /* Use pink for time indicator dot */
  border-radius: 50%;
  right: -4px;
  top: -3px;
  box-shadow: 0 0 4px var(--streamer-pink);
  display:none;
}

/* Pokeball custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  /* Gradient from pink to teal */
  background: linear-gradient(to bottom, var(--streamer-pink), var(--streamer-teal)); 
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  /* Slightly lighter gradient on hover */
  background: linear-gradient(to bottom, #f78fbe, #6ee0d8); 
}

/* Animation for calendar appearance */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.calendar-container {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive styles */
@media (max-width: 768px) {
  .calendar-grid {
    gap: 0.5rem;
  }
  
  .calendar-day {
    min-height: 90px;
    padding: 0.5rem;
  }
  
  .event-badge {
    padding: 4px 8px;
    font-size: 0.8em;
  }
  
  .calendar-day .date {
    font-size: 0.9em;
  }

  .streamer-info {
    flex-direction: column;
    text-align: center;
  }

  .streamer-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .page-title h1 {
    font-size: 1.8rem;
  }

  .month-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  .event-legend {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .legend-item {
    width: 100%;
    justify-content: center;
  }

  .calendar-weekdays div {
    font-size: 0.8em;
  }
  
  .filter-menu {
    right: 0;
    left: auto;
  }
}

/* Updated styles for the season banner with image overlay */
/* Updated styles for the season banner with image overlay */
.season-banner {
  border: 1px solid var(--streamer-teal);
  border-radius: 12px;
  padding: 0; /* Remove padding */
  margin-top: 2rem;
  text-align: center;
  display: block; /* Use block instead of flex */
  text-decoration: none;
  color: var(--light-text);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  height: 160px; /* Fixed height */
  position: relative; /* For absolute positioning of content */
  overflow: hidden; /* Keep the image contained */
  background: none; /* Remove gradient background to avoid any color showing beneath image */
}

.season-banner-image {
  width: 100%;
  height: 100%; /* Fill the entire container */
  object-fit: cover; /* Cover the entire area */
  object-position: center; /* Center the image */
  display: block; /* Remove any potential space */
  transition: transform 0.3s ease;
  border-radius: 11px; /* Match parent's border-radius minus 1px for border */
}

.season-banner:hover .season-banner-image {
  transform: scale(1.05); /* Slightly stronger zoom effect */
}

.season-banner-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem; /* Slightly larger text */
  color: white; /* White text as requested */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), /* Stronger text shadows for better visibility */
               0 0 10px rgba(0, 0, 0, 0.7), 
               0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 2; /* Above the image */
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.4)); /* Stronger gradient overlay for better contrast */
  width: 100%; /* Ensure full width */
  height: 100%; /* Ensure full height */
}

.season-banner:hover {
  border-color: var(--streamer-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Add subtle shine effect */
.season-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.1) 25%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0) 75%);
  transform: translateX(-100%);
  transition: all 0.5s ease;
}

.season-banner:hover::after {
  transform: translateX(100%);
  transition: all 1s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .season-banner {
    min-height: 140px; /* Slightly smaller on mobile */
    padding: 1rem;
  }
  
  .season-banner-image {
    max-height: 100px;
  }
  
  .season-banner-text {
    font-size: 1rem;
  }
}

/* Added styles for text above season banner */
.above-banner-text {
  text-align: center;
  color: var(--light-text);
  margin-top: 2rem; /* Space above this text */
  margin-bottom: 1rem; /* Space below this text, before the banner */
  font-size: 1rem;
}

.streamer-info {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(245, 111, 173, 0.15)); /* Apply gradient like season banner */
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--streamer-pink); /* Pink border */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.streamer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, var(--pokemon-blue), #5465e0); Removed default background */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-right: 1.5rem; /* Gap between avatar and text */
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 3px solid var(--streamer-teal); /* Added border directly to the container */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Added shadow */
  overflow: hidden; /* Ensure image stays within rounded border */
}

.streamer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%; /* Ensure image is also rounded */
  object-fit: cover;
  /* position: absolute; Removed absolute positioning */
  /* top: 0; Removed */
  /* left: 0; Removed */
  /* z-index: -1; Removed */
  /* border: 3px solid var(--streamer-teal); Moved border to parent */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); Moved shadow to parent */
}

.streamer-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.streamer-text h3 {
  font-size: 1.6rem; /* Slightly larger */
  font-weight: 700;
  color: var(--pokemon-yellow);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Added subtle shadow */
}

.streamer-text p {
  font-size: 1rem;
  color: var(--light-text);
  line-height: 1.6; /* Increased line height slightly */
  opacity: 0.9; /* Slightly less prominent than title */
}

/* Added styles for the event type label with status */
.event-type-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem 0;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.event-type-label .type-info {
  display: flex;
  align-items: center;
}

.event-type-label .type-badge {
  display: inline-block;
  padding: 0.3em 1em;
  border-radius: 100px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.event-type-label .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.8em;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-type-label .status-badge.active {
  background: rgba(67, 160, 71, 0.2);
  color: #81c784;
  border: 1px solid rgba(67, 160, 71, 0.4);
}

.event-type-label .status-badge.upcoming {
  background: rgba(251, 140, 0, 0.2);
  color: #ffb74d;
  border: 1px solid rgba(251, 140, 0, 0.4);
}

.event-type-label .status-badge.ended {
  background: rgba(229, 57, 53, 0.2);
  color: #e57373;
  border: 1px solid rgba(229, 57, 53, 0.4);
}

.event-type-label .status-badge i {
  margin-right: 0.3rem;
}

/* Time until tooltip */
.event-badge {
  position: relative;
}

.time-until-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-bg);
  color: var(--light-text);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 200; /* Increased z-index to ensure visibility */
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid var(--streamer-teal);
  pointer-events: none; /* Ensure tooltip doesn't interfere with hover */
}

.time-until-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--dark-bg);
}

.event-badge:hover .time-until-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

/* Hover effect for event badges */
.event-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  z-index: 1;
  border-radius: 10px;
}

.event-badge:hover::after {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Animated pokeball button */
.pokemon-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  margin-left: 10px;
}

.pokemon-button::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  background: linear-gradient(to bottom, 
            var(--pokemon-red) 0%, var(--pokemon-red) 45%, 
            #000 45%, #000 55%, 
            #fff 55%, #fff 100%);
  border-radius: 50%;
  transform: scale(0.9);
  transition: all 0.3s;
}

.pokemon-button::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #000;
  z-index: 1;
}

.pokemon-button:hover::before {
  transform: scale(1);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.pokemon-button:active::before {
  transform: scale(0.8);
}

/* Filter dropdown - fixed z-index issue */
.filter-dropdown {
  position: relative;
  margin: 0 1rem;
}

.filter-button {
  background: rgba(59, 76, 202, 0.2);
  border: 1px solid rgba(59, 76, 202, 0.3);
  color: var(--pokemon-light-blue);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-button:hover {
  background: rgba(59, 76, 202, 0.3);
}

.filter-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background-color: var(--card-bg); /* Explicitly set background color */
  border: 1px solid rgba(101, 167, 219, 0.2); /* Add border for better visibility */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  z-index: 1000; /* Significantly increased z-index */
  padding: 0.75rem;
  transform-origin: top left;
  transform: scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.filter-dropdown.active .filter-menu {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.filter-option {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.filter-option.active .filter-checkbox {
  background: var(--pokemon-blue);
  border-color: var(--pokemon-blue);
}

.filter-option.active .filter-checkbox::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.filter-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Current time indicator */
.current-time-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0px;
  background: var(--streamer-pink); /* Use pink for time indicator */
  z-index: 5;
  box-shadow: 0 0 4px var(--streamer-pink);
}

.current-time-indicator::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--streamer-pink); /* Use pink for time indicator dot */
  border-radius: 50%;
  right: -4px;
  top: -3px;
  box-shadow: 0 0 4px var(--streamer-pink);
  display:none;
}

/* Pokeball custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  /* Gradient from pink to teal */
  background: linear-gradient(to bottom, var(--streamer-pink), var(--streamer-teal)); 
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  /* Slightly lighter gradient on hover */
  background: linear-gradient(to bottom, #f78fbe, #6ee0d8); 
}

/* Animation for calendar appearance */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.calendar-container {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive styles */
@media (max-width: 768px) {
  .calendar-grid {
    gap: 0.5rem;
  }
  
  .calendar-day {
    min-height: 90px;
    padding: 0.5rem;
  }
  
  .event-badge {
    padding: 4px 8px;
    font-size: 0.8em;
  }
  
  .calendar-day .date {
    font-size: 0.9em;
  }

  .streamer-info {
    flex-direction: column;
    text-align: center;
  }

  .streamer-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .page-title h1 {
    font-size: 1.8rem;
  }

  .month-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  .event-legend {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .legend-item {
    width: 100%;
    justify-content: center;
  }

  .calendar-weekdays div {
    font-size: 0.8em;
  }
  
  .filter-menu {
    right: 0;
    left: auto;
  }
}

/* Added styles for the season banner */
.season-banner {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(245, 111, 173, 0.15));
  border: 1px solid var(--streamer-teal);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  text-align: center;
  display: block;
  text-decoration: none;
  color: var(--light-text);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.season-banner:hover {
  color: var(--pokemon-yellow);
  border-color: var(--streamer-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Added styles for text above season banner */
.above-banner-text {
  text-align: center;
  color: var(--light-text);
  margin-top: 2rem; /* Space above this text */
  margin-bottom: 1rem; /* Space below this text, before the banner */
  font-size: 1rem;
}

.streamer-info {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(245, 111, 173, 0.15)); /* Apply gradient like season banner */
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--streamer-pink); /* Pink border */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.streamer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, var(--pokemon-blue), #5465e0); Removed default background */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-right: 1.5rem; /* Gap between avatar and text */
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 3px solid var(--streamer-teal); /* Added border directly to the container */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Added shadow */
  overflow: hidden; /* Ensure image stays within rounded border */
}

.streamer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%; /* Ensure image is also rounded */
  object-fit: cover;
  /* position: absolute; Removed absolute positioning */
  /* top: 0; Removed */
  /* left: 0; Removed */
  /* z-index: -1; Removed */
  /* border: 3px solid var(--streamer-teal); Moved border to parent */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); Moved shadow to parent */
}

.streamer-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.streamer-text h3 {
  font-size: 1.6rem; /* Slightly larger */
  font-weight: 700;
  color: var(--pokemon-yellow);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Added subtle shadow */
}

.streamer-text p {
  font-size: 1rem;
  color: var(--light-text);
  line-height: 1.6; /* Increased line height slightly */
  opacity: 0.9; /* Slightly less prominent than title */
}

/* Added styles for the event type label with status */
.event-type-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem 0;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.event-type-label .type-info {
  display: flex;
  align-items: center;
}

.event-type-label .type-badge {
  display: inline-block;
  padding: 0.3em 1em;
  border-radius: 100px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.event-type-label .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.8em;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-type-label .status-badge.active {
  background: rgba(67, 160, 71, 0.2);
  color: #81c784;
  border: 1px solid rgba(67, 160, 71, 0.4);
}

.event-type-label .status-badge.upcoming {
  background: rgba(251, 140, 0, 0.2);
  color: #ffb74d;
  border: 1px solid rgba(251, 140, 0, 0.4);
}

.event-type-label .status-badge.ended {
  background: rgba(229, 57, 53, 0.2);
  color: #e57373;
  border: 1px solid rgba(229, 57, 53, 0.4);
}

.event-type-label .status-badge i {
  margin-right: 0.3rem;
}

/* Time until tooltip */
.event-badge {
  position: relative;
}

.time-until-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-bg);
  color: var(--light-text);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 200; /* Increased z-index to ensure visibility */
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid var(--streamer-teal);
  pointer-events: none; /* Ensure tooltip doesn't interfere with hover */
}

.time-until-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--dark-bg);
}

.event-badge:hover .time-until-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

/* Hover effect for event badges */
.event-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  z-index: 1;
  border-radius: 10px;
}

.event-badge:hover::after {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Animated pokeball button */
.pokemon-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  margin-left: 10px;
}

.pokemon-button::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  background: linear-gradient(to bottom, 
            var(--pokemon-red) 0%, var(--pokemon-red) 45%, 
            #000 45%, #000 55%, 
            #fff 55%, #fff 100%);
  border-radius: 50%;
  transform: scale(0.9);
  transition: all 0.3s;
}

.pokemon-button::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #000;
  z-index: 1;
}

.pokemon-button:hover::before {
  transform: scale(1);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.pokemon-button:active::before {
  transform: scale(0.8);
}

/* Filter dropdown - fixed z-index issue */
.filter-dropdown {
  position: relative;
  margin: 0 1rem;
}

.filter-button {
  background: rgba(59, 76, 202, 0.2);
  border: 1px solid rgba(59, 76, 202, 0.3);
  color: var(--pokemon-light-blue);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-button:hover {
  background: rgba(59, 76, 202, 0.3);
}

.filter-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background-color: var(--card-bg); /* Explicitly set background color */
  border: 1px solid rgba(101, 167, 219, 0.2); /* Add border for better visibility */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  z-index: 1000; /* Significantly increased z-index */
  padding: 0.75rem;
  transform-origin: top left;
  transform: scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.filter-dropdown.active .filter-menu {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.filter-option {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.filter-option.active .filter-checkbox {
  background: var(--pokemon-blue);
  border-color: var(--pokemon-blue);
}

.filter-option.active .filter-checkbox::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.filter-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Current time indicator */
.current-time-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0px;
  background: var(--streamer-pink); /* Use pink for time indicator */
  z-index: 5;
  box-shadow: 0 0 4px var(--streamer-pink);
}

.current-time-indicator::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--streamer-pink); /* Use pink for time indicator dot */
  border-radius: 50%;
  right: -4px;
  top: -3px;
  box-shadow: 0 0 4px var(--streamer-pink);
  display:none;
}

/* Pokeball custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  /* Gradient from pink to teal */
  background: linear-gradient(to bottom, var(--streamer-pink), var(--streamer-teal)); 
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  /* Slightly lighter gradient on hover */
  background: linear-gradient(to bottom, #f78fbe, #6ee0d8); 
}

/* Animation for calendar appearance */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.calendar-container {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive styles */
@media (max-width: 768px) {
  .calendar-grid {
    gap: 0.5rem;
  }
  
  .calendar-day {
    min-height: 90px;
    padding: 0.5rem;
  }
  
  .event-badge {
    padding: 4px 8px;
    font-size: 0.8em;
  }
  
  .calendar-day .date {
    font-size: 0.9em;
  }

  .streamer-info {
    flex-direction: column;
    text-align: center;
  }

  .streamer-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .page-title h1 {
    font-size: 1.8rem;
  }

  .month-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  .event-legend {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .legend-item {
    width: 100%;
    justify-content: center;
  }

  .calendar-weekdays div {
    font-size: 0.8em;
  }
  
  .filter-menu {
    right: 0;
    left: auto;
  }
}

/* Added styles for the season banner */
.season-banner {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(245, 111, 173, 0.15));
  border: 1px solid var(--streamer-teal);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  text-align: center;
  display: block;
  text-decoration: none;
  color: var(--light-text);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.season-banner:hover {
  color: var(--pokemon-yellow);
  border-color: var(--streamer-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Added styles for text above season banner */
.above-banner-text {
  text-align: center;
  color: var(--light-text);
  margin-top: 2rem; /* Space above this text */
  margin-bottom: 1rem; /* Space below this text, before the banner */
  font-size: 1rem;
}

.streamer-info {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(245, 111, 173, 0.15)); /* Apply gradient like season banner */
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--streamer-pink); /* Pink border */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.streamer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, var(--pokemon-blue), #5465e0); Removed default background */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-right: 1.5rem; /* Gap between avatar and text */
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 3px solid var(--streamer-teal); /* Added border directly to the container */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Added shadow */
  overflow: hidden; /* Ensure image stays within rounded border */
}

.streamer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%; /* Ensure image is also rounded */
  object-fit: cover;
  /* position: absolute; Removed absolute positioning */
  /* top: 0; Removed */
  /* left: 0; Removed */
  /* z-index: -1; Removed */
  /* border: 3px solid var(--streamer-teal); Moved border to parent */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); Moved shadow to parent */
}

.streamer-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.streamer-text h3 {
  font-size: 1.6rem; /* Slightly larger */
  font-weight: 700;
  color: var(--pokemon-yellow);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Added subtle shadow */
}

.streamer-text p {
  font-size: 1rem;
  color: var(--light-text);
  line-height: 1.6; /* Increased line height slightly */
  opacity: 0.9; /* Slightly less prominent than title */
}

/* Added styles for the event type label with status */
.event-type-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem 0;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.event-type-label .type-info {
  display: flex;
  align-items: center;
}

.event-type-label .type-badge {
  display: inline-block;
  padding: 0.3em 1em;
  border-radius: 100px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.event-type-label .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.8em;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-type-label .status-badge.active {
  background: rgba(67, 160, 71, 0.2);
  color: #81c784;
  border: 1px solid rgba(67, 160, 71, 0.4);
}

.event-type-label .status-badge.upcoming {
  background: rgba(251, 140, 0, 0.2);
  color: #ffb74d;
  border: 1px solid rgba(251, 140, 0, 0.4);
}

.event-type-label .status-badge.ended {
  background: rgba(229, 57, 53, 0.2);
  color: #e57373;
  border: 1px solid rgba(229, 57, 53, 0.4);
}

.event-type-label .status-badge i {
  margin-right: 0.3rem;
}

/* Time until tooltip */
.event-badge {
  position: relative;
}

.time-until-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-bg);
  color: var(--light-text);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 200; /* Increased z-index to ensure visibility */
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid var(--streamer-teal);
  pointer-events: none; /* Ensure tooltip doesn't interfere with hover */
}

.time-until-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--dark-bg);
}

.event-badge:hover .time-until-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

/* Hover effect for event badges */
.event-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  z-index: 1;
  border-radius: 10px;
}

.event-badge:hover::after {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Animated pokeball button */
.pokemon-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  margin-left: 10px;
}

.pokemon-button::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  background: linear-gradient(to bottom, 
            var(--pokemon-red) 0%, var(--pokemon-red) 45%, 
            #000 45%, #000 55%, 
            #fff 55%, #fff 100%);
  border-radius: 50%;
  transform: scale(0.9);
  transition: all 0.3s;
}

.pokemon-button::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #000;
  z-index: 1;
}

.pokemon-button:hover::before {
  transform: scale(1);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.pokemon-button:active::before {
  transform: scale(0.8);
}

/* Filter dropdown - fixed z-index issue */
.filter-dropdown {
  position: relative;
  margin: 0 1rem;
}

.filter-button {
  background: rgba(59, 76, 202, 0.2);
  border: 1px solid rgba(59, 76, 202, 0.3);
  color: var(--pokemon-light-blue);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-button:hover {
  background: rgba(59, 76, 202, 0.3);
}

.filter-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background-color: var(--card-bg); /* Explicitly set background color */
  border: 1px solid rgba(101, 167, 219, 0.2); /* Add border for better visibility */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  z-index: 1000; /* Significantly increased z-index */
  padding: 0.75rem;
  transform-origin: top left;
  transform: scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.filter-dropdown.active .filter-menu {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.filter-option {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.filter-option.active .filter-checkbox {
  background: var(--pokemon-blue);
  border-color: var(--pokemon-blue);
}

.filter-option.active .filter-checkbox::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.filter-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Current time indicator */
.current-time-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0px;
  background: var(--streamer-pink); /* Use pink for time indicator */
  z-index: 5;
  box-shadow: 0 0 4px var(--streamer-pink);
}

.current-time-indicator::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--streamer-pink); /* Use pink for time indicator dot */
  border-radius: 50%;
  right: -4px;
  top: -3px;
  box-shadow: 0 0 4px var(--streamer-pink);
  display:none;
}

/* Pokeball custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  /* Gradient from pink to teal */
  background: linear-gradient(to bottom, var(--streamer-pink), var(--streamer-teal)); 
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  /* Slightly lighter gradient on hover */
  background: linear-gradient(to bottom, #f78fbe, #6ee0d8); 
}

/* Animation for calendar appearance */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.calendar-container {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive styles */
@media (max-width: 768px) {
  .calendar-grid {
    gap: 0.5rem;
  }
  
  .calendar-day {
    min-height: 90px;
    padding: 0.5rem;
  }
  
  .event-badge {
    padding: 4px 8px;
    font-size: 0.8em;
  }
  
  .calendar-day .date {
    font-size: 0.9em;
  }

  .streamer-info {
    flex-direction: column;
    text-align: center;
  }

  .streamer-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .page-title h1 {
    font-size: 1.8rem;
  }

  .month-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  .event-legend {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .legend-item {
    width: 100%;
    justify-content: center;
  }

  .calendar-weekdays div {
    font-size: 0.8em;
  }
  
  .filter-menu {
    right: 0;
    left: auto;
  }
}

/* Added styles for the season banner */
.season-banner {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(245, 111, 173, 0.15));
  border: 1px solid var(--streamer-teal);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  text-align: center;
  display: block;
  text-decoration: none;
  color: var(--light-text);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.season-banner:hover {
  color: var(--pokemon-yellow);
  border-color: var(--streamer-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Added styles for text above season banner */
.above-banner-text {
  text-align: center;
  color: var(--light-text);
  margin-top: 2rem; /* Space above this text */
  margin-bottom: 1rem; /* Space below this text, before the banner */
  font-size: 1rem;
}

.streamer-info {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(245, 111, 173, 0.15)); /* Apply gradient like season banner */
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--streamer-pink); /* Pink border */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.streamer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, var(--pokemon-blue), #5465e0); Removed default background */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-right: 1.5rem; /* Gap between avatar and text */
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 3px solid var(--streamer-teal); /* Added border directly to the container */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Added shadow */
  overflow: hidden; /* Ensure image stays within rounded border */
}

.streamer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%; /* Ensure image is also rounded */
  object-fit: cover;
  /* position: absolute; Removed absolute positioning */
  /* top: 0; Removed */
  /* left: 0; Removed */
  /* z-index: -1; Removed */
  /* border: 3px solid var(--streamer-teal); Moved border to parent */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); Moved shadow to parent */
}

.streamer-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.streamer-text h3 {
  font-size: 1.6rem; /* Slightly larger */
  font-weight: 700;
  color: var(--pokemon-yellow);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Added subtle shadow */
}

.streamer-text p {
  font-size: 1rem;
  color: var(--light-text);
  line-height: 1.6; /* Increased line height slightly */
  opacity: 0.9; /* Slightly less prominent than title */
}

/* Added styles for the event type label with status */
.event-type-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem 0;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.event-type-label .type-info {
  display: flex;
  align-items: center;
}

.event-type-label .type-badge {
  display: inline-block;
  padding: 0.3em 1em;
  border-radius: 100px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.event-type-label .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.8em;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-type-label .status-badge.active {
  background: rgba(67, 160, 71, 0.2);
  color: #81c784;
  border: 1px solid rgba(67, 160, 71, 0.4);
}

.event-type-label .status-badge.upcoming {
  background: rgba(251, 140, 0, 0.2);
  color: #ffb74d;
  border: 1px solid rgba(251, 140, 0, 0.4);
}

.event-type-label .status-badge.ended {
  background: rgba(229, 57, 53, 0.2);
  color: #e57373;
  border: 1px solid rgba(229, 57, 53, 0.4);
}

.event-type-label .status-badge i {
  margin-right: 0.3rem;
}

/* Time until tooltip */
.event-badge {
  position: relative;
}

.time-until-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-bg);
  color: var(--light-text);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000; /* Increased z-index to ensure visibility */
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid var(--streamer-teal);
  pointer-events: none; /* Ensure tooltip doesn't interfere with hover */
}

.time-until-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--dark-bg);
}

.event-badge:hover .time-until-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

/* Hover effect for event badges */
.event-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  z-index: 1;
  border-radius: 10px;
}

.event-badge:hover::after {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Animated pokeball button */
.pokemon-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  margin-left: 10px;
}

.pokemon-button::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  background: linear-gradient(to bottom, 
            var(--pokemon-red) 0%, var(--pokemon-red) 45%, 
            #000 45%, #000 55%, 
            #fff 55%, #fff 100%);
  border-radius: 50%;
  transform: scale(0.9);
  transition: all 0.3s;
}

.pokemon-button::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #000;
  z-index: 1;
}

.pokemon-button:hover::before {
  transform: scale(1);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.pokemon-button:active::before {
  transform: scale(0.8);
}

/* Filter dropdown - fixed z-index issue */
.filter-dropdown {
  position: relative;
  margin: 0 1rem;
}

.filter-button {
  background: rgba(59, 76, 202, 0.2);
  border: 1px solid rgba(59, 76, 202, 0.3);
  color: var(--pokemon-light-blue);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-button:hover {
  background: rgba(59, 76, 202, 0.3);
}

.filter-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background-color: var(--card-bg); /* Explicitly set background color */
  border: 1px solid rgba(101, 167, 219, 0.2); /* Add border for better visibility */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  z-index: 2000; /* Significantly increased z-index */
  padding: 0.75rem;
  transform-origin: top left;
  transform: scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

/* Active styles for dropdown filter menu */
.filter-dropdown.active .filter-menu {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.filter-option {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.filter-option.active .filter-checkbox {
  background: var(--pokemon-blue);
  border-color: var(--pokemon-blue);
}

.filter-option.active .filter-checkbox::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.filter-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Current time indicator */
.current-time-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0px;
  background: var(--streamer-pink); /* Use pink for time indicator */
  z-index: 5;
  box-shadow: 0 0 4px var(--streamer-pink);
}

.current-time-indicator::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--streamer-pink); /* Use pink for time indicator dot */
  border-radius: 50%;
  right: -4px;
  top: -3px;
  box-shadow: 0 0 4px var(--streamer-pink);
  display:none;
}

/* Pokeball custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  /* Gradient from pink to teal */
  background: linear-gradient(to bottom, var(--streamer-pink), var(--streamer-teal)); 
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  /* Slightly lighter gradient on hover */
  background: linear-gradient(to bottom, #f78fbe, #6ee0d8); 
}

/* Animation for calendar appearance */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.calendar-container {
  animation: fadeIn 0.6s ease-out;
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 1200px;
  border: 2px solid rgba(101, 167, 219, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1; /* Ensure this is lower than the filter menu */
}

/* Responsive styles */
@media (max-width: 768px) {
  .calendar-grid {
    gap: 0.5rem;
  }
  
  .calendar-day {
    min-height: 90px;
    padding: 0.5rem;
  }
  
  .event-badge {
    padding: 4px 8px;
    font-size: 0.8em;
  }
  
  .calendar-day .date {
    font-size: 0.9em;
  }

  .streamer-info {
    flex-direction: column;
    text-align: center;
  }

  .streamer-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .page-title h1 {
    font-size: 1.8rem;
  }

  .month-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  .event-legend {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .legend-item {
    width: 100%;
    justify-content: center;
  }

  .calendar-weekdays div {
    font-size: 0.8em;
  }
  
  .filter-menu {
    right: 0;
    left: auto;
  }
}

/* Added styles for the season banner */
.season-banner {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(245, 111, 173, 0.15));
  border: 1px solid var(--streamer-teal);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  text-align: center;
  display: block;
  text-decoration: none;
  color: var(--light-text);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.season-banner:hover {
  color: var(--pokemon-yellow);
  border-color: var(--streamer-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Added styles for text above season banner */
.above-banner-text {
  text-align: center;
  color: var(--light-text);
  margin-top: 2rem; /* Space above this text */
  margin-bottom: 1rem; /* Space below this text, before the banner */
  font-size: 1rem;
}

.streamer-info {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(245, 111, 173, 0.15)); /* Apply gradient like season banner */
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--streamer-pink); /* Pink border */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.streamer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, var(--pokemon-blue), #5465e0); Removed default background */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-right: 1.5rem; /* Gap between avatar and text */
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 3px solid var(--streamer-teal); /* Added border directly to the container */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Added shadow */
  overflow: hidden; /* Ensure image stays within rounded border */
}

.streamer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%; /* Ensure image is also rounded */
  object-fit: cover;
  /* position: absolute; Removed absolute positioning */
  /* top: 0; Removed */
  /* left: 0; Removed */
  /* z-index: -1; Removed */
  /* border: 3px solid var(--streamer-teal); Moved border to parent */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); Moved shadow to parent */
}

.streamer-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.streamer-text h3 {
  font-size: 1.6rem; /* Slightly larger */
  font-weight: 700;
  color: var(--pokemon-yellow);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Added subtle shadow */
}

.streamer-text p {
  font-size: 1rem;
  color: var(--light-text);
  line-height: 1.6; /* Increased line height slightly */
  opacity: 0.9; /* Slightly less prominent than title */
}

/* Added styles for the event type label with status */
.event-type-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem 0;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.event-type-label .type-info {
  display: flex;
  align-items: center;
}

.event-type-label .type-badge {
  display: inline-block;
  padding: 0.3em 1em;
  border-radius: 100px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.event-type-label .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.8em;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-type-label .status-badge.active {
  background: rgba(67, 160, 71, 0.2);
  color: #81c784;
  border: 1px solid rgba(67, 160, 71, 0.4);
}

.event-type-label .status-badge.upcoming {
  background: rgba(251, 140, 0, 0.2);
  color: #ffb74d;
  border: 1px solid rgba(251, 140, 0, 0.4);
}

.event-type-label .status-badge.ended {
  background: rgba(229, 57, 53, 0.2);
  color: #e57373;
  border: 1px solid rgba(229, 57, 53, 0.4);
}

.event-type-label .status-badge i {
  margin-right: 0.3rem;
}

/* Time until tooltip */
.event-badge {
  position: relative;
}

.time-until-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-bg);
  color: var(--light-text);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 200; /* Increased z-index to ensure visibility */
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border: 1px solid var(--streamer-teal);
  pointer-events: none; /* Ensure tooltip doesn't interfere with hover */
}

.time-until-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--dark-bg);
}

.event-badge:hover .time-until-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

/* Hover effect for event badges */
.event-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  z-index: 1;
  border-radius: 10px;
}

.event-badge:hover::after {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.time-until-tooltip.active {
  background: rgba(67, 160, 71, 0.3);
  border-color: rgba(67, 160, 71, 0.6);
  color: #adedad;
}

.time-until-tooltip.ended {
  background: rgba(229, 57, 53, 0.3);
  border-color: rgba(229, 57, 53, 0.6);
  color: #ef9a9a;
}

/* Calendar header specific positioning */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10; /* Ensure header is above calendar content but below dropdown */
}