*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #D97B2A;
  --accent-dark: #b8641a;
  --accent-light: #fdf0dc;
  --bg: #FAE8CC;
  --white: #ffffff;
  --dark: #2b1800;
  --text: #2b1800;
  --muted: #8a6040;
  --border: #e8d5b8;
  --green: #2ec4a0;
  --yellow: #F5A83A;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ── APP NAV ── */
.app-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  height: 56px;
  gap: 32px;
  font-family: 'Inter', sans-serif;
}

.app-nav .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  margin-right: 8px;
  white-space: nowrap;
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.app-nav-links a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.app-nav-links a:hover { color: var(--accent); }
.app-nav-links a.active { color: var(--accent); }

.app-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.app-nav-right a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.app-nav-right a:hover { color: var(--accent); }

/* ── PAGE WRAPPER ── */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: #bbb; }

/* ── CARD ── */
.card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
  text-decoration: none;
}
.btn:hover { background: #f5f0e8; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); }

.btn-danger {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--white);
}
.btn-danger:hover { background: var(--accent-light); }

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  transition: color 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── INPUTS ── */
.input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: #bbb; }

.input-group { margin-bottom: 16px; }
.input-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.input-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── STAT CARDS ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card .stat-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ── EMPTY STATE ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 320px;
}

/* ── PROJECT HEADER ── */
.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}

.project-header .project-url {
  font-size: 13px;
  color: var(--muted);
}

.project-header-actions {
  display: flex;
  gap: 8px;
}

/* ── ERROR MSG ── */
.error-msg {
  background: #fdecea;
  color: #c0392b;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

/* ── SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, #e8d5b8 25%, #f0e4d0 50%, #e8d5b8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
