/* Root and basic layout */
#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

/* Flex utilities */
.flex {
  display: flex;
}

.w-full {
  width: 100%;
}

.h-screen {
  height: 100vh;
}

.h-full {
  height: 100%;
}

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

/* Graph window styling */
.graph-window {
  width: 60%;
  height: 100%;
  background-color: white;
  border: 2px solid #646cff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Options container styling */
.options-container {
  width: 40%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: white;
}

/* Spacing utilities */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

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

/* Form controls styling */
input[type="range"] {
  width: 100%;
  height: 2px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  padding: 0;
  margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #646cff;
  cursor: pointer;
  border-radius: 50%;
}

textarea, select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  background-color: white;
  margin-top: 0.5rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Logo animations */
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}

.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

/* Additional components */
.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

/* Width utility for sidebar */
.w-80 {
  width: 20rem;
}

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

/* Responsive layout adjustments */
@media (max-width: 768px) {
  .graph-window {
    width: 100%;
    height: 60vh;
  }
  
  .options-container {
    width: 100%;
    height: auto;
  }
  
  #root {
    width: 100%;
    height: 100vh;
    position: relative;
  }
}