@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');
/* New Calendar Design Styles */
body {
  font-family: 'Inter', sans-serif;
}

/* Main Calendar Layout */
.CalendarGrid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0rem;
  margin-top: 1rem;
}

/* Calendar Heading */
.CalendarHeading {
  font-size: 2rem;
  font-weight: 700;
  color: #0d121b;
  margin: 0rem 0rem 0.5rem 0;
  line-height: 1.3;
  padding-top: 1rem
}

.CalendarDescription {
  color: #666;
  margin: 0 0 1.5rem 0;
}

/* Filters Sidebar */
.CalendarFiltersSidebar {
  position: sticky;
  top: 2rem;
  transform: scale(0.9);
  transform-origin: top left;
}

.CalendarFiltersContainer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: white;
  border-radius: 0.75rem; /* 12px */
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.CalendarFiltersTitle {
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  color: #0d121b;
  margin: 0 0 1rem 0;
}

/* Form Fields */
.Field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.Field label {
  font-size: 1rem;
  font-weight: 500;
  color: #333333;
  padding-bottom: 0.5rem;
}

.Field input,
.Field select {
  width: 100%;
  border-radius: 0.5rem; /* 8px */
  border: 1px solid #d1d5db;
  background: #f6f6f8;
  color: #333333;
  padding: 0.625rem 0.75rem; /* 10px 12px */
  font-size: 1rem;
}

.Field input:focus,
.Field select:focus {
  outline: none;
  border-color: #0057B7;
  box-shadow: 0 0 0 3px rgba(0, 87, 183, 0.1);
}

/* Status Filter Section */
.StatusFilterSection {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.FilterLabel {
  font-size: 1rem;
  font-weight: 500;
  color: #333333;
  padding-bottom: 0.5rem;
}

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

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

.StatusCheckboxInput {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  border-radius: 0.25rem; /* 4px */
  border: 1px solid #d1d5db;
  background: white;
  cursor: pointer;
}

.StatusCheckboxInput:checked {
  background-color: #0057B7;
  border-color: #0057B7;
}

.StatusCheckboxText {
  font-size: 1rem;
  font-weight: 400;
  color: #333333;
}

/* Month/Year Filter Grid */
.MonthYearGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Navigation Buttons */
.CalendarNavButtons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.NavButton {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem; /* 8px */
  border: 1px solid #d1d5db;
  background: white;
  color: #6b7280;
  height: 2.5rem; /* 40px */
  width: 2.5rem; /* 40px */
  transition: all 0.2s ease;
}

.NavButton:hover {
  background: #f3f4f6;
  color: #111827;
}

.NavButtonIcon {
  width: 1.25rem;
  height: 1.25rem;
}

.MonthLabel {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
  min-width: 120px;
}

/* Calendar Events Header with Navigation */
.CalendarEventsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigation in header */
.CalendarEventsHeader .CalendarNavButtons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.CalendarEventsTitle {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: #0d121b;
  margin: 0;
}

/* Events Container */
.CalendarEventsContainer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.CalendarEventsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.CalendarEventsTitle {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: #0d121b;
  margin: 0;
}

/* Events List */
.CalendarEventsList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.EventsSection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Loading Animation */
.CalendarEventsList.loading {
  position: relative;
  min-height: 200px;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 87, 183, 0.2);
  border-top: 4px solid #0057B7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.EventsSectionTitle {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: #0d121b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.EventsSectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0rem;
}


@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  75%, 100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

