* {
  box-sizing: border-box;
}

:root {
  --bg: #060b1d;
  --bg2: #0b1430;
  --card: rgba(17, 24, 49, 0.88);
  --card-border: rgba(118, 132, 255, 0.14);
  --text: #f3f6ff;
  --muted: #a8b0cf;
  --accent1: #8b5cf6;
  --accent2: #4f8cff;
  --success-bg: rgba(10, 66, 62, 0.58);
  --success-border: rgba(39, 193, 158, 0.22);
  --danger: #ff6a8b;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(124, 58, 237, 0.28), transparent 28%),
    radial-gradient(circle at bottom center, rgba(59, 130, 246, 0.18), transparent 30%),
    linear-gradient(180deg, #040817 0%, #071127 35%, #050a18 100%);
  z-index: -1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(4, 8, 23, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: white;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 10px 30px rgba(98, 93, 255, 0.35);
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.topnav {
  color: var(--muted);
  font-size: 15px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.small-hero {
  margin-bottom: 22px;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow:
    0 24px 80px rgba(114, 76, 255, 0.38),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.hero-title {
  margin: 0;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-title.small {
  font-size: 40px;
  line-height: 1.1;
  word-break: break-word;
}

.hero-subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 24px;
}

.hero-badges {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e7ebff;
  font-size: 14px;
  font-weight: 600;
}

.upload-card,
.result-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.32);
}

.result-card {
  margin-top: 18px;
  background: var(--success-bg);
  border-color: var(--success-border);
}

.dropzone {
  display: block;
  width: 100%;
  border: 2px dashed rgba(148, 98, 255, 0.7);
  border-radius: 24px;
  background: rgba(18, 25, 56, 0.78);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.dropzone:hover,
.dropzone.dragover {
  background: rgba(27, 36, 74, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(132, 91, 255, 0.25) inset;
}

.dropzone-icon {
  font-size: 46px;
  margin-bottom: 10px;
  color: #a970ff;
}

.dropzone-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.dropzone-subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 18px;
}

.dropzone-meta {
  color: #95a0c7;
  font-size: 15px;
}

.selected-file {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(8, 14, 37, 0.92);
  border: 1px solid rgba(255,255,255,0.06);
  color: #eef1ff;
}

.primary-btn,
.secondary-btn,
.mini-btn {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.primary-btn {
  width: 100%;
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  font-size: 18px;
  color: white;
  background: linear-gradient(90deg, var(--accent1), #7c5cff, var(--accent2));
  box-shadow: 0 16px 42px rgba(100, 92, 255, 0.35);
}

.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  border-radius: 16px;
  font-size: 16px;
  color: #e8ecff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.12);
}

.link-btn {
  width: auto;
  min-width: 220px;
  text-align: center;
}

.status {
  margin-top: 18px;
  color: #d9def8;
  font-size: 15px;
}

.progress-wrap {
  margin-top: 18px;
}

.progress-bar {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

.progress-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.result-header {
  margin-bottom: 20px;
}

.result-title {
  font-size: 24px;
  font-weight: 800;
}

.result-subtitle {
  margin-top: 6px;
  color: #b9f2df;
  font-size: 15px;
}

.result-grid {
  display: grid;
  gap: 16px;
}

.result-item label {
  display: block;
  margin-bottom: 8px;
  color: #dbe8ff;
  font-size: 14px;
  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input-row input {
  flex: 1;
  min-width: 240px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 255, 0.15);
  background: rgba(9, 16, 40, 0.78);
  color: #f3f6ff;
  outline: none;
}

.mini-btn {
  padding: 14px 16px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #6e59ff, #4f8cff);
}

.mini-btn:hover {
  filter: brightness(1.05);
}

.danger-btn {
  background: linear-gradient(135deg, #ff5d7a, #ff7a59);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.file-meta-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(9, 16, 40, 0.72);
  border: 1px solid rgba(255,255,255,0.06);
}

.meta-box.full {
  grid-column: 1 / -1;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.meta-value {
  display: block;
  color: white;
  font-size: 17px;
  font-weight: 700;
  word-break: break-word;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .topbar-inner {
    padding: 16px 18px;
  }

  .container {
    padding: 28px 14px 56px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-logo {
    width: 88px;
    height: 88px;
    font-size: 36px;
  }

  .upload-card,
  .result-card {
    padding: 18px;
    border-radius: 22px;
  }

  .dropzone {
    padding: 36px 16px;
  }

  .file-meta-grid {
    grid-template-columns: 1fr;
  }

  .link-btn,
  .secondary-btn {
    width: 100%;
  }
}
.admin-container {
  max-width: 1400px;
}

.admin-title {
  margin: 0 0 20px;
  font-size: 34px;
  font-weight: 800;
}

.admin-filters {
  display: grid;
  grid-template-columns: 220px 1fr 140px 180px;
  gap: 12px;
  align-items: center;
}

.admin-filters input,
.admin-filters select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 255, 0.15);
  background: rgba(9, 16, 40, 0.78);
  color: #f3f6ff;
  outline: none;
}

.admin-btn {
  margin-top: 0;
  width: 100%;
}

.admin-table-card {
  margin-top: 18px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  color: #b9c3ea;
  font-weight: 700;
}

.admin-table td {
  color: #eef2ff;
}

.break-cell {
  word-break: break-word;
  max-width: 280px;
}

.log-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.log-badge.upload {
  background: rgba(39, 193, 158, 0.18);
  color: #80f0cc;
  border: 1px solid rgba(39, 193, 158, 0.25);
}

.log-badge.download {
  background: rgba(79, 140, 255, 0.18);
  color: #9fc4ff;
  border: 1px solid rgba(79, 140, 255, 0.25);
}

@media (max-width: 980px) {
  .admin-filters {
    grid-template-columns: 1fr;
  }
}