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

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --sidebar-width: 260px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

/* Trial Banner */
.trial-banner {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  color: white;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 100;
}

.trial-banner a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
}

.trial-banner a:hover {
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--background);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-tiny {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Landing Page */
#landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-header {
  padding: 1.5rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
}

.hero {
  text-align: center;
  max-width: 600px;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  width: 100%;
}

.feature {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature p {
  color: var(--text-secondary);
}

/* AI Highlight Section */
.ai-highlight {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  max-width: 800px;
  width: 100%;
}

.ai-highlight-content {
  text-align: center;
  color: white;
}

.ai-badge {
  display: inline-block;
  background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.ai-highlight h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.ai-highlight p {
  font-size: 1rem;
  color: #c4b5fd;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.ai-examples {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0 auto;
}

.ai-example {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #e0e7ff;
  font-style: italic;
}

/* Screenshots Section */
.screenshots {
  padding: 3rem 2rem;
  text-align: center;
  max-width: 1000px;
  width: 100%;
}

.screenshots h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.screenshot-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.screenshot-item p {
  padding: 1rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.screenshot-item {
  cursor: pointer;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  box-sizing: border-box;
}

.lightbox.hidden {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox p {
  color: white;
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
  max-width: 600px;
}

.pricing {
  padding: 3rem 2rem;
  text-align: center;
}

.pricing h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.pricing-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  min-width: 280px;
  flex: 1;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.pricing-card.addon {
  border-style: dashed;
  position: relative;
}

.addon-label {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: var(--secondary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.pricing-period {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  text-align: left;
  flex: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success-color);
}

.pricing-card .btn {
  width: 100%;
}

.trial-badge {
  background: linear-gradient(135deg, var(--primary-color), #a855f7);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.landing-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.landing-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.landing-footer a:hover {
  text-decoration: underline;
}

/* Dashboard */
#dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

body:has(.trial-banner:not([hidden])) .sidebar {
  top: 42px;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.nav-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}

.nav-item:hover,
.nav-item.active {
  background: var(--background);
  color: var(--primary-color);
}

.nav-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.nav-section-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}

.nav-item-sub {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.nav-item-muted {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

.nav-item-external {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.nav-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.nav-item-with-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: var(--border);
  color: var(--text-secondary);
}

.job-badge.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.job-badge.queued {
  background: #fef3c7;
  color: #92400e;
}

.standalone-badge {
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: var(--border);
  color: var(--text-secondary);
  margin-left: 0.25rem;
  vertical-align: middle;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.token-display {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  background: var(--background);
  border-radius: 8px;
  cursor: default;
}

.token-display.plan-free {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
}

.token-display.plan-free #token-count {
  color: #92400e;
}

#token-count {
  font-weight: 600;
  color: var(--primary-color);
}

.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
}

.dashboard-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
}

.dashboard-content {
  display: grid;
  gap: 1.5rem;
}

.dashboard-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.dashboard-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.dashboard-footer a:hover {
  text-decoration: underline;
}

.welcome-card,
.info-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.welcome-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.welcome-card p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.info-card h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

#tenant-plan {
  font-size: 1.25rem;
  font-weight: 600;
}

.upgrade-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  margin-left: 0.5rem;
}

.upgrade-link:hover {
  text-decoration: underline;
}

.upgrade-overlay {
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem;
}

.upgrade-overlay:not([hidden]) {
  display: flex;
}

.upgrade-card {
  background: var(--surface);
  border: 1px solid var(--primary-color);
  border-radius: 16px;
  padding: 3rem;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.upgrade-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.upgrade-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.upgrade-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin-bottom: 2rem;
}

.upgrade-feature {
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.upgrade-card .btn-large {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.upgrade-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

#custom-profiles-card {
  margin-top: 1.5rem;
}

#custom-profiles-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

#custom-profiles-card .btn {
  margin-top: 0.5rem;
}

#custom-profiles-card small {
  color: var(--text-secondary);
  font-size: 0.75rem;
  word-break: break-all;
}

.profiles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}

