body {
  font-family: Arial, sans-serif;
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
  margin: 0;
  padding: 0;
  direction: rtl;
}

h1, h2 {
  text-align: center;
  color: rgb(43, 245, 255);
  margin-bottom: 20px;
  font-size: 1.5em;
}

p {
  text-align: center;
  color: rgb(43, 245, 255);
  margin-bottom: 20px;
  font-size: 1em;
}

/* ===== Container & Calendar ===== */
.container {
  padding: 20px;
  width: 95%;
  max-width: 1200px;
  margin: 20px auto;
  background-color: rgb(25, 39, 51);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow-x: auto;
}

.calendar-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
}

.nav-button {
  background-color: rgb(43, 245, 255);
  color: rgb(25, 39, 51);
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  margin: 0 10px;
  font-size: 1em;
}

/* ===== Calendar Components ===== */
.calendar-wrapper {
  overflow-x: auto;
  border: 1px solid rgb(43, 245, 255);
  border-radius: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  white-space: nowrap;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(5px, 1fr));
  gap: 1%;
  width:95%;
  min-width: 850px;
  height: auto;
}

.day {
  flex: 0 0 auto;
  padding: 1%;
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
  border: 2px solid rgb(43, 245, 255);
  border-radius: 8px;
  margin: 5%;
  text-align: center;
  font-size: 0.9em;
  width: auto;
  min-width: 100px;
  height: auto;
}

.time {
  display: block;
  background-color: rgb(43, 245, 255);
  color: rgb(25, 39, 51);
  padding: 5px;
  margin: 4px auto;
  border-radius: 8px;
  font-size: 1.0em;
}


.time-slot {
  display: block;
  width:95%;
  margin: 5%;
  padding: 5%;
  background: #2bf5ff15;
  color: #2bf5ff;
  border: 2px solid #2bf5ff;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.time-slot.disabled {
  background: #2b2b2b !important;
  color: #666 !important;
  border-color: #444;
  text-decoration: line-through;
  cursor: not-allowed;
}  


/* ===== Modal & Form ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: rgb(25, 39, 51);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid rgb(43, 245, 255);
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
}

input[type="text"], 
input[type="tel"], 
input[type="email"], 
input[type="number"] {
  width: calc(100% - 40px);
  padding: 10px;
  margin: 10px 20px;
  border: 1px solid rgb(43, 245, 255);
  border-radius: 4px;
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
}

/* ===== Confirmation Section (Critical for WhatsApp Image) ===== */
#confirmation-details {
  display: none;
  background: white;
  color: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
}

#confirmation-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

#save-reservation, 
#share-reservation {
  background: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
  border: none;
  padding: 10px 20px;
  margin: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
  .day { width: 90px; }
  input[type="text"], 
  input[type="tel"], 
  input[type="email"], 
  input[type="number"] {
    width: calc(100% - 20px);
  }
}

@media (max-width: 480px) {
  .day { width: 80px; }
}

/* ===== Helper Classes ===== */
.hidden-for-image { display: none; }
.disabled {
  background-color: gray;
  color: #fff;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ===== Hover States ===== */
.nav-button:hover,
.time:hover,
button[type="submit"]:hover,
#save-reservation:hover,
#share-reservation:hover {
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
}

/* Add to reservations.css */
button[type="submit"] {
  background-color: rgb(43, 245, 255) !important;
  color: rgb(25, 39, 51) !important;
  border: none;
  padding: 15px 40px;
  margin: 25px auto;
  font-size: 1.4rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(25, 39, 51, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  width: auto;
  min-width: 220px;
  position: relative;
  overflow: hidden;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 39, 51, 0.4);
  background-color: rgb(25, 39, 51) !important;
  color: rgb(43, 245, 255) !important;
}

button[type="submit"]::after {
  content: '';
  position: absolute;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 25%,
    rgba(255,255,255,0.1) 50%,
    transparent 75%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  100% {
    transform: translateX(100%);
  }
}

/* Add to reservations.css */
#form-status {
  padding: 10px;
  margin: 15px 0;
  border-radius: 5px;
  text-align: center;
  background: rgba(25, 39, 51, 0.1);
  font-size: 0.9em;
}

button[type="submit"] {
  position: relative;
  transition: opacity 0.3s ease;
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

button[type="submit"]:disabled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid rgb(43, 245, 255);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Reservation Notice */
.reservation-notice {
  background-color: rgba(255, 165, 0, 0.15);
  border: 2px solid orange;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  text-align: center;
}



.reservation-notice a {
  color: #0066cc;
  text-decoration: underline;
}

/* Useful Links Section */
.reservation-links {
  margin: 40px 0;
  padding: 20px;
  border-top: 2px solid rgb(43, 245, 255);
}

.reservation-links h3 {
  color: rgb(43, 245, 255);
  text-align: center;
  margin-bottom: 15px;
}

.reservation-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.reservation-links li {
  margin: 5px 0;
}

.reservation-links a {
  color: rgb(43, 245, 255);
  text-decoration: none;
  padding: 8px 15px;
  border: 2px solid rgb(43, 245, 255);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.reservation-links a:hover {
  background-color: rgb(43, 245, 255);
  color: rgb(25, 39, 51);
}

@media (max-width: 768px) {
  .reservation-links ul {
      flex-direction: column;
      align-items: center;
      gap: 15px;
  }
  
  .reservation-links a {
      width: 200px;
      text-align: center;
  }
}

.working-hours {
  margin: 2rem auto;
  max-width: 600px;
  padding: 1rem;
  background: rgb(25, 39, 51, 1);
  border-radius: 8px;
}

.working-hours table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.working-hours th, 
.working-hours td {
  padding: 12px;
  border: 3px solid rgb(43, 245, 255, 1);
  text-align: center;
}

.working-hours th {
  background-color: rgb(43, 245, 255, 1);
  color: rgb(25, 39, 51, 1);
}

.working-hours tr:nth-child(even) {
  background-color: rgb(25, 39, 51, 1);
}


/* Date formatting */
.date {
  font-size: 1.1rem;
  margin-bottom: 8px;
  padding: 4px;
  border-bottom: 1px solid #2b2b2b;
}




.closure-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #888;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.closure-content span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  transform: rotate(180deg);
  font-size: 1.2rem;
  letter-spacing: 3px;
  line-height: 1.8;
  color: #888;
}

/* Weekend Styling */
.off-day .closure-content span {
  color: #666;
}

/* Festival Styling */
.festival-day .closure-content span {
  color: #ff9800;
  font-weight: bold;
}

    
/* Vertical Text Fix */
.off-day {
  background: #1a1a1a !important;
  min-height: 180px;
  display: grid !important;
  place-items: center;
  padding: 15px;
  border: 1px solid #2b2b2b !important;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-align: center;
  line-height: 2.5;
  letter-spacing: 5px;
}

.off-day span {
  display: block;
  transform: rotate(180deg);
  font-size: 1.4rem;
  color: #888;
}

/* Festival Days */
.festival-day span {
  color: #ff9800 !important;
  font-weight: bold;
}

/* Weekend Text */
.weekend-text span {
  letter-spacing: 3px;
}