@font-face {
  font-family: 'Danidin';
  src: url('../fonts/Danidin-SemiBold.woff2') format('woff2'),
    url('../fonts/Danidin-SemiBold.woff') format('woff'),
    url('../fonts/Danidin-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Danidin';
  src: url('../fonts/Danidin-Heavy.woff2') format('woff2'),
    url('../fonts/Danidin-Heavy.woff') format('woff'),
    url('../fonts/Danidin-Heavy.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

:root {
  --font-sans: 'Danidin', system-ui, sans-serif;
  --primary: #96a571;
  --primary-hover: #869561;
  --text-dark: #3f4735;
  --bg-gray: #f9fafb;
  --border-color: #e5e7eb;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  direction: rtl;
  background-color: var(--bg-gray);
  color: #333;
}

/* =========================================
   LANDING PAGE (from LandingPage.css)
   ========================================= */
.landing-page-container {
  display: flex;
  flex-direction: column-reverse;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .landing-page-container {
    flex-direction: row-reverse;
    height: 100vh;
    overflow: hidden;
  }
}

.left-column {
  width: 100%;
  min-height: 100svh;
  background-color: #3d4338;
  color: white;
  padding: 48px clamp(24px, 3.75vw, 72px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .left-column {
    align-items: flex-start;
    text-align: right;
    width: 45vw;
    height: 100vh;
    overflow-y: auto;
  }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 100%;
}

.logo-1 {
  width: clamp(0px, 45%, 180px);
}

.logo-2 {
  width: clamp(0px, 17%, 72px);
}

.logo-3 {
  width: clamp(0px, 14%, 56px);
}

@media (min-width: 1024px) {
  .logo-1 {
    width: clamp(0px, 13.3vw, 200px);
  }

  .logo-2 {
    width: clamp(0px, 5.3vw, 80px);
  }

  .logo-3 {
    width: clamp(0px, 4.8vw, 72px);
  }
}

.mobile-logos {
  display: flex;
  background-color: #3d4338;
  padding: 12px 16px;
  justify-content: center;
  gap: 20px;
}

.desktop-logos {
  display: none;
}

@media (min-width: 1024px) {
  .mobile-logos {
    display: none;
  }

  .desktop-logos {
    display: flex;
  }
}

.text-content {
  margin-block: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 1024px) {
  .text-content {
    margin-top: 5vh;
    margin-bottom: 5vh;
    align-items: flex-start;
  }
}

.main-title {
  font-weight: 800;
  line-height: 0.9;
  font-size: clamp(0px, 14vw, 64px);
}

@media (min-width: 1024px) {
  .main-title {
    font-size: clamp(40px, 5.5vw, 110px);
  }
}

.main-title .white-text {
  color: white;
  margin: 0;
}

.main-title .beige-text {
  color: #c6b299;
  margin: 0;
}

.wizard-area {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: transparent;
}

.wizard-main-title {
  font-weight: 800;
  line-height: 1.1;
  font-size: 24px;
  color: white;
  margin: 20px 0 8px 0;
}

@media (min-width: 1024px) {
  .wizard-main-title {
    font-size: clamp(22px, 3vw, 30px);
    margin-top: 0px;
  }
}

.wizard-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 500;
  width: 100%;
}

.wizard-location svg {
  flex-shrink: 0;
  stroke: var(--primary);
  display: none;
}

@media (min-width: 1024px) {
  .wizard-location {
    justify-content: flex-start;
    margin-bottom: 24px;
    font-size: 16px;
  }

  .wizard-location svg {
    display: inline-block;
  }
}

.wizard-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-title {
  font-weight: 800;
  font-size: 18px;
  color: white;
  margin-bottom: 20px;
  margin-top: 0;
  text-align: right;
  width: 100%;
}

@media (min-width: 1024px) {
  .wizard-title {
    font-size: clamp(18px, 2.5vw, 24px);
  }
}

.wizard-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
  /* for scrollbar */
  overflow: visible;
}

.wizard-grid .wizard-btn {
  width: 220px;
}

@media (min-width: 1024px) {
  .wizard-grid {
    justify-content: flex-start;
  }
}

.split-wizard {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

@media (min-width: 1024px) {
  .split-wizard {
    justify-content: flex-start;
  }
}

.split-column {
  width: 220px;
  display: flex;
  flex-direction: column;
}

.split-wizard .split-column:last-child {
  flex: 1;
  min-width: 220px;
}

.wizard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline: 6px;
}

#hours-grid {
  flex-direction: row;
  flex-wrap: wrap;
}

#hours-grid .wizard-btn {
  min-width: 150px;
}

@media (max-width: 768px) {

  .wizard-list,
  .wizard-grid {
    max-height: none;
    overflow-y: visible;
  }

  #hours-grid,
  #rooms-grid,
  .wizard-form {
    padding-bottom: 150px;
  }
}

/* Custom scrollbar for grid and list */
.wizard-grid::-webkit-scrollbar,
.wizard-list::-webkit-scrollbar {
  width: 6px;
}

