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

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --accent: #34d399;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --sidebar-dark: #0f172a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; width: 100%; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

.dashboard-wrapper { display: flex; min-height: 100vh; width: 100%; }
.sidebar { width: 280px; background: linear-gradient(180deg, var(--sidebar-dark) 0%, #1e293b 100%); color: white; padding: 30px 20px; position: fixed; height: 100vh; overflow-y: auto; box-shadow: 4px 0 12px rgba(0,0,0,0.1); }
.sidebar h1 { font-family: 'Poppins', sans-serif; font-size: 28px; margin-bottom: 40px; text-align: center; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.menu { list-style: none; margin-bottom: 40px; }
.menu li { margin-bottom: 12px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: rgba(255, 255, 255, 0.75); text-decoration: none; border-radius: 10px; transition: all 0.3s; border-left: 3px solid transparent; font-weight: 500; }
.menu a:hover { background: rgba(5, 150, 105, 0.2); color: white; border-left-color: var(--accent); }
.menu a.active { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; border-left-color: var(--accent); box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3); }

.sidebar-footer { position: absolute; bottom: 20px; width: calc(100% - 40px); }
.user-info { background: rgba(255, 255, 255, 0.1); padding: 15px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); }
.user-avatar { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; margin-bottom: 10px; }
.user-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.user-type { font-size: 12px; opacity: 0.8; }

.main-content { flex: 1; margin-left: 280px; display: flex; flex-direction: column; }
.topbar { background: white; padding: 24px 40px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 999; border-bottom: 2px solid var(--border); }
.topbar h1 { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 700; color: var(--text); margin: 0; }
.content-wrapper { flex: 1; padding: 40px; overflow-y: auto; }

.page-header { margin-bottom: 40px; }
.page-title { font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.page-subtitle { color: var(--text-light); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin-top: 28px; }
.card { background: var(--card-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid var(--border); transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; height: 100%; }
.card:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(5, 150, 105, 0.15); border-color: var(--primary); }

.card-image { height: 180px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); display: flex; align-items: center; justify-content: center; font-size: 64px; color: rgba(255, 255, 255, 0.3); }
.card-content { padding: 28px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-title { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.3; }

.card-info { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-light); margin-bottom: 10px; }
.card-info-icon { width: 20px; color: var(--primary); }

.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tag { background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(52, 211, 153, 0.08)); color: var(--primary); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid rgba(5, 150, 105, 0.2); white-space: nowrap; }

.card-status { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; background: rgba(5, 150, 105, 0.1); color: var(--primary); margin: 16px 0; width: fit-content; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.3s; text-decoration: none; width: 100%; text-align: center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 40px; }
.stat-card { background: var(--card-bg); padding: 28px; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid var(--border); border-top: 4px solid var(--primary); transition: all 0.3s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(5, 150, 105, 0.1); }
.stat-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: white; margin-bottom: 16px; }
.stat-number { font-family: 'Poppins', sans-serif; font-size: 40px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--text-light); font-weight: 500; }

@media (max-width: 768px) { .dashboard-wrapper { flex-direction: column; } .sidebar { width: 100%; height: auto; position: relative; margin-bottom: 20px; } .main-content { margin-left: 0; } .sidebar-footer { position: static; width: 100%; margin-top: 20px; } .content-wrapper { padding: 20px; } .grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr; } }