.EventsList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Event Card */
.EventCard {
  display: grid;
  grid-template-columns: 3fr 17fr 3fr; /* Using 3fr layout for better proportions */
  align-items: center;
  gap: 1rem;
  background: white;
  border-radius: 0.75rem; /* 12px */
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.EventCard:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Ensure proper layout for event details */
.EventCardBody {
  min-width: 0; /* Allow text truncation */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.EventCardTitle {
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  color: #0d121b;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
  transition: color 0.2s;
}



/* Date Badge */
.EventCardDateBadge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem; /* 8px */
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.EventCard.status-planned .EventCardDateBadge {
  background-color: var(--clr-blue-100, #dbeafe);
  color: var(--clr-blue-800, #1e3a8a);
}

.EventCard.status-ongoing .EventCardDateBadge {
  background-color: var(--clr-yellow-100, #fef9c3);
  color: var(--clr-yellow-800, #854d0e);
}

.EventCard.status-finished .EventCardDateBadge {
  background-color: var(--clr-green-100, #dcfce7);
  color: var(--clr-green-800, #14532d);
}

.EventCard.status-canceled .EventCardDateBadge {
  background-color: var(--clr-red-100, #fee2e2);
  color: var(--clr-red-800, #7f1d1d);
}

.EventCardDateBadgeInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.EventCardDateBadgeDay {
  font-size: 1rem; /* 18px */
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.EventCardDateBadgeMonth {
  font-size: 1rem; /* 24px */
  font-weight: 900;
  line-height: 1.2;
}

/* Event Card Body */
.EventCardBody {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0; /* Allow text truncation */
}

.EventCardTitle {
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  color: #0d121b;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
  transition: color 0.2s;
}


/* Event Card Meta */
.EventCardMeta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.EventCardTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.EventCardTag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--clr-gray-200, #e2e8f0);
  color: var(--clr-gray-700, #334155);
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.EventCardTag.location-tag {
  background-color: var(--clr-sky-100, #e0f2fe);
  color: var(--clr-sky-700, #0369a1);
}

.EventCardTag.type-tag {
  background-color: var(--clr-green-100, #d1fae5);
  color: var(--clr-green-700, #047857);
}

.EventCardTag.category-tag {
  background-color: var(--clr-red-100, #fee2e2);
  color: var(--clr-red-700, #b91c1c);
}

.EventCardTag.age-tag {
  background-color: var(--clr-violet-100, #ede9fe);
  color: var(--clr-violet-700, #6d28d9);
}

.EventCardTagIcon {
  width: 0.75rem;
  height: 0.75rem;
}

/* Event Card Location */
.EventCardLocation {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-size: 0.875rem; /* 14px */
  color: #6b7280; /* gray-600 */
}

.EventCardLocationIcon {
  width: 0.75rem;
  height: 0.75rem;
}

/* Event Card Buttons */
.EventCardButtons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.EventCardButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem; /* 8px */
  height: 2.5rem; /* 40px */
  text-align: center;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 0;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.EventCardButton--regulation {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.EventCardButton--regulation:hover {
  background-color: #e2e8f0;
  color: #1e293b;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.EventCardButton--details {
  background-color: #e6f0ff;
  color: #0057B7;
  border: 1px solid #93c5fd;
}

.EventCardButton--details:hover {
  background-color: #0057B7;
  color: white;
  border-color: #0057B7;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 87, 183, 0.2);
}

/* Status-specific details button colors */
.EventCard.status-planned .EventCardButton--details {
  background-color: #dbeafe;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}

.EventCard.status-planned .EventCardButton--details:hover {
  background-color: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.2);
}

.EventCard.status-ongoing .EventCardButton--details {
  background-color: #fef9c3;
  color: #854d0e;
  border: 1px solid #facc15;
}

.EventCard.status-ongoing .EventCardButton--details:hover {
  background-color: #854d0e;
  color: white;
  border-color: #854d0e;
  box-shadow: 0 4px 8px rgba(133, 77, 14, 0.2);
}

.EventCard.status-finished .EventCardButton--details {
  background-color: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
}

.EventCard.status-finished .EventCardButton--details:hover {
  background-color: #14532d;
  color: white;
  border-color: #14532d;
  box-shadow: 0 4px 8px rgba(20, 83, 45, 0.2);
}

.EventCard.status-canceled .EventCardButton--details {
  background-color: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}

.EventCard.status-canceled .EventCardButton--details:hover {
  background-color: #7f1d1d;
  color: white;
  border-color: #7f1d1d;
  box-shadow: 0 4px 8px rgba(127, 29, 29, 0.2);
}

/* Event Card Status */
.EventCardStatus {
  display: flex;
  justify-content: flex-end;
}

.EventCardStatusBadge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem; /* 4px 12px */
  font-size: 0.75rem; /* 12px */
  font-weight: 500;
}

.EventCardStatusBadge.status-planned {
  background-color: #dbeafe;
  color: #1e3a8a;
}

.EventCardStatusBadge.status-ongoing {
  background-color: #fef9c3;
  color: #854d0e;
}

.EventCardStatusBadge.status-finished {
  background-color: #dcfce7;
  color: #14532d;
}

.EventCardStatusBadge.status-canceled {
  background-color: #fee2e2;
  color: #7f1d1d;
}

/* Empty State */
.CalendarEmpty {
  padding: 2rem;
  text-align: center;
  color: #666;
  border: 1px dashed #ddd;
  border-radius: 12px;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .CalendarGrid {
    grid-template-columns: 250px 1fr;
  }
}

@media (max-width: 768px) {
  .CalendarGrid {
    grid-template-columns: 1fr;
  }
  
  .CalendarFiltersSidebar {
    position: static;
  }
  
  .CalendarFiltersContainer {
    margin-bottom: 1rem;
  }
  
  .MonthYearGrid {
    grid-template-columns: 1fr;
  }
  
  .EventCard {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto;
  }
  
  .EventCardStatus {
    order: 2;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }
  
  .EventCardDateBadge {
    min-width: 60px;
  }
  
  .EventCardDateBadgeDay {
    font-size: 0.75rem; /* 12px */
  }
  
  .EventCardDateBadgeMonth {
    font-size: 1rem; /* 16px */
  }
}

@media (max-width: 480px) {
  .CalendarHeading {
    font-size: 2rem;
  }
  
  .EventCard {
    padding: 0.75rem;
    grid-template-columns: 1fr;
  }
  
  .EventCardDateBadge {
    width: 100%;
    justify-content: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .EventCardStatus {
    justify-content: center;
    margin-top: 0.5rem;
  }
}
.StatusIndicator {
  font-size: 32px;
  display: inline-block;
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   АНІМАЦІЯ ПУЛЬСАЦІЇ
   ============================================
   
   ЩО ЦЕ РОБИТЬ:
   Індикатор плавно збільшується і зменшується,
   створюючи ефект "пульсу" або "дихання".
   
   ПАРАМЕТРИ:
   - 2s = тривалість одного циклу (2 секунди)
   - ease-in-out = плавний початок і кінець
   - infinite = повторюється безкінечно
*/
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* ============================================
   КОЛЬОРИ СТАТУСІВ
   ============================================ */

.StatusIndicator.ongoing {
  color: #e78b21; /* Зелений - поточні події */
}

.StatusIndicator.planned {
  color: #3b82f6; /* Синій - заплановані події */
}

.StatusIndicator.finished {
  color: #94a3b8; /* Сірий - завершені події */
  animation: none; /* Завершені НЕ пульсують */
}

.StatusIndicator.canceled {
  color: #ef4444; /* Червоний - скасовані події */
  animation: none; /* Скасовані НЕ пульсують */
}

