/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #14171f;
  --muted: #5c6473;
  --border: #d9dde6;
  --accent: #1f4cff;
  --radius: 10px;
  --radius-sm: 8px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --font-sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-3);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

p {
  margin: 0 0 var(--space-3);
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

pre {
  margin: 0;
  padding: var(--space-3);
  background: #f3f5f8;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.page {
  padding: var(--space-5) 0 var(--space-6);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: 14px;
}

.current-user {
  color: var(--muted);
}

form {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

label {
  font-weight: 500;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #9fb2ff;
  box-shadow: 0 0 0 3px rgba(31, 76, 255, 0.15);
}

input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

button,
input[type="submit"],
.login-button,
.my-pastes-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}

button:hover,
input[type="submit"]:hover,
.login-button:hover,
.my-pastes-link:hover {
  background: #f0f3f8;
  border-color: #cfd6e3;
}

.login-button {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

turbo-frame#flash,
.flash {
  display: block;
}

.flash {
  margin: var(--space-3) auto 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  max-width: 820px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.flash-alert,
.flash-error {
  background: var(--surface);
  border-color: #e6caca;
  color: var(--text);
}

.flash-notice {
  background: var(--surface);
  border-color: #cad7e6;
  color: var(--text);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.page-link {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-size: 14px;
}

.page-link.current {
  border-color: var(--text);
  color: var(--text);
  background: var(--surface);
}

.qr {
  margin: var(--space-4) 0;
}

.qr--empty {
  padding: var(--space-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.paste-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-2);
}
