/* Base styles */
body {
  margin: 0;
  background: #111827;
  color: #9CA3AF;
  font-family: system-ui, -apple-system, sans-serif;
  height: 100vh;
  overflow: hidden;
}

/* Layout */
.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.viewer {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  position: relative;
  min-height: 0; /* Important for Firefox */
}

/* Frame Grid */
.frame-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(277px, 1fr));
  gap: 1rem;
}

/* Buttons */
.button {
  background: #374151;
  border: none;
  color: #E5E7EB;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.button:hover {
  background: #4B5563;
}

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

.button + .button {
  margin-left: 0.5rem;
}

.button--with-icon {
  padding: 2px 6px;
}

.button.primary {
  background: #2563EB;
}

.button.primary:hover {
  background: #1D4ED8;
}

.button.danger {
  background: #DC2626;
}

.button.danger:hover {
  background: #B91C1C;
}

/* Footer */
footer {
  background: #1F2937;
  color: white;
}

/* Utility */
.file-input {
  display: none;
}
