@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=IBM+Plex+Sans:wght@300;400;600;700&display=swap");

:root {
  --bg: #f2f4f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --accent: #1f1b5b;
  --accent-2: #2a2570;
  --orange: #f97316;
  --warning: #f59e0b;
  --border: #e2e8f0;
  --success: #10b981;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px;
  background: var(--accent);
  color: #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-wrap img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.title {
  font-weight: 700;
  font-size: 1.05rem;
}

.subtitle {
  font-size: 0.78rem;
  color: #b6c0d2;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 20px 24px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.sidebar-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.sidebar-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.upload-box {
  border: 1px dashed #cbd5f5;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.upload-icon {
  font-size: 1.2rem;
}

.upload-text {
  font-weight: 600;
  margin-top: 6px;
}

.upload-hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

.file-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #1f1b5b;
  color: #fff;
  margin-top: 10px;
  font-size: 0.8rem;
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.nav li {
  padding: 8px 12px;
  border-radius: 10px;
  color: #475569;
  font-size: 0.88rem;
}

.nav li.active {
  background: #eef2ff;
  color: #1f1b5b;
  font-weight: 600;
}

.mini-card {
  padding: 14px;
}

.mini-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #94a3b8;
}

.mini-value {
  font-weight: 600;
  margin-top: 6px;
}

.mini-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

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

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin: 8px 0 0;
  color: #1f1b5b;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 18px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.75rem;
}

.hero-cards {
  display: flex;
  gap: 12px;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 140px;
  text-align: right;
}

.hero-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.hero-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f1b5b;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kpi-card {
  min-height: 160px;
}

.kpi-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.kpi-score {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1f1b5b;
  margin-top: 8px;
}

.kpi-score small {
  font-size: 1rem;
  color: #94a3b8;
}

.kpi-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 8px;
}

.form {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.row {
  display: flex;
  gap: 10px;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input,
select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

button.primary {
  background: var(--orange);
  color: #fff;
}

button.outline {
  background: transparent;
  border: 1px solid #94a3b8;
  color: #111827;
}

button.ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #334155;
}

.hidden {
  display: none;
}

.muted,
.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.meta {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.warning {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.highlight {
  background: linear-gradient(135deg, #1f1b5b, #2a2570);
  color: #e2e8f0;
}

.highlight-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.highlight-body {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}

.highlight-main {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

.highlight-metrics {
  display: flex;
  gap: 24px;
}

.highlight-label {
  font-size: 0.7rem;
  color: #94a3b8;
}

.highlight-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #7dd3fc;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  text-align: left;
}

th {
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .kpi-row {
    grid-template-columns: 1fr;
  }
  .hero {
    flex-direction: column;
    gap: 12px;
  }
  .row {
    flex-direction: column;
  }
}
