:root {
  /* Catppuccin Mocha Palette */
  --rosewater: #f5e0dc;
  --flamingo: #f2cdcd;
  --pink: #f5c2e7;
  --mauve: #cba6f7;
  --red: #f38ba8;
  --maroon: #eba0ac;
  --peach: #fab387;
  --yellow: #f9e2af;
  --green: #a6e3a1;
  --teal: #94e2d5;
  --sky: #89dceb;
  --sapphire: #74c7ec;
  --blue: #89b4fa;
  --lavender: #b4befe;
  --text: #cdd6f4;
  --subtext1: #bac2de;
  --subtext0: #a6adc8;
  --overlay2: #9399b2;
  --overlay1: #7f849c;
  --overlay0: #6c7086;
  --surface2: #585b70;
  --surface1: #45475a;
  --surface0: #313244;
  --base: #1e1e2e;
  --mantle: #181825;
  --crust: #11111b;
}

body {
  background-color: var(--base);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  background-color: var(--mantle);
  width: 100%;
  padding: 1rem 2rem;
  border-bottom: 2px solid var(--surface0);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-sizing: border-box;
}

.page-titles {
  text-align: center;
  margin-bottom: 2rem;
}

.header-link {
  color: var(--subtext0);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-link:hover {
  color: var(--mauve);
}

h1 {
  color: var(--mauve);
  margin: 0;
}

p {
  color: var(--subtext0);
}

main {
  padding: 2rem;
  max-width: 800px;
  width: 100%;
}

footer {
  width: 100%;
  padding: 1rem 2rem;
  border-top: 2px solid var(--surface0);
  background-color: var(--mantle);
  margin-top: auto;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-left {
    align-items: center;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--subtext0);
}

.powered-by {
  font-size: 0.6rem;
  color: var(--overlay0);
  text-decoration: none;
  transition: color 0.2s;
}

.powered-by:hover {
  color: var(--subtext0);
}

footer p a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

footer p a:hover {
  text-decoration: underline;
  color: var(--sapphire);
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--subtext0);
}

.footer-links a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--sapphire);
}

.card {
  background-color: var(--surface0);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card h2 {
  color: var(--blue);
  margin-top: 0;
}

.card p a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

.card p a:hover {
  text-decoration: underline;
  color: var(--sapphire);
}

.actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

button {
  background-color: var(--mauve);
  color: var(--base);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover:not(:disabled) {
  opacity: 0.9;
}

button:disabled {
  background-color: var(--surface2);
  color: var(--subtext0);
  cursor: not-allowed;
}

button.secondary-btn {
  background-color: var(--surface2);
  color: var(--text);
}

button.secondary-btn:hover:not(:disabled) {
  background-color: var(--surface1);
}

select {
  background-color: var(--mauve);
  color: var(--base);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
  font-size: 0.9rem;
}

select:hover:not(:disabled) {
  opacity: 0.9;
}

select:disabled {
  background-color: var(--surface2);
  color: var(--subtext0);
  cursor: not-allowed;
}

input[type="file"],
input[type="text"] {
  background-color: var(--mantle);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--surface1);
}

input[type="file"]::file-selector-button {
  background-color: var(--mauve);
  color: var(--base);
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-right: 0.5rem;
  font-family: inherit;
}

input[type="file"]::file-selector-button:hover {
  opacity: 0.9;
}

.manual-upload-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.upload-row {
  display: grid;
  grid-template-columns: 120px 1fr 70px 100px;
  align-items: center;
  gap: 0.5rem;
}

/* Terminal Output */
.terminal-output {
  background-color: var(--crust);
  color: var(--green);
  font-family: "Courier New", Courier, monospace;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--surface0);
  height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-top: 1rem;
  font-size: 0.9rem;
}
