/* comment here */
:root {
  --bg: #0b102013;
  --panel: #1219331a;
  --muted: #272c38;
  --text: #0b0f1a;
  --accent: #6ea8fe;
  --border: #26314f;
  --success: #36c98a;
  --warn: #ffb84d;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

body {
  min-height: 100vh;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
  .titlebar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  img{
    max-width: 100px;
    height: auto;
  }
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

h1, h2, h3 {
  margin: 0 0 12px;
}

p {
  color: var(--muted);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.helper-copy {
  margin: 8px 0 0;
  font-size: 13px;
}

.dropzone {
  border: 2px dashed var(--accent);
  border-radius: 16px;
  padding: 32px 16px;
  text-align: center;
  transition: 120ms ease;
  background: rgba(255, 255, 255, 0.082);
}

.dropzone.dragover {
  background: rgba(110, 168, 254, 0.055);
  transform: scale(1.01);
}

button,
input[type="file"]::file-selector-button {
  background: var(--accent);
  border: 0;
  color: #08101f;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

button:disabled,
input[type="file"]::file-selector-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.file-list {
  display: grid;
  gap: 10px;
}

.file-row {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  text-align: left;
  overflow: hidden;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 1px 0 rgba(11, 15, 26, 0.04);
}

.file-row:hover:not(:disabled) {
  background: rgba(110, 168, 254, 0.12);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 15, 26, 0.08);
}

.file-row:active:not(:disabled) {
  transform: translateY(0);
  background: rgba(110, 168, 254, 0.18);
}

.file-row:focus-visible {
  outline: 3px solid rgba(110, 168, 254, 0.35);
  outline-offset: 2px;
  border-color: var(--accent);
}

.file-row.is-downloading {
  border-color: var(--accent);
  background: rgba(110, 168, 254, 0.14);
}

.file-meta {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.file-name {
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.file-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.file-affordance {
  flex-shrink: 0;
  /* border: 1px solid rgba(110, 168, 254, 0.45); */
  /* background: rgba(110, 168, 254, 0.12); */
  color: #12305d;
  /* border-radius: 999px; */
  /* padding: 8px 8px; */
  font-size: 9px;
  font-weight: 700;
}

.file-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.35);
}

.toast-wrap {
  position: fixed;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 10px;
  z-index: 9999;
}

.toast {
  width: 280px;
  background: #a6abbb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.progress {
  height: 8px;
  background: #1b2444;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress > div {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.iframe-minimal .chrome {
  display: none;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions button {
    width: 100%;
  }

  .file-row {
    align-items: flex-start;
    flex-direction: row;
  }

  .file-affordance {
    align-self: flex-end;
  }
}

.file-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.delete-btn {
  background: var(--danger);
  border: 0;
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

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

.file-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.delete-btn {
  background: var(--danger);
  border: 0;
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

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

.file-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.delete-btn {
  background: var(--danger);
  border: 0;
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

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

.file-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.delete-btn {
  background: var(--danger);
  border: 0;
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

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