html,
body {
  height: 100%;
  width: 100%;
  background-color: #FFFFFF;
}

body.theme-dark {
  background-color: #111;
}

/* Optimized Fast-Loading Preloader */
.preloader {
  position: fixed;
  inline-size: 100%;
  block-size: 100%;
  background: linear-gradient(135deg, #1E6FD9 0%, #1557B0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
}

.theme-dark .preloader {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

@media (max-width: 1199px) {
  .header {
    display: none
  }
}

/* Main Loader Container */
.restaurant-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
}

/* Kitchen Equipment Floating Animation */
.kitchen-equipment {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.equipment-item {
  position: absolute;
  font-size: 24px;
  opacity: 0.7;
  animation: floatEquipment 8s ease-in-out infinite;
}

/* Individual Equipment Items */
.equipment-item:nth-child(1) {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.equipment-item:nth-child(2) {
  top: 20%;
  right: 20%;
  animation-delay: 1s;
  animation-duration: 9s;
}

.equipment-item:nth-child(3) {
  top: 60%;
  left: 10%;
  animation-delay: 2s;
  animation-duration: 7s;
}

.equipment-item:nth-child(4) {
  top: 70%;
  right: 15%;
  animation-delay: 3s;
  animation-duration: 10s;
}

.equipment-item:nth-child(5) {
  top: 30%;
  left: 80%;
  animation-delay: 4s;
  animation-duration: 8.5s;
}

.equipment-item:nth-child(6) {
  top: 80%;
  left: 70%;
  animation-delay: 5s;
  animation-duration: 9.5s;
}

.equipment-item:nth-child(7) {
  top: 15%;
  left: 60%;
  animation-delay: 6s;
  animation-duration: 7.5s;
}

.equipment-item:nth-child(8) {
  top: 50%;
  right: 80%;
  animation-delay: 7s;
  animation-duration: 8.8s;
}

/* Restaurant Building Animation */
.restaurant-building {
  position: relative;
  width: 120px;
  height: 80px;
  margin-bottom: 1rem;
  animation: gentleFloat 4s ease-in-out infinite;
}

.building-base {
  width: 100%;
  height: 60px;
  background: linear-gradient(145deg, #3498db, #2980b9);
  border-radius: 8px 8px 0 0;
  position: relative;
  box-shadow:
    0 4px 15px rgba(52, 152, 219, 0.3),
    0 0 30px rgba(52, 152, 219, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: buildingPulse 2s ease-in-out infinite;
}

.building-roof {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 20px solid #e74c3c;
  position: absolute;
  top: -20px;
  left: 0;
  animation: roofShine 3s ease-in-out infinite;
}

.building-door {
  width: 16px;
  height: 24px;
  background: #34495e;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px 8px 0 0;
}

.building-window {
  width: 12px;
  height: 12px;
  background: #f39c12;
  position: absolute;
  border-radius: 2px;
  animation: windowGlow 2s ease-in-out infinite alternate;
}

.building-window:nth-child(3) {
  top: 15px;
  left: 20px;
  animation-delay: 0s;
}

.building-window:nth-child(4) {
  top: 15px;
  right: 20px;
  animation-delay: 0.5s;
}

.building-window:nth-child(5) {
  top: 35px;
  left: 20px;
  animation-delay: 1s;
}

.building-window:nth-child(6) {
  top: 35px;
  right: 20px;
  animation-delay: 1.5s;
}

/* Floating Items Animation */
.floating-items {
  position: relative;
  width: 200px;
  height: 60px;
  margin: 1rem 0;
}

.item {
  position: absolute;
  width: 24px;
  height: 24px;
  font-size: 20px;
  animation: floatItems 3s ease-in-out infinite;
}

.item:nth-child(1) {
  left: 20px;
  animation-delay: 0s;
}

.item:nth-child(2) {
  left: 60px;
  animation-delay: 0.5s;
}

.item:nth-child(3) {
  left: 100px;
  animation-delay: 1s;
}

.item:nth-child(4) {
  left: 140px;
  animation-delay: 1.5s;
}

/* Progress Bar */
.progress-container {
  width: 200px;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #f8f9fa, #ffffff);
  border-radius: 10px;
  animation: progressFill 2.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header {
  display: block;
}

.placeholder {
  width: 40px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.placeholder-wide {
  width: 120px;
}

.header-container {
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  z-index: 10000;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-5 {
  gap: 1.25rem;
}

@keyframes floatEquipment {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-20px) rotate(8deg);
    opacity: 0.8;
  }
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes buildingPulse {
  0%, 100% {
    box-shadow:
      0 4px 15px rgba(52, 152, 219, 0.3),
      0 0 30px rgba(52, 152, 219, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 8px 25px rgba(52, 152, 219, 0.45),
      0 0 40px rgba(52, 152, 219, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

@keyframes roofShine {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

@keyframes windowGlow {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes floatItems {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-14px) scale(1.08);
    opacity: 1;
  }
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}
