:root {
  --bg: #0a0a0c;
  --surface: #141417;
  --surface-accent: #1c1c21;
  --primary: #c4ff4d;
  --primary-hover: #b0e645;
  --secondary: #8b5cf6;
  --text-main: #ffffff;
  --text-dim: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --font-display: 'Clash Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Navigation */
.nav-header {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--bg);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  padding: 0 12px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 4px;
}

.nav-item:hover {
  background: var(--surface-accent);
  color: var(--text-main);
}

.nav-item.active {
  background: var(--surface-accent);
  color: var(--primary);
}

.nav-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

/* Top Bar */
.top-bar {
  height: 80px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface-accent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  width: 400px;
  height: 44px;
}

.search-input {
  background: none;
  border: none;
  color: var(--text-main);
  margin-left: 12px;
  width: 100%;
  outline: none;
  font-size: 0.9rem;
}

/* Dashboard Content */
.content-wrapper {
  padding: 40px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: -0.03em;
}

.page-subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 20px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-trend {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.trend-up { background: rgba(196, 255, 77, 0.1); color: var(--primary); }
.trend-down { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Main Grid */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.section-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}

/* Visual Assets / Activity */
.activity-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.activity-item {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item:hover {
  background: var(--surface-accent);
}

.asset-preview {
  width: 48px;
  height: 48px;
  background: var(--surface-accent);
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}

.activity-details {
  flex: 1;
}

.activity-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.activity-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Progress Section */
.status-list {
  padding: 24px;
}

.status-item {
  margin-bottom: 24px;
}

.status-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.status-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.status-percent {
  color: var(--primary);
  font-weight: 600;
}

.progress-bar-bg {
  height: 8px;
  background: var(--surface-accent);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
}

/* Components */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-accent);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border-bright);
}

.badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-new { background: rgba(139, 92, 246, 0.2); color: var(--secondary); }
.badge-done { background: rgba(196, 255, 77, 0.2); color: var(--primary); }

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}

.placeholder-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
