:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --card-bg: #ffffff;
  --border: #d7dadf;
  --text: #1f2328;
  --muted: #656d76;
  --primary: #1f6feb;
  --primary-hover: #1a5fc9;
  --error: #cf222e;
  --success: #1a7f37;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

.file-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 32px 16px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color 0.15s ease;
}

.file-drop:hover {
  border-color: var(--primary);
}

.file-drop input[type='file'] {
  display: none;
}

#fileLabel {
  color: var(--muted);
  font-size: 0.95rem;
}

button {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover:not(:disabled) {
  background: var(--primary-hover);
}

button:disabled {
  background: #a9b1bb;
  cursor: not-allowed;
}

.progress-wrap {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #e4e7ea;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--progress, 0%);
  background: var(--primary);
  transition: width 0.2s ease;
}

#progressText {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 42px;
  text-align: right;
}

.status {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.status.error {
  color: var(--error);
}

.status.success {
  color: var(--success);
}

.share-row {
  display: flex;
  gap: 8px;
}

#shareLinkInput {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
}

#copyBtn {
  width: auto;
  padding: 10px 18px;
}

.expiry {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
  margin-bottom: 0;
}
