@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --sidebar-width: 260px;
}

* { box-sizing: border-box; transition: all 0.2s ease; }
html, body { height: 100%; margin: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  background: #0f172a;
  color: #f8fafc;
  height: 100vh;
  padding: 24px;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
}

.sidebar h3 { 
  font-size: 1.25rem; 
  margin-bottom: 2rem; 
  font-weight: 800; 
  letter-spacing: -0.025em;
  color: #fff;
}

.sidebar a { 
  color: #94a3b8; 
  text-decoration: none; 
  display: block; 
  margin: 4px 0; 
  padding: 12px 16px; 
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
}

.sidebar a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar a.active { background: var(--primary); color: #fff; }

.main-content { 
  flex: 1;
  margin-left: var(--sidebar-width); 
  padding: 32px; 
  min-height: 100vh; 
}

.navbar { 
  margin-bottom: 32px;
  background: var(--surface);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header { display: flex; justify-content: space-between; align-items: center; }
.header .title { font-size: 1.25rem; font-weight: 700; color: var(--text-main); }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }

.avatar {
  width: 40px; height: 40px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--primary), #818cf8);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border);
}

.container { max-width: 1100px; margin: 0 auto; }

.card { 
  background: var(--surface); 
  padding: 24px; 
  border-radius: var(--radius-lg); 
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.btn { 
  padding: 10px 20px; border-radius: var(--radius-md); border: none;
  cursor: pointer; font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; background: var(--primary); color: #fff;
}

.btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn.secondary { background: var(--surface); color: var(--text-main); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--bg); }

.badge { 
  padding: 4px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; 
  background: var(--bg); color: var(--text-muted);
}
.status-done { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }

input {
  width: 100%; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 16px; font-family: inherit;
}
input:focus { outline: 2px solid #6366f133; border-color: var(--primary); }

.site-footer { margin-top: 48px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 1024px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; padding: 16px; }
  .main-content { margin-left: 0; padding: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
}

.flex { display: flex; gap: 12px; align-items: center; }
.space-between { display: flex; justify-content: space-between; align-items: center; }
.muted { color: var(--text-muted); font-size: 0.9rem; }
.mb-0 { margin-bottom: 0; }