html {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
}

body {
  margin: 12px;
}

#loading {
  outline: none;
  border: none;
  background: transparent;
}

.logo {
  width: 100px;
  height: 100px;
}

.pulsate {
  animation: pulsate 1.5s ease-in-out infinite;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.btn-outline-red {
  color: #ba945e;
  border: 1px solid #ba945e;
  background-color: transparent;
}

.btn-outline-red:hover {
  background-color: #ba945e;
  color: #fff;
}

.responsive-bg {
  background: linear-gradient(
    135deg,
    rgba(153, 94, 10, 0.7) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  gap: 5px;
  width: 100%;
  overflow-x: auto;
  min-width: 0;
}

.schedule-header,
.schedule-time {
  font-weight: bold;
  text-align: center;
  padding: 8px 0;
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 1em;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.schedule-today {
  background: rgb(186, 148, 94, 0.3) !important;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  font-size: 1.5em;
  font-weight: bold;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgb(186, 148, 94, 0.7);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(186, 148, 94, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(186, 148, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(186, 148, 94, 0);
  }
}
.schedule-cell {
  min-height: 60px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 14px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.schedule-cell strong {
  display: block;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.1;
  margin-bottom: 4px;
}

.schedule-cell-empty {
  background: #fff;
  opacity: 0.5;
}
@media (max-width: 700px) {
  .schedule-grid {
    grid-template-columns: 90px repeat(7, 1fr);
    font-size: 0.95em;
  }
  .schedule-cell {
    word-break: break-all;
    font-size: 12px;
    line-height: 1.1;
  }
}
.whatsapp-link {
  display: inline-block;
  margin-top: 8px;
  color: #25d366;
  font-weight: bold;
  text-decoration: none;
  font-size: 1em;
}

#container {
  overflow-x: auto !important;
}

#tools {
  min-width: fit-content;
  flex-wrap: nowrap;
  overflow-x: auto;
}

#tools .form-control {
  min-width: 150px;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .schedule-grid {
    grid-template-columns: 80px repeat(7, minmax(80px, 1fr));
    font-size: 0.9em;
    gap: 3px;
  }

  .schedule-header,
  .schedule-time {
    font-size: 0.85em;
    padding: 6px 2px;
    min-height: 50px;
  }

  .schedule-cell {
    min-height: 50px;
    padding: 6px;
    font-size: 12px;
  }

  #container {
    padding: 8px !important;
  }

  #tools {
    flex-direction: column;
    align-items: stretch !important;
  }

  #tools .form-control {
    max-width: 100%;
    margin: 4px 0;
  }

  #tools .btn {
    align-self: flex-end;
    margin-top: 8px;
  }
}

@media (max-width: 576px) {
  .schedule-grid {
    grid-template-columns: 70px repeat(7, minmax(65px, 1fr));
    font-size: 0.85em;
    gap: 2px;
  }

  .schedule-header,
  .schedule-time {
    font-size: 0.8em;
    padding: 4px 1px;
    min-height: 45px;
  }

  .schedule-cell {
    min-height: 45px;
    font-size: 11px;
    line-height: 1;
    padding: 4px;
  }

  #container {
    padding: 4px !important;
  }
}

@media (max-width: 480px) {
  .schedule-grid {
    grid-template-columns: 60px repeat(7, minmax(55px, 1fr));
    font-size: 0.8em;
    gap: 1px;
  }

  .schedule-header,
  .schedule-time {
    font-size: 0.75em;
    padding: 3px 1px;
    min-height: 40px;
  }

  .schedule-cell {
    min-height: 40px;
    padding: 3px;
    font-size: 10px;
  }

  #container {
    padding: 2px !important;
  }
}

.container-fluid {
  overflow-x: auto !important;
  max-width: 100vw;
}

.row {
  margin: 0;
  max-width: 100%;
}

@media (max-width: 576px) {
  #info-btn,
  #settings-btn,
  #whatsapp-btn {
    right: 8px;
  }

  #info-btn {
    bottom: 120px;
  }

  #settings-btn {
    bottom: 68px;
  }

  #whatsapp-btn {
    bottom: 16px;
  }
}

@media (max-width: 576px) {
  .schedule-grid {
    scrollbar-width: thin;
    scrollbar-color: rgba(186, 148, 94, 0.3) transparent;
  }

  .schedule-grid::-webkit-scrollbar {
    height: 4px;
  }

  .schedule-grid::-webkit-scrollbar-track {
    background: transparent;
  }

  .schedule-grid::-webkit-scrollbar-thumb {
    background: rgba(186, 148, 94, 0.3);
    border-radius: 2px;
  }
}
