/* event.css */

body {
  margin: 0;
  background: linear-gradient(180deg, #f8f6f3 0%, #f3efea 100%);
}

h2 {
  font-family: 'Helvetica', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: 20px;
  text-align: center;
  color: #333;
  font-size: 18px;
}

.calendar-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  margin-top: 80px;
}

@media screen and (min-width: 768px) {
  .calendar-container {
    max-width: 600px;
    padding: 0 40px;
    margin-top: 80px;
  }
}

@media screen and (min-width: 1024px) {
  .calendar-container {
    max-width: 700px;
    padding: 0 60px;
    margin-top: 80px;
  }
}

/* Calendar Styles */

.calendar {
  width: 100%;
  margin: 0 auto;
  border: 2px solid #FFC0CB;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 192, 203, 0.3), 0 4px 16px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
}

.month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: linear-gradient(135deg, #FFC0CB 0%, #FFB6C1 50%, #FFA0B4 100%);

  position: relative;
  overflow: hidden;
}

.month-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}

.month-name {
  font-family: 'Helvetica', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
}

.day {
  font-family: 'Helvetica', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  cursor: pointer;
  color: #4a5568;
  background-color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.day.available {
  background: linear-gradient(135deg, #FF6B9D 0%, #FFC0CB 100%);
  color: #fff;
  transform: scale(1.05);
  font-weight: 700;
}


.day:hover:not(.available) {
  background-color: #f8f9fa;
  border-color: #FFC0CB;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.day-header {
  font-family: 'Helvetica', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 12px;
  text-align: center;
  font-weight: 700;
  color: #718096;
  padding: 12px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Available Times Styles */

.available-times {
  width: 100%;
  margin: 20px auto;
}

.available-times-message {
  font-family: 'Helvetica', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 5px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
}

.availability-status-message {
  padding: 12px;
  border-radius: 6px;
  margin: 10px 0;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.4;
}

.availability-status-message.fully-booked {
  color: #d63384;
  font-weight: 500;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}

.availability-status-message.fully-booked .next-available {
  color: #198754;
  font-weight: 600;
}

.availability-status-message.has-availability {
  color: black;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
}

.time-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-left: 10px;
}

.morning {
  font-family: 'Helvetica', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 5px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
}

.afternoon {
  font-family: 'Helvetica', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
}

.time {
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  color: #2d3748;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 192, 203, 0.2);
  position: relative;
  overflow: hidden;
}


.time:hover {
  background: linear-gradient(135deg, #FF6B9D 0%, #FFC0CB 100%);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
  border-color: #FF6B9D;
}

.no-times-message {
  padding: 10px;
  font-style: italic;
  color: #999;
  text-align: center;
}

.prev-month-btn,
.next-month-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.prev-month-btn:hover,
.next-month-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.prev-month-btn:active,
.next-month-btn:active {
  transform: scale(0.95);
}

.prev-month-btn:focus,
.next-month-btn:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.prev-month-btn:disabled,
.next-month-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.prev-month-btn i,
.next-month-btn i {
  line-height: 1;
}

.hide {  
  background-color: #FFC0CB;
  color:#FFC0CB;
}

.hide:hover {
  background-color: #FFC0CB;
}

.available-time {
  font-family: 'Helvetica', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #2d3748;
  text-align: center;
  margin: 20px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Instagram Booking CTA */
.booking-cta {
  background: linear-gradient(135deg, #FF6B9D 0%, #FFC0CB 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 8px 32px rgba(255, 107, 157, 0.3);
  border: 2px solid #FF6B9D;
}

.booking-cta h3 {
  color: white;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.booking-cta p {
  color: white;
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
}

a:hover {
  text-decoration: none;
}

/* Button Container Styles */
.button-container {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  margin-top: 100px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.back-to-service {
  background: linear-gradient(135deg, #FF6B9D 0%, #FFC0CB 100%);
  font-size: 16px;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.back-to-service:hover {
  background: linear-gradient(135deg, #FF4A7C 0%, #FFB6C1 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
}

@media (max-width: 768px) {
  .button-container {
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
  }
  
  .back-to-service {
    font-size: 14px;
    padding: 8px 16px;
  }

  .calendar-container {
    margin-top: 70px;
  }

  .prev-month-btn,
  .next-month-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .day {
    aspect-ratio: 1;
    height: auto;
  }
}