.wizard-grid::-webkit-scrollbar-track,
.wizard-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.wizard-grid::-webkit-scrollbar-thumb,
.wizard-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

@media (max-width: 500px) {
  .split-wizard {
    flex-direction: column;
    align-items: stretch;
  }

  .split-column,
  .split-wizard .split-column:last-child {
    width: 100%;
    min-width: 100%;
  }

  .wizard-title {
    text-align: center;
  }

  #hours-grid {
    justify-content: center;
  }

  #hours-grid .wizard-btn {
    min-width: 120px;
    width: 120px;
  }

  #days-grid .wizard-btn {
    width: 220px;
    align-self: center;
  }
}

.wizard-btn {
  background-color: white;
  color: var(--text-dark);
  padding: 15px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.wizard-btn:hover:not(:disabled):not(.selected-day) {
  background-color: #DFE8C5;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wizard-btn.taken {
  background-color: #ffffff4f;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
}

.wizard-btn.selected-day {
  background-color: var(--primary);
  color: white;
}

.back-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  margin-bottom: 15px;
  padding: 0;
}

.back-btn:hover {
  text-decoration: underline;
}

.wizard-form {
  background: white;
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  text-align: right;
  margin: 0 auto;
}

#step-3 #booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1024px) {
  .wizard-form {
    margin: 0 0 0 auto;
  }
}

.wizard-btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.wizard-btn-submit:hover:not(:disabled) {
  background-color: var(--primary-hover);
}

.wizard-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.wizard-error {
  color: #ff6b6b;
  margin-bottom: 10px;
}

.success-message {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.success-message h2 {
  color: var(--primary);
  font-size: 28px;
  margin: 0;
}

.success-message p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  width: 100%;
}

.success-message .wizard-btn-submit {
  margin-top: 0;
}

.success-message .success-details-box {
  font-size: 24px;
  font-weight: 800;
  background-color: #F0F4E8;
  border-radius: 12px;
  color: var(--primary);
  padding: 8px 16px;
  margin: 0;
  width: auto;
}

#success-details span {
  white-space: nowrap;
  display: inline-block;
}

.success-message .success-requirements-notice {
  font-weight: 800;
  color: var(--text-dark);
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  margin: 0;
}

/* Wizard List & Grid Text States (No Inline Styles) */
.wizard-list p.loading,
.wizard-list p.empty-state,
.wizard-grid p.empty-state {
  color: white;
  margin: 0;
}

.wizard-list p.helper-text {
  color: white;
  opacity: 0.7;
  margin: 0;
}

.wizard-list p.error,
.wizard-grid p.error {
  color: #ff6b6b;
  margin: 0;
}

.right-column {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  max-height: 40vh;
  flex-grow: 1;
  position: relative;
  background-size: cover;
  background-position: center;
  background-image: url('../images/Hareya_day_nopeople.webp');
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.right-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, #3D4338, transparent);
  display: none;
}

@media (min-width: 1024px) {
  .right-column {
    width: 10%;
    flex-grow: 1;
    height: 100vh;
    max-height: unset;
    margin-bottom: 0;
    /* Reset margin on desktop */
  }

  .right-column::before {
    display: inline;
  }
}

.floating-tag {
  position: absolute;
  top: clamp(20px, 4vw, 48px);
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(-3px 5px 7.5px rgba(0, 0, 0, 0.1));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 20px;
  padding: 0.5em 1em;
  border-bottom-left-radius: 100px;
  border-top-left-radius: 100px;
  width: fit-content;
  box-sizing: border-box;
  z-index: 15;
}

.floating-tag-firstline {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1em;
  line-height: 0.9;
  margin-bottom: 6px;
  margin-top: 0;
  display: flex;
  align-items: center;
}

.floating-tag-secondline {
  color: #c6b299;
  font-weight: 800;
  font-size: 1em;
  line-height: 0.9;
  margin: 0;
}

@media (min-width: 1024px) {

  .floating-tag {
    font-size: clamp(20px, 2.5vw, 40px);
  }
}

.flip-word-container {
  display: inline-grid;
  perspective: 400px;
}

.flip-word-wrapper {
  grid-area: 1 / 1;
  display: inline-block;
  white-space: nowrap;
}

.flip-letter {
  display: inline-block;
  transform-style: preserve-3d;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
}

.flip-letter.out {
  transform: rotateX(-90deg);
  opacity: 0;
}

.flip-letter.in {
  transform: rotateX(90deg);
  opacity: 0;
}

.flip-letter.normal {
  transform: rotateX(0deg);
  opacity: 1;
}

