@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500&family=Space+Mono&family=Work+Sans:wght@300;400;500&display=swap');

/* Base Styles */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 17%);
  
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(0, 0%, 17%);

  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(0, 0%, 17%);

  --primary: hsl(110, 26%, 35%);
  --primary-foreground: hsl(0, 0%, 100%);

  --secondary: hsl(0, 6%, 53%);
  --secondary-foreground: hsl(0, 0%, 17%);

  --muted: hsl(0, 0%, 96%);
  --muted-foreground: hsl(0, 0%, 45%);

  --accent: hsl(30, 35%, 78%);
  --accent-foreground: hsl(0, 0%, 17%);

  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 98%);

  --border: hsl(30, 35%, 78%);
  --input: hsl(30, 35%, 78%);
  --ring: hsl(110, 26%, 35%);

  --chart-1: hsl(110, 26%, 35%);
  --chart-2: hsl(0, 6%, 53%);
  --chart-3: hsl(30, 35%, 78%);
  --chart-4: hsl(60, 30%, 96%);
  --chart-5: hsl(0, 0%, 17%);
  
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

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

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

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

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.gap-1 {
  gap: 0.25rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-auto {
  margin-bottom: auto;
}

.ml-3 {
  margin-left: 0.75rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-8 {
  width: 2rem;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-20 {
  width: 5rem;
}

.w-full {
  width: 100%;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-8 {
  height: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-20 {
  height: 5rem;
}

.h-64 {
  height: 16rem;
}

.min-h-screen {
  min-height: 100vh;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.font-serif {
  font-family: 'Noto Serif JP', serif;
}

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

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-white {
  color: var(--primary-foreground);
}

.bg-white {
  background-color: var(--card);
}

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

.bg-primary\/10 {
  background-color: rgba(71, 117, 57, 0.1);
}

.bg-primary\/20 {
  background-color: rgba(71, 117, 57, 0.2);
}

.bg-accent {
  background-color: var(--accent);
}

.bg-accent\/10 {
  background-color: rgba(214, 181, 143, 0.1);
}

.bg-accent\/20 {
  background-color: rgba(214, 181, 143, 0.2);
}

.bg-neutral-light {
  background-color: var(--background);
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

.border-r {
  border-right-width: 1px;
  border-right-style: solid;
}

.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.border-accent\/20 {
  border-color: rgba(214, 181, 143, 0.2);
}

.border-accent\/30 {
  border-color: rgba(214, 181, 143, 0.3);
}

.border-\[\#81C784\]\/20 {
  border-color: rgba(129, 199, 132, 0.2);
}

.rounded-md {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.overflow-hidden {
  overflow: hidden;
}

.hidden {
  display: none;
}

.opacity-50 {
  opacity: 0.5;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.bottom-4 {
  bottom: 1rem;
}

.left-4 {
  left: 1rem;
}

.left-1\/3 {
  left: 33.333333%;
}

.right-4 {
  right: 1rem;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.hover\:bg-primary\/90:hover {
  background-color: rgba(71, 117, 57, 0.9);
}

.hover\:bg-accent\/10:hover {
  background-color: rgba(214, 181, 143, 0.1);
}

.hover\:underline:hover {
  text-decoration: underline;
}

.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.card {
  background-color: var(--card);
  border-radius: var(--radius);
}

.bg-\[\#81C784\]\/10 {
  background-color: rgba(129, 199, 132, 0.1);
}

.text-\[\#81C784\] {
  color: #81C784;
}

/* Calendar and Time Picker Styles */
.calendar-day {
  transition: all 200ms ease-in-out;
  cursor: pointer;
  border-radius: 50%;
  margin: 2px;
}

.calendar-day:hover:not(.calendar-day-disabled) {
  background-color: rgba(71, 117, 57, 0.1);
}

.calendar-day-selected {
  background-color: rgba(71, 117, 57, 0.2) !important;
}

.calendar-day-disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

.calendar-empty-cell {
  width: 40px;
  height: 40px;
}

.time-slot {
  transition: all 200ms ease-in-out;
  cursor: pointer;
}

.time-slot:hover:not(.time-slot-disabled) {
  background-color: rgba(71, 117, 57, 0.1);
}

.time-slot-selected {
  background-color: rgba(71, 117, 57, 0.2) !important;
}

.time-slot-disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

/* Garden Elements */
.garden-element {
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
}

.garden-element:hover {
  transform: translateY(-0.125rem);
}

.achievement {
  transition: all 300ms ease-in-out;
}

.achievement:hover {
  transform: scale(1.03);
}

/* Animations */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background-color: rgba(255, 255, 255, 0.4);
  animation: ripple 0.6s linear;
}

.element-appear {
  animation: fadeIn 0.8s ease forwards;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Download Button */
.fixed {
  position: fixed;
}

.z-50 {
  z-index: 50;
}

.bottom-4 {
  bottom: 1rem;
}

.right-4 {
  right: 1rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

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

/* Responsive styles */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }

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

  .sm\:mt-0 {
    margin-top: 0;
  }

  .sm\:h-80 {
    height: 20rem;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:w-64 {
    width: 16rem;
  }

  .lg\:p-10 {
    padding: 2.5rem;
  }
}