﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #0f766e;
  --accent-2: #0ea5a4;
  --danger: #b91c1c;
  --warning: #b45309;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(14, 165, 164, 0.18), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(15, 118, 110, 0.12), transparent 60%),
    var(--bg);
  color: var(--ink);
}

h1, h2, h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}

p { margin: 0 0 12px; color: var(--muted); }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, #0f172a, #111827 60%);
  color: #f8fafc;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  color: #f8fafc;
  letter-spacing: 0;
}

.nav a {
  color: #e2e8f0;
  text-decoration: none;
  margin-right: 16px;
  font-weight: 600;
}

.nav a.active {
  color: #ffffff;
  border-bottom: 2px solid #14b8a6;
  padding-bottom: 4px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.nav-user form { margin: 0; }

.main {
  display: grid;
  gap: 28px;
  animation: fadeIn 0.5s ease;
}

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

.panel.hero {
  padding: 32px;
  display: grid;
  gap: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.hero-card {
  background: linear-gradient(140deg, rgba(15, 118, 110, 0.08), rgba(14, 165, 164, 0.18));
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.upload-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }

.drop {
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  background: #f8fafc;
  padding: 22px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.drop:hover { border-color: #94a3b8; background: #f1f5f9; }

.drop input { display: none; }

.drop-title { font-weight: 700; color: var(--ink); }
.drop-meta { font-size: 13px; color: var(--muted); }
.drop-file { font-size: 13px; color: var(--accent); font-weight: 600; }

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

button, .button {
  border: 0;
  background: var(--accent);
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

button.secondary, .button.secondary { background: #0f172a; }
button.ghost, .button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.light, .button.light { color: #f8fafc; border-color: rgba(255,255,255,0.35); padding: 7px 12px; }
button.danger { background: var(--danger); }

input, textarea, select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  width: 100%;
  font-family: inherit;
  background: #ffffff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #f8fafc;
}

.stat strong { display: block; font-size: 26px; color: var(--ink); }
.stat.error { background: #fff1f2; border-color: #fecdd3; }
.stat.warning { background: #fffbeb; border-color: #fde68a; }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: #f8fafc;
}

.chip.active { background: var(--accent); color: white; border-color: transparent; }

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  background: var(--surface);
}

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

th {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 2;
  font-weight: 700;
}

.col-status {
  min-width: 120px;
}

.sev-error { background: #fff1f2; }
.sev-warning { background: #fffbeb; }

.grid-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

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

.auth-shell {
  min-height: calc(100svh - 180px);
  display: grid;
  justify-items: center;
  align-items: center;
  padding: 24px 0;
}

.auth-head {
  display: grid;
  gap: 6px;
  margin-bottom: 2px;
}

.auth-head h1 {
  font-size: 30px;
  line-height: 1.15;
}

.auth-form {
  display: grid;
  gap: 14px;
  width: min(100%, 440px);
  border-radius: 14px;
  padding: 26px;
}

.auth-form-wide {
  width: min(100%, 560px);
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2px;
}

.alert {
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}

.alert.error {
  color: var(--danger);
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(14, 165, 164, 0.12);
  color: var(--accent);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-user { width: 100%; justify-content: space-between; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .grid-form { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .auth-shell { min-height: auto; padding: 8px 0; }
  .auth-form { padding: 22px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-actions { align-items: flex-start; flex-direction: column; }
}
