/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(135deg, #ff7eb3, #ff758c);
  color: #333;
}
#bookingsList{
background:linear-gradient(135deg, #ffffff, #d5a6ac);
margin: 5px;
padding: 20px !important;
font-size:20px;

}
#myBookingsBtn{
font-size:15px;
font-weight:bold;
}

#bookingsList label{
margin: 3px;
padding:3px !important;
text-align:center;

}
#myBookingsModal button{
font-weight:bold;
font-size:20px;
}
#closeBtn{
display:flex;
float:right;
margin-top:-30px;
}
#myBookingsModal{
position:relative;
background:linear-gradient(135deg, #ffffff, #d5a6ac);
padding: 10px !important;
}

.selected {background:purple !important;color:white;}
.disabled {background:grey;cursor:not-allowed;}
/*  CONTAINER */
.container {
  max-width: 500px;
  margin: auto;
  padding: 10px;
}

/*  CARD */
.card {
  background: linear-gradient(135deg, #ffffff, #d5a6bd);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}

/*  PROFILE */
.profil-img {
  width: 150px;
  height:150px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.descriere {
  font-size: 14px;
  margin: 10px 0;
  color: #666;
}

/*  BUTTONS */
.btn {
  font-size: 20px;
  background: linear-gradient(135deg, #ff7eb3, #ff758c);
  border: none;
  padding: 12px;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  margin: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

#viewCollectionsBtn{margin-top:50px;text-align:left; display:block; margin-left:5%;padding:2px;border-radius: 5px;}
#prevMonth, #nextMonth{font-size:30px;margin:-20px;margin-top:70px;}
.confirm {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}
/*  CALENDAR CONTAINER */
#calendar-container {
  margin-top: 20px;
}

/*  TOP BAR */
.calendar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  height:50px;
  border: none;
  text-align:center;
  overflow:visible !important;
}
#monthsH{ 
  margin-top:25px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width:300px;
  margin-left:10px;
 }
.less_visible{
margin-top:20px;
font-size:12px;
width:30px;
cursor:pointer;
}
.strong_visible{
font-size:20px;
color:pink;
font-weight:bold;
width:120px;
margin:2px;
}
/*  WEEK HEADER */
.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: #777;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight:bold;
}

/*  GRID */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/*  DAY CARD */
.day {
  background: ;
  border-radius: 14px;
  padding: 8px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* hover */
.day:hover {
  transform: translateY(-2px);
}

/*  NUMBER */
.day strong {
  font-size: 16px;
}

/*  FREE SLOTS */
.day small {
  font-size: 10px;
}

/*  COLORS */
.day.green { background: #d4f8d4; }
.day.orange { background: #ffe4b5; }
.day.red { background: #ffc0c0; }
.day.gray { background: #eee; color: #aaa;cursor:not-allowed }

/*  TODAY */
.day.today {
  border: 2px solid #ff758c;
}

/*  EMPTY CELLS */
.day.empty {
  background: transparent;
  box-shadow: none;
  cursor: default;
}

/*  MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
  display: none;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-height: 90vh;       /* limits height */
  overflow-y: auto;       /* enables vertical scroll */
  -webkit-overflow-scrolling: touch; /* smooth on iPhone */
  background: linear-gradient(135deg, #ffffff, #741b47);
  padding: 20px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  animation: fadeIn 0.3s ease;
}

/*  INPUTS */
input, select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid #ddd;
}

/*  SERVICES */
#services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.service {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
}

.service img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.service p {
  font-size: 12px;
  padding: 5px;
}

.service.selected {
  border: 2px solid #ff758c;
}

/*  TOAST */
.toast {
  position: fixed;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  opacity: 0;
  transition: 0.3s;
}

.toast.show { 
bottom: 100px;
 font-size:15px;
  opacity: 0.9;
}

/*  LOADER */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity:0.9;
}

.loader::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 4px solid purple;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/*  ADMIN TABLE */
table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

td, th {
  border-bottom: 1px solid #ddd;
  padding: 10px;
  font-size: 14px;
  color:white;
}

button {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: rgba(0,0,0,0.5);
  color: white;
  cursor: pointer;
}

/*  UTIL */
.hidden {
  display: none;
}
/*  ANIMATIONS */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}

@keyframes spin {
  to {transform: rotate(360deg);}
}

/*  MOBILE */
@media(max-width: 500px) {
  .day {
    font-size: 10px;
    padding: 8px 3px;
  }
}
#calendar-wrapper {
  overflow: hidden;
  position: relative;
}

/* swipe directions */

#calendar {
  touch-action: pan-y;
   transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), filter 0.35s ease;
}
.slide-left {
  transform: translateX(33%);
  filter: blur(4px);
}

.slide-right {
  transform: translateX(-33%);
  filter: blur(4px);
}

.slide-in-left {
  transform: translateX(-100%);
  opacity:0;
}

.slide-in-right {
  transform: translateX(100%);
  opacity:0;
}

/* reset (revine la normal) */
.reset_position{
  transform: translateX(0);
  opacity: 1;
  transition:opacity 0.35s ease;

}

#swiper_box {
  box-sizing: border-box;
  margin: 0;
}

.swiper {
  position: relative;
  overflow: hidden;
  max-height:300px;
  max-width: 400px;
  margin: auto;
}

.swiper-track {
  display: flex;
  will-change: transform;
}

.slide {
  flex: 0 0 auto;
  padding: 5px;
}

.slide img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  background: #eee;
}

/* Navigation */
.nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  font-size:50px;font-weight:bold;
}
.nav:hover, .dot:hover, .active:hover, #nextMonth:hover, #prevMonth:hover,
{ background: linear-gradient(135deg, #7b2ff7, #f107a3);opacity:0.7}
.less_visible:hover{color:purple;}
.prev { left: 10px; }
.next { right: 10px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.dot {
  width: 8px;
  height: 8px;
  background: #fff;
  margin: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition:0.5s ease;
}

.dot.active {
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  width: 42px;
  margin-left:-5px;
  margin-right:-5px;
  border-radius: 15px; 
  transition: 0.5s ease;
  height:12px;
  margin-top:6px;
}
/*  glitter */
.glitter-purple {
  background: linear-gradient(135deg, #7b2ff7, #f107a3);
  color: white;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 10px rgba(123, 47, 247, 0.6),
    0 0 20px rgba(241, 7, 163, 0.4),
    inset 0 0 10px rgba(255,255,255,0.2);
}
.glitter-purple::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 15% 90%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 50% 10%, rgba(255,255,255,0.7), transparent),
    radial-gradient(3px 3px at 30% 11%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 60% 14%, rgba(255,255,255,0.5), transparent),    
    radial-gradient(1px 1px at 8% 50%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 70% 6%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 40% 33%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 90% 23%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 3px at 25% 35%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 5% 60%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 1px at 40% 50%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 9% 28%, rgba(255,255,255,0.8), transparent);

  animation: sparkle 4s linear infinite;
  pointer-events: none;
}
@keyframes sparkle {
  0% {
    transform: translateY(0px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0px);
    opacity: 0.7;
  }
}