.profiles-list li {
  background: var(--background);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.profiles-list code {
  font-size: 0.875rem;
}

/* Section Header */
.section-header {
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Loading State */
.loading-state {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--text-secondary);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.error-text {
  color: #dc2626;
}

/* Transcoder Cards */
.transcoder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.transcoder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.transcoder-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.transcoder-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.transcoder-packaging-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
}

.transcoder-packaging-status.connected {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.transcoder-packaging-status .status-icon {
  font-weight: bold;
}

.job-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: 8px;
}

.job-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.job-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.job-stat-value.active {
  color: #2563eb;
}

.job-stat-value.completed {
  color: #059669;
}

.job-stat-value.failed {
  color: #dc2626;
}

.job-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.transcoder-services {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.service-label {
  color: var(--text-secondary);
  min-width: 60px;
}

.service-url {
  color: var(--primary-color);
  text-decoration: none;
  word-break: break-all;
}

.service-url:hover {
  text-decoration: underline;
}

/* Create Section */
.create-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.create-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.create-queue-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.create-queue-form .form-row {
  margin-bottom: 0;
}

.create-queue-form .form-group {
  margin-bottom: 0;
}

.create-queue-form .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: var(--surface);
}

.create-queue-form .form-group select:focus {
  border-color: var(--primary-color);
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-row input:focus {
  border-color: var(--primary-color);
}

.form-row input::placeholder {
  color: var(--text-secondary);
}

/* Jobs View */
.header-with-back {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profiles-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.profiles-status.connected {
  background: #d1fae5;
  color: #065f46;
}

.profiles-status.not-connected {
  background: #fef3c7;
  color: #92400e;
}

/* Generate Profile Form */
.generate-profile-section h4,
.available-profiles-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.generate-profile-section .section-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.generate-profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.generate-profile-form textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 80px;
}

.generate-profile-form textarea:focus {
  border-color: var(--primary-color);
}

.generate-profile-form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.modal-profiles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-profiles-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.new-badge {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background: #d1fae5;
  color: #065f46;
  text-transform: uppercase;
}

.btn-back {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.btn-back:hover {
  background: var(--background);
  color: var(--text-primary);
}

.jobs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.jobs-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  outline: none;
  width: 200px;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--primary-color);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  background: var(--background);
}

.filter-tab.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.job-filename {
  font-weight: 600;
  word-break: break-all;
}

.job-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.status-queued {
  background: #fef3c7;
  color: #92400e;
}

.status-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-failed {
  background: #fee2e2;
  color: #991b1b;
}

.job-progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.job-progress-bar {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s;
}

.job-progress-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.job-message {
  font-style: italic;
}

.job-card.clickable {
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.job-card.clickable:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

/* Job Details Modal */
.job-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.job-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.job-detail-progress {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.job-detail-section {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.job-detail-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.job-detail-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.job-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.job-detail-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.job-detail-value {
  font-size: 0.875rem;
  color: var(--text-primary);
  text-align: right;
  word-break: break-all;
}

.detail-url {
  font-family: monospace;
  font-size: 0.75rem;
  background: var(--background);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.output-files-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.output-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--background);
  border-radius: 6px;
  font-size: 0.875rem;
}

.output-file-name {
  font-family: monospace;
  font-size: 0.75rem;
  word-break: break-all;
}

.output-file-size {
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.job-detail-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
}

.job-detail-error h4 {
  color: #991b1b;
}

.job-detail-error p {
  color: #991b1b;
  font-size: 0.875rem;
  margin: 0;
}

.job-raw-details {
  font-size: 0.875rem;
}

.job-raw-details summary {
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}

.job-raw-details summary:hover {
  color: var(--primary-color);
}

.job-raw-details pre {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  max-height: 300px;
}

/* Queue Top Section */
.queue-top-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .queue-top-section {
    grid-template-columns: 1fr;
  }
}

/* Profiles Section */
.profiles-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
}

/* New Job Section */
.new-job-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
}

.new-job-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.new-job-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-color);
}

.form-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.input-with-browse {
  display: flex;
  gap: 0.5rem;
}

.input-with-browse input {
  flex: 1;
}

.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