/* =========================================
   POPUP MODAL (Replaces Tailwind)
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
  box-sizing: border-box;
}

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  box-sizing: border-box;
}

.modal-title {
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 8px;
  margin-top: 0;
}

.modal-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 32px;
  font-size: 16px;
}

.modal-error {
  color: #ef4444;
  text-align: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

.form-input {
  width: 100%;
  background: #f0f0f0;
  border-radius: 12px;
  padding: 12px 16px;
  border: 2px solid transparent;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  color: #374151;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
}

.modal-actions {
  display: flex;
  gap: 16px;
  padding-top: 24px;
  justify-content: center;
}

.btn {
  font-family: inherit;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 9999px;
  font-size: 18px;
  width: 130px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, opacity 0.2s;
  text-align: center;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #a0a0a0;
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #808080;
}

/* =========================================
   ADMIN PANEL (Replaces Tailwind)
   ========================================= */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-login-box {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

.admin-login-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 24px;
  margin-top: 0;
}

.admin-input {
  width: 100%;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px 16px;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.admin-input:focus {
  border-color: var(--primary);
}

.admin-btn {
  width: 100%;
  background-color: var(--text-dark);
  color: white;
  font-weight: bold;
  padding: 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  transition: background-color 0.2s;
}

.admin-btn:hover {
  background-color: #2d3425;
}

.admin-dashboard {
  min-height: 100vh;
  padding: 32px;
  box-sizing: border-box;
}

.admin-container {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-dark);
  margin: 0;
}

.logout-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.logout-btn:hover {
  color: #111827;
}

.table-wrapper {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  text-align: right;
  border-collapse: collapse;
}

.admin-table th {
  background-color: var(--text-dark);
  color: white;
  padding: 16px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 16px;
  color: #1f2937;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
}

.admin-table tr:hover {
  background-color: #f9fafb;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
}

.status-available {
  background-color: #dcfce7;
  color: #166534;
}

.status-taken {
  background-color: #fee2e2;
  color: #991b1b;
}

.action-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.action-btn:hover {
  text-decoration: underline;
}

/* =========================================
   NEWS TICKER
   ========================================= */
.ticker-wrapper {
  position: relative;
  top: auto;
  bottom: auto;
  left: 0;
  width: 100%;
  color: rgba(61, 67, 56, 0.9);
  background-color: white;
  padding: 12px 0;
  overflow: hidden;
  box-sizing: border-box;
  direction: ltr;
  z-index: 20;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.ticker-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10%;
  height: 100%;
  background: linear-gradient(to right, #3D4338, transparent);
  z-index: 10;
  display: none;
}

@media (min-width: 1024px) {
  .ticker-wrapper {
    position: absolute;
    bottom: 32px;
  }

  .ticker-wrapper::before {
    display: inline;
  }
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  -webkit-animation: ticker-marquee 30s linear infinite;
  animation: ticker-marquee 30s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .ticker-item {
    font-size: clamp(14px, 2vw, 20px);
  }
}

@-webkit-keyframes ticker-marquee {
  0% { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
  100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

@keyframes ticker-marquee {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* =========================================
   ADMIN TABS
   ========================================= */
.admin-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 2px solid #e5e7eb;
}

.admin-tab-btn {
  padding: 12px 0px;
  border: none;
  background-color: transparent;
  color: #6b7280;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  position: relative;
  margin-bottom: -2px;
  /* Pull down to overlap the border */
}

.admin-tab-btn:hover {
  color: #374151;
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

/* =========================================
   PASSWORD PROTECTION PAGE
   ========================================= */
body.password-page-body {
  background-color: #3d4338 !important;
  /* Premium dark olive bg */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 16px;
  box-sizing: border-box;
}

.password-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 40px 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  animation: fadeIn 0.5s ease-out;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
  background-color: #3d4338;
  padding: 15px 20px;
  border-radius: 20px;
}

.logo-wrapper img {
  height: 40px;
  width: auto;
}
@media(min-width: 500px){
  .logo-wrapper img {
    height: 56px;
  }
}

.password-title {
  font-size: 32px;
  font-weight: 800;
  color: #3f4735;
  margin-bottom: 12px;
  margin-top: 0;
}

.password-subtitle {
  color: #6b7280;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.4;
}

.password-input-group {
  margin-bottom: 20px;
  position: relative;
}

.password-input {
  width: 100%;
  background: #ffffff;
  border: 2px solid #96a571;
  border-radius: 50px;
  padding: 16px 24px;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  box-sizing: border-box;
  transition: all 0.3s;
  text-align: center;
  color: #1f2937;
}

.password-input:focus {
  border-color: #96a571;
  background: white;
  box-shadow: 0 0 0 4px rgba(150, 165, 113, 0.2);
}

.password-btn {
  width: 100%;
  background-color: #96a571;
  color: white;
  font-weight: 800;
  padding: 16px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(150, 165, 113, 0.3);
}

.password-btn:hover {
  background-color: #869561;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(150, 165, 113, 0.4);
}

.password-btn:active {
  transform: translateY(0);
}

.password-error {
  color: #ef4444;
  background-color: #fee2e2;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

/* =========================================
   FOOTER CREDIT
   ========================================= */
.footer-credit {
  margin-top: auto;
  padding-top: 40px;
  margin-bottom: 0;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
  direction: ltr;
}

.footer-credit a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (min-width: 1024px) {
  .footer-credit {
    text-align: left;
  }
}