/* General Body & Layout */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #f7f7f7; /* Fallback for the whole page */
}

.page-container {
  /* Remove below when wanting to restrict */
  /* max-width: 768px; */
}

.app-background {
  background-color: #f7f7f7; /* Change this single value to update the background for the page, header, and footer. */
}

/* Custom component styles */
.gymble-title {
  color: #2b5975;
}

.tile-background {
  background-color: #ffffff; /* All smaller tiles are now white. Change this value to update them all. */
}

.active-tile {
  background-color: #e0e8f0; /* A light blue to indicate selection */
  color: #2b5975;
  font-weight: 600;
}

.welcome-name {
  color: #27527f;
}

.calendar-title {
  color: #2b5975;
}

/* Remove number input spinners in all browsers */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  /* Firefox */
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

@keyframes bounce-down {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-bounce-down {
  animation: bounce-down 1s ease-in-out;
}

/* Rotating sentences (from index.html) */
.rotator {
  position: relative;
  display: block;
  height: 1.5em;
  line-height: 1.5em;
  overflow: hidden;
  text-align: center;
}
.rotator > span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  white-space: nowrap;
  animation: rotateSentences 9s ease-in-out infinite;
}
.rotator > span:nth-child(1) { animation-delay: 0s; }
.rotator > span:nth-child(2) { animation-delay: 3s; }
.rotator > span:nth-child(3) { animation-delay: 6s; }

@keyframes rotateSentences {
  0%   { opacity: 0; transform: translate(-50%, 10%); }
  6%   { opacity: 1; transform: translate(-50%, 0); }
  28%  { opacity: 1; transform: translate(-50%, 0); }
  34%  { opacity: 0; transform: translate(-50%, -10%); }
  100% { opacity: 0; }
}

/* Buttons from Index Page */
.btn-primary {
  background: #3066a1;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  display: block;
  width: 100%;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: #2a5a8e;
}

.btn-secondary {
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  display: block;
  width: 100%;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* Loader Styles (from loader.css) */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(249, 250, 251, 1); /* bg-gray-50 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #d1d5db; /* border-gray-300 */
  border-top-color: #3066a1; /* primary blue */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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