/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  background: linear-gradient(135deg, #FBF8F1 0%, #FFF9F4 100%);
  background-attachment: fixed;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(215, 138, 121, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(215, 138, 121, 0.6);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  /* Prevent horizontal scroll on mobile */
  html, body {
    overflow-x: hidden;
    position: relative;
  }
}

/* Ensure smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Fix for iOS Safari viewport height */
@supports (-webkit-touch-callout: none) {
  #root {
    min-height: -webkit-fill-available;
  }
}
