/* Base Styles */
body {
  font-family: "Inter", sans-serif;
  background-color: #f8f7f4;
  -webkit-tap-highlight-color: transparent;
}

/* Navigation Styles */
.nav-active {
  color: #0d9488;
  border-bottom-color: #0d9488;
  font-weight: 700;
}

.nav-inactive {
  color: #57534e;
  border-bottom-color: transparent;
}

/* Section Display */
.section {
  display: none;
}

.section.active {
  display: block;
}

/* Chart Container */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  height: 300px;
}

/* Workout Tab Styles */
.workout-tab-active {
  background-color: #14b8a6;
  color: white;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.workout-tab-inactive {
  background-color: #f1f5f9;
  color: #334155;
}

/* Meal Day Styles */
.meal-day-active {
  background-color: #ccfbf1;
  border-color: #14b8a6;
}

.meal-day-inactive {
  background-color: white;
  border-color: #e5e7eb;
}

/* Details Styles */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

summary {
  cursor: pointer;
}

/* Input Styles */
.log-input {
  width: 4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  text-align: center;
  font-size: 0.875rem;
}

/* Feel Option Styles */
.feel-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.feel-option .emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.feel-option .label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: 0.25rem;
}

.feel-option-selected {
  border-color: #14b8a6;
  background-color: #f0fdfa;
}

.feel-option-selected .label {
  color: #0d9488;
  font-weight: 600;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
}

.modal-overlay.visible {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  transform: scale(0.95);
  transition: all 0.3s;
}

.modal-overlay.visible .modal-content {
  transform: scale(1);
}

/* Loader Animation */
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #fff;
  border-bottom-color: #14b8a6;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin: 2rem auto;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Feel Tracker Banner */
.feel-tracker-banner {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out,
    margin-top 0.5s ease-in-out;
  margin-top: 0;
}

.feel-tracker-banner.visible {
  max-height: 100px;
  opacity: 1;
  margin-top: -0.5rem;
}

/* Authentication Styles */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  width: 100%;
  max-width: 400px;
  margin: 1rem;
}

.phone-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.phone-input:focus {
  outline: none;
  border-color: #14b8a6;
}

.auth-button {
  width: 100%;
  background: #14b8a6;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-button:hover {
  background: #0d9488;
}

.auth-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.otp-input {
  width: 3rem;
  height: 3rem;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.otp-input:focus {
  outline: none;
  border-color: #14b8a6;
}
