/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background-color: #111827; /* gray-900 */
  color: #f3f4f6; /* gray-100 */
  font-family: ui-sans-serif, system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item {
  width: 100%;
  max-width: 42rem;
  padding: 2rem;
}

/* Pill Tabs */
.tab-container {
  display: inline-flex;
  background-color: #1f2937; /* gray-800 */
  padding: 0.375rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  margin-bottom: 3rem;
  gap: 0.25rem;
}

.tab {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af; /* gray-400 */
  background-color: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab:hover {
  color: #ffffff;
  background-color: #374151; /* gray-700 */
}

.tab.active {
  background-color: #9333ea; /* purple-600 */
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

/* Optional content styling */
.item {
  background-color: #1f2937; /* gray-800 */
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  margin: 10px
}

.content h2 {
  color: #c084fc; /* purple-400 */
  margin-bottom: 1.25rem;
  margin-bottom: 1rem;
}

.content p {
  line-height: 1.6;
  color: #d1d5db; /* gray-300 */
}

.hidden { display: none !important; }

html { font-size: 100%; }         /* 1rem = 16px */
@media (max-width: 640px) {
  html { font-size: 94%; }        /* slightly smaller on phones */
}

/* Calendar Styles */
.calendar-container {
  max-width: 1400px;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-radius: 1rem;
}

.calendar-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.calendar-nav button {
  padding: 0.75rem 1.25rem;
  background: #374151;
  border: none;
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-nav button:hover {
  background: #4b5563;
}

.current-month {
  font-size: 1.5rem;
  font-weight: 700;
  color: #a78bfa;
  min-width: 200px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #374151;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.calendar-day-header {
  background: #1f2937;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: #9ca3af;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.calendar-day {
  background: #111827;
  min-height: 120px;
  padding: 0.75rem;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.calendar-day:hover {
  background: #1a1f2e;
}

.calendar-day.other-month {
  background: #0d1117;
  opacity: 0.5;
}

.calendar-day.today {
  background: rgba(139, 92, 246, 0.1);
  border: 2px solid #8b5cf6;
}

.day-number {
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

.calendar-day.other-month .day-number {
  color: #6b7280;
}

.event-pill {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-pill:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Event Modal */
.event-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.event-modal-content {
  background: #1f2937;
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid #374151;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.event-modal-content h2 {
  color: #a78bfa;
  font-size: 1.75rem;
  margin: 0 0 1rem 0;
}

.event-modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.event-detail {
  margin-bottom: 1rem;
}

.event-detail-label {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.event-detail-value {
  color: #e5e7eb;
  font-size: 1rem;
}

.event-modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.event-modal-buttons button {
  flex: 1;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.close-btn {
  background: #374151;
  color: white;
}

.close-btn:hover {
  background: #4b5563;
}

.edit-event-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
}

.edit-event-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}