:root {
  --primary: #0af;
  --bg: #050509;
  --bg-elevated: #101018;
  --text: #f5f5ff;
  --muted: #8888aa;
  --danger: #ff4b6b;
  --radius: 10px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #111122 0, #050509 55%, #000 100%);
  color: var(--text);

  display: flex;              /* NEW */
  justify-content: center;    /* NEW */
  align-items: flex-start;    /* NEW */
  min-height: 100vh;          /* NEW */
}

.synoni-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px;

  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}


.synoni-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg, #0a0a12, #050509);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 20px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.synoni-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.synoni-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.synoni-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 0, #3cf, #00aaff 40%, #0040ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050509;
  font-weight: 700;
  font-size: 18px;
}

.synoni-logo-text {
  display: flex;
  flex-direction: column;
}

.synoni-logo-text span:first-child {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

.synoni-logo-text span:last-child {
  font-weight: 600;
  font-size: 16px;
}

.synoni-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: var(--muted);
}

.synoni-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
}

.synoni-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}

.synoni-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.synoni-col {
  flex: 1 1 0;
  min-width: 260px;
}

.synoni-panel {
  background: rgba(10, 10, 20, 0.9);
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.synoni-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.synoni-panel-title {
  font-size: 13px;
  font-weight: 600;
}

.synoni-panel-sub {
  font-size: 11px;
  color: var(--muted);
}

.synoni-list {
  max-height: 480px;
  overflow-y: auto;
  margin-top: 6px;
  width: 300px;
}

.synoni-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}

.synoni-file:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.synoni-file-name {
  font-size: 13px;
}

.synoni-file-meta {
  font-size: 11px;
  color: var(--muted);
}

.synoni-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 70vh;
  overflow-y: auto;
}

.synoni-file-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;          /* NEW: everything starts from the left */
  gap: 8px;                             /* NEW: space between checkbox and text */
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.synoni-file-name {
  font-size: 13px;
  overflow-wrap: anywhere;
  margin-right: 10px;
  flex: 1;                 /* NEW: take remaining space, stay left-aligned */
  text-align: left;        /* NEW: ensure text is left-aligned */
}

.synoni-file-row input[type="checkbox"] {
  margin: 0;
}

.synoni-download-btn {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.synoni-btn {
  border-radius: 999px;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00aaff, #0066ff);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 128, 255, 0.45);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

.synoni-btn {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.synoni-btn + .synoni-btn {
  margin-top: 8px;
}

.synoni-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(0, 128, 255, 0.55);
}

.synoni-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: var(--muted);
}

.synoni-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.synoni-label {
  font-size: 11px;
  color: var(--muted);
}

.synoni-input,
.synoni-select {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 12, 0.9);
  color: var(--text);
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
}

.synoni-input:focus,
.synoni-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(0, 170, 255, 0.4);
}

.synoni-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.synoni-badge-danger {
  background: rgba(255, 75, 107, 0.16);
  color: #ff9fb1;
}

.synoni-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 6px;
}

.synoni-table th,
.synoni-table td {
  padding: 6px 6px;
  text-align: left;
}

.synoni-table th {
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.synoni-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.synoni-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.synoni-footer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.synoni-input {
  width: 100%;
  box-sizing: border-box;
}

#share-url {
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .synoni-title {
    font-size: 20px;
  }

  .synoni-subtitle {
    font-size: 13px;
  }

  .synoni-label {
    font-size: 12px;
  }

  .synoni-pill {
    font-size: 10px;
  }

}

#share-password-input {
  width: 100%;
}

.synoni-file-name-folder {
  color: #0af;
  font-weight: 600;
}

#share-url {
  user-select: all;
  -webkit-user-select: all;
}

.synoni-link {
  color: var(--synoni-primary, #4b6bfb);
  text-decoration: none;
  font-size: 0.9rem;
}

.synoni-link:hover {
  text-decoration: underline;
}

.synoni-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.synoni-table-inner {
  min-width: 600px; /* ensures columns don’t collapse */
}
@media (max-width: 600px) {

  /* NEW: Fix table width on mobile */
  .synoni-table-inner {
    min-width: 100%;
  }

  .synoni-table-inner thead {
    display: none;
  }

  .synoni-table-inner tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
  }

  .synoni-table-inner td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
  }

  .synoni-table-inner td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
  }
}


.synoni-center {
  width: 100%;
  display: flex;
  justify-content: center;
}
