/* 文件路径：app/static/v80/css/v80.css */
:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #6b7280;
  --line: #e7eaf0;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #dc2626;
  --purple: #7c3aed;
  --shadow: 0 14px 36px rgba(15, 23, 42, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

.v80-shell {
  min-height: 100vh;
  display: flex;
}

.v80-sidebar {
  width: 250px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 12px 0 30px rgba(15, 23, 42, .18);
}

.v80-brand {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.v80-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #60a5fa, #34d399);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .4px;
}

.v80-brand-title { font-size: 16px; font-weight: 700; }
.v80-brand-subtitle { color: #9ca3af; font-size: 12px; margin-top: 3px; }

.v80-nav { padding: 18px 12px; display: flex; flex-direction: column; gap: 6px; }
.v80-nav a {
  padding: 11px 14px;
  border-radius: 12px;
  color: #d1d5db;
  font-size: 14px;
  transition: .18s ease;
}
.v80-nav a:hover, .v80-nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.v80-nav-group {
  color: #6b7280;
  font-size: 12px;
  padding: 14px 14px 4px;
}

.v80-sidebar-footer {
  margin-top: auto;
  padding: 18px 20px;
  color: #a3aab8;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  gap: 8px;
  align-items: center;
}
.v80-dot { width: 8px; height: 8px; border-radius: 99px; background: #22c55e; box-shadow: 0 0 0 6px rgba(34,197,94,.12); }

.v80-main { flex: 1; min-width: 0; }
.v80-topbar {
  height: 86px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.v80-page-title { font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.v80-page-desc { color: var(--muted); margin-top: 6px; font-size: 13px; }
.v80-topbar-actions { display: flex; gap: 10px; align-items: center; }

.v80-content { padding: 24px 28px 44px; }

.v80-grid { display: grid; gap: 18px; }
.v80-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v80-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v80-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.v80-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.v80-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.v80-card-head h2 { margin: 0; font-size: 17px; }
.v80-card-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.v80-mt { margin-top: 18px; }

.v80-metric-label { color: var(--muted); font-size: 13px; }
.v80-metric-value { font-size: 28px; font-weight: 800; margin-top: 8px; line-height: 1.1; }
.v80-metric-foot { color: var(--muted); font-size: 12px; margin-top: 10px; }

.v80-btn {
  appearance: none;
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: .16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.v80-btn:hover { background: var(--primary-2); transform: translateY(-1px); }
.v80-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.v80-btn-ghost { background: #eef2ff; color: var(--primary); }
.v80-btn-ghost:hover { background: #dbeafe; color: var(--primary-2); }
.v80-btn-lg { width: 100%; height: 48px; font-size: 16px; }
.v80-inline-actions { display: flex; gap: 10px; align-items: center; }
.v80-actions-vertical { display: flex; flex-direction: column; gap: 12px; }

.v80-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}
.v80-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #f3f4f6;
  color: #374151;
}
.v80-badge.green { background: #dcfce7; color: #166534; }
.v80-badge.orange { background: #fef3c7; color: #92400e; }
.v80-badge.red { background: #fee2e2; color: #991b1b; }
.v80-badge.blue { background: #dbeafe; color: #1e40af; }
.v80-badge.purple { background: #ede9fe; color: #5b21b6; }

.v80-table-wrap { overflow-x: auto; }
.v80-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.v80-table th {
  text-align: left;
  color: #4b5563;
  font-weight: 800;
  background: #f8fafc;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.v80-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.v80-table tr:hover td { background: #fafcff; }
.v80-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  max-width: 520px;
  word-break: break-all;
  color: #334155;
}

.v80-project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.v80-project-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfdff;
}
.v80-project-card h3 { margin: 0 0 8px; font-size: 16px; }
.v80-project-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.v80-project-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.v80-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.v80-step {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.v80-step b {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}
.v80-step span { font-size: 13px; color: #334155; }

.v80-dropzone {
  min-height: 240px;
  border: 2px dashed #bfdbfe;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  transition: .16s ease;
}
.v80-dropzone.dragover { border-color: var(--primary); background: #dbeafe; }
.v80-drop-icon { font-size: 42px; color: var(--primary); }
.v80-drop-title { font-size: 18px; font-weight: 800; }
.v80-drop-desc { color: var(--muted); font-size: 13px; }

.v80-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.v80-form-grid label { font-size: 12px; color: var(--muted); font-weight: 700; }
.v80-form-grid input {
  margin-top: 6px;
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #f8fafc;
  color: var(--text);
  font-weight: 700;
}

.v80-progress {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
}
.v80-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  border-radius: 99px;
  transition: width .2s ease;
}
.v80-current-file { color: var(--muted); font-size: 13px; word-break: break-all; }
.v80-log {
  height: 190px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f172a;
  color: #d1d5db;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.v80-log div { margin-bottom: 4px; }

.v80-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #111827;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 99999;
  max-width: 420px;
}
.v80-toast.show { transform: translateY(0); opacity: 1; }

.v80-queue-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  min-height: 160px;
}
.v80-code {
  background: #0f172a;
  color: #d1d5db;
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.6;
}
.v80-pagination { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 14px; }

@media (max-width: 1180px) {
  .v80-grid-4, .v80-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .v80-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .v80-sidebar { display: none; }
  .v80-topbar { position: static; height: auto; padding: 18px; align-items: flex-start; flex-direction: column; }
  .v80-content { padding: 16px; }
  .v80-grid-4, .v80-grid-3, .v80-grid-2, .v80-steps, .v80-form-grid { grid-template-columns: 1fr; }
}


/* BEGIN V91O_UPLOAD_REALTIME_STATUS_CSS */
.v91o-file-status-detail {
  margin-top: 4px;
  max-width: 360px;
  white-space: normal;
  word-break: break-all;
  line-height: 1.35;
}
.v80-table td .v91o-file-status-detail {
  font-size: 12px;
}
/* END V91O_UPLOAD_REALTIME_STATUS_CSS */