/* Queue display styles */
.loading-state-small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.spinner-small {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-state-small {
  padding: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-style: italic;
}

.queue-length {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
}

.queue-items {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
}

.queue-item {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.queue-item:last-child {
  border-bottom: none;
}

.queue-item-index {
  display: inline-block;
  min-width: 2rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.queue-item-data {
  display: block;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--surface);
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 100px;
  overflow-y: auto;
}

.form-row-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.output-location-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.output-location-row select {
  flex: 0 0 auto;
  min-width: 120px;
}

.output-location-row input {
  flex: 1;
  min-width: 0;
}

.output-separator {
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 600px) {
  .form-row-inline {
    grid-template-columns: 1fr;
  }
}

.profiles-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.profiles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  cursor: default;
}

.profile-chip:hover {
  border-color: var(--primary-color);
  cursor: pointer;
}

.profile-name {
  font-weight: 500;
  color: var(--text-primary);
}

.profile-encodes {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.loading-state-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.muted-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Profile Details Modal */
.profile-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-section {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-description {
  color: var(--text-primary);
  line-height: 1.5;
}

.profile-source {
  margin-top: 0.5rem;
}

.encodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.encode-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.encode-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.encode-type {
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  background: #dbeafe;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.encode-suffix {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.encode-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.encode-detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--surface);
  padding: 0.375rem 0.625rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  line-height: 1.4;
}

.encode-detail strong {
  color: var(--text-primary);
  font-weight: 500;
}

.encode-detail.expandable {
  cursor: pointer;
  position: relative;
}

.encode-detail.expandable:hover {
  background: #e2e8f0;
  border-color: var(--primary-color);
}

.encode-detail.expandable::after {
  content: ' +';
  color: var(--primary-color);
  font-weight: 600;
}

.encode-detail.expandable.expanded::after {
  content: ' −';
}

.encode-detail.expanded {
  background: var(--background);
  max-width: 100%;
  flex-basis: 100%;
}

.encode-detail .detail-value {
  word-break: break-all;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--surface);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.modal-success {
  color: #059669;
  margin-bottom: 1rem;
}

.modal-error {
  color: #dc2626;
}

.modal-warning {
  color: #d97706;
  font-size: 0.875rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fef3c7;
  border-radius: 8px;
}

.modal-info {
  color: #1d4ed8;
  font-size: 0.875rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: #dbeafe;
  border-radius: 8px;
}

.modal-footer {
  display: flex;
  gap: 0.5rem;
}

/* Delete Confirmation */
.delete-confirm-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.delete-warning {
  color: #dc2626;
  font-size: 0.875rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.75rem;
  background: var(--background);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.checkbox-label:hover {
  border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.credentials-box {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.credentials-box h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.credential-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.credential-item:last-child {
  margin-bottom: 0;
}

.credential-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.credential-value {
  font-family: monospace;
  font-size: 0.875rem;
  background: var(--surface);
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  word-break: break-all;
}

/* Storage View */
.storage-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.storage-actions {
  display: flex;
  gap: 0.5rem;
}

.create-bucket-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.create-bucket-form input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  outline: none;
  min-width: 200px;
}

.create-bucket-form input:focus {
  border-color: var(--primary-color);
}

.create-bucket-form input::placeholder {
  color: var(--text-secondary);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.breadcrumb-item {
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.breadcrumb-item:hover {
  background: var(--background);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  cursor: default;
  font-weight: 600;
}

.breadcrumb-item.active:hover {
  background: transparent;
}

.breadcrumb-separator {
  color: var(--text-secondary);
}

.file-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.file-item:last-child {
  border-bottom: none;
}

.file-item.folder {
  cursor: pointer;
}

.file-item.folder:hover {
  background: var(--background);
}

.file-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

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

.file-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

.file-item .file-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.file-item.manifest-file {
  background: rgba(16, 185, 129, 0.05);
}

/* Signed URL Modal */
.signed-url-result {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signed-url-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.signed-url-box {
  display: flex;
  gap: 0.5rem;
}

.signed-url-box input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: monospace;
  background: var(--background);
}

.signed-url-file {
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
}

/* Browse Input Modal */
.browse-back-row {
  margin-bottom: 1rem;
}

.browse-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.browse-toolbar-right {
  display: flex;
  gap: 0.5rem;
}

.browse-storage-list {
  display: flex;
  flex-direction: column;
}

.browse-storage-list .file-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.browse-storage-list .file-item:hover {
  background: var(--background);
  border-color: var(--primary-color);
}

.upload-progress {
  text-align: center;
  padding: 1rem 0;
}

.upload-progress p {
  margin: 0.5rem 0;
}

.upload-progress .upload-size {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Queue Selection List */
.queue-selection-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.queue-selection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.queue-selection-item:hover {
  border-color: var(--primary-color);
  background: var(--surface);
}

.queue-selection-name {
  font-weight: 600;
  color: var(--text-primary);
}

.queue-selection-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Source Selection */
.source-selection-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.source-selection-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.source-selection-item:hover {
  border-color: var(--primary-color);
  background: var(--surface);
}

.source-selection-icon {
  font-size: 1.5rem;
}

.source-selection-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.source-selection-name {
  font-weight: 600;
  color: var(--text-primary);
}

.source-selection-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Bucket File Browser */
.bucket-browser {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bucket-browser-path {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: var(--background);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: monospace;
}

.bucket-name {
  font-weight: 600;
  color: var(--primary-color);
}

.path-separator {
  color: var(--text-secondary);
}

.current-path {
  color: var(--text-secondary);
}

.bucket-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
}

.bucket-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.bucket-item:hover {
  background: var(--background);
}

.bucket-item-icon {
  font-size: 1.125rem;
}

.bucket-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.bucket-item-name {
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bucket-item-size {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.bucket-folder .bucket-item-name {
  font-weight: 500;
}

.file-source-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Status Badges */
.packager-status-header {
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.status-badge.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.status-badge.status-waiting {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-dot-active {
  background: #10b981;
}

.status-dot-waiting {
  background: #f59e0b;
}

/* Video Player */
.video-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.video-player-container eyevinn-video {
  width: 100%;
  height: 100%;
}

.video-player-info {
  padding: 0.75rem;
  background: var(--background);
  border-radius: 8px;
  font-size: 0.875rem;
}

.video-player-info p {
  margin: 0.25rem 0;
  word-break: break-all;
}

.video-player-info .url-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.75rem;
}

.video-player-info .url-link:hover {
  text-decoration: underline;
}

/* Embed Code Modal */
.embed-code-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.embed-code-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.embed-code-wrapper {
  position: relative;
  background: var(--background);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.embed-code {
  margin: 0;
  padding: 1rem;
  padding-right: 5rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.embed-code code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  color: var(--text-primary);
}

.copy-embed-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.copy-embed-btn.btn-success {
  background: var(--success-color);
  border-color: var(--success-color);
}

.embed-code-info {
  padding: 0.75rem;
  background: var(--background);
  border-radius: 8px;
  font-size: 0.875rem;
}

.embed-code-info p {
  margin: 0.25rem 0;
  word-break: break-all;
}

.embed-code-info .url-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.75rem;
}

.embed-code-info .url-link:hover {
  text-decoration: underline;
}

/* File Actions in Browser */
.file-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

/* Manifest files in bucket browser */
.bucket-manifest {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
}

.bucket-manifest .btn {
  margin-left: auto;
}

/* Transcode Upload Form */
.transcode-upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.upload-file-info {
  padding: 1rem;
  background: var(--background);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.upload-file-info p {
  margin: 0.25rem 0;
}

.upload-file-info .upload-size {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.upload-progress-section {
  padding: 1rem;
  background: var(--background);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.upload-progress-section p {
  margin: 0;
  text-align: center;
}

/* Responsive */
/* Mobile Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  align-items: center;
  gap: 1rem;
  z-index: 100;
}

body:has(.trial-banner:not([hidden])) .mobile-header {
  top: 42px;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.open {
  opacity: 1;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  line-height: 1;
}

.sidebar-close:hover {
  color: var(--text-primary);
}

/* Responsive breakpoint for collapsible sidebar */
@media (max-width: 1024px) {
  .mobile-header {
    display: flex;
  }

  .sidebar-overlay {
    display: block;
    pointer-events: none;
  }

  .sidebar-overlay.open {
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
  }

  body:has(.trial-banner:not([hidden])) .sidebar {
    top: 0;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar-close {
    display: block;
  }

  #dashboard {
    flex-direction: column;
  }

  .dashboard-main {
    margin-left: 0;
    padding: 1.5rem;
    padding-top: calc(56px + 1.5rem);
  }

  body:has(.trial-banner:not([hidden])) .dashboard-main {
    padding-top: calc(56px + 42px + 1.5rem);
  }

  body.sidebar-open {
    overflow: hidden;
  }
}

/* Smaller screens - additional adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    max-width: 100%;
  }

  .dashboard-main {
    padding: 1rem;
    padding-top: calc(56px + 1rem);
  }

  body:has(.trial-banner:not([hidden])) .dashboard-main {
    padding-top: calc(56px + 42px + 1rem);
  }

  .transcoder-card {
    padding: 1rem;
  }

  .job-stats {
    gap: 0.5rem;
  }

  .job-stat {
    padding: 0.5rem;
  }

  .jobs-toolbar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .jobs-toolbar-right {
    width: 100%;
  }

  .search-input {
    flex: 1;
  }

  .filter-tabs {
    flex-wrap: wrap;
  }
}

/* Packager Queue Styles */
.packager-encore-badge {
  background: var(--success-color);
  color: white;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: 500;
}

.packager-disconnected-badge {
  background: var(--secondary-color);
  color: white;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: 500;
  opacity: 0.6;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.connection-status.connected {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.connection-status.disconnected {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #d97706;
}

.connection-status .status-icon {
  font-size: 1.1rem;
}

.creation-steps {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.creation-step {
  padding: 0.5rem 0.75rem;
  background: var(--background);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.creation-step .step-icon {
  font-size: 0.9rem;
  width: 1.2rem;
  text-align: center;
}

.creation-step.in-progress {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

.creation-step.completed {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.creation-step.completed .step-icon {
  color: var(--success-color);
}
