
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 480px;
  width: 100%;
  padding: 2rem;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.card {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.drop-zone {
  border: 2px dashed #475569;
  border-radius: 8px;
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.05);
}

.drop-zone p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.drop-zone .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #0f172a;
  border-radius: 8px;
  margin-top: 1rem;
}

.file-info .name {
  font-weight: 500;
  word-break: break-all;
}

.file-info .size {
  color: #94a3b8;
  font-size: 0.85rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: #60a5fa;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-primary:disabled {
  background: #1e40af;
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #334155;
  color: #e2e8f0;
}

.btn-secondary:hover {
  background: #475569;
}

.share-link {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.share-link input {
  flex: 1;
}

.share-link .btn {
  width: auto;
  padding: 0.7rem 1.2rem;
  white-space: nowrap;
}

.progress-wrap {
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 4px;
  transition: width 0.15s;
  width: 0%;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.4rem;
}

.status {
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.status.waiting {
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
}

.status.connected {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.status.done {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.hidden { display: none; }

.mt { margin-top: 1rem; }
.mb { margin-bottom: 1rem; }
