/* Scoped styles for temporary-file-sharing-tool (prefix: tfst-) */

.tfst-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text, #1f2937);
}

.tfst-header-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tfst-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tfst-badge-accent {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.tfst-badge-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.tfst-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading, #111827);
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}

.tfst-subtitle {
  color: var(--text-muted, #4b5563);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.tfst-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border, #e5e7eb);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tfst-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, #4b5563);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.tfst-tab-btn:hover {
  color: var(--text, #111827);
}

.tfst-tab-btn.tfst-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.tfst-panel {
  display: none;
}

.tfst-panel.tfst-active {
  display: block;
}

.tfst-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 840px) {
  .tfst-grid-split {
    grid-template-columns: 1fr 1fr;
  }
}

.tfst-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.tfst-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tfst-dropzone {
  border: 2px dashed #93c5fd;
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.tfst-dropzone:hover, .tfst-dropzone.tfst-dragover {
  border-color: #2563eb;
  background: #eff6ff;
}

.tfst-dropzone-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tfst-dropzone-text {
  font-size: 0.9rem;
  color: var(--text, #374151);
  font-weight: 500;
  margin: 0 0 0.25rem 0;
}

.tfst-dropzone-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
  margin: 0;
}

.tfst-file-input {
  display: none;
}

.tfst-form-group {
  margin-bottom: 1rem;
}

.tfst-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #374151);
  margin-bottom: 0.35rem;
}

.tfst-input, .tfst-textarea, .tfst-select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--surface, #ffffff);
  color: var(--text, #111827);
  font-family: inherit;
}

.tfst-input:focus, .tfst-textarea:focus, .tfst-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.tfst-textarea {
  min-height: 90px;
  resize: vertical;
}

.tfst-btn-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tfst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tfst-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.tfst-btn-primary:hover {
  background: #1d4ed8;
}

.tfst-btn-secondary {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.tfst-btn-secondary:hover {
  background: #e5e7eb;
}

.tfst-btn-accent {
  background: #059669;
  color: #ffffff;
}

.tfst-btn-accent:hover {
  background: #047857;
}

.tfst-file-preview-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tfst-file-info {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tfst-result-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.tfst-result-title {
  font-size: 1rem;
  font-weight: 700;
  color: #166534;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tfst-link-display {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tfst-status-banner {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tfst-status-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.tfst-status-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.tfst-status-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.tfst-status-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.tfst-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.tfst-table th, .tfst-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  text-align: left;
}

.tfst-table th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--text-muted, #4b5563);
}

.tfst-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-all;
}

.tfst-ad-slot {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  margin: 2rem 0;
  color: #9ca3af;
  font-size: 0.85rem;
}
