
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: #f4f6f9; }


.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}


.sidebar {
  background: #111827;
  color: #fff;
  padding: 1.5rem;
}
.sidebar .logo {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-align: center;
}
.sidebar nav ul { list-style: none; }
.sidebar nav ul li {
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s;
}
.sidebar nav ul li:hover, .sidebar nav ul li.active {
  background: #1f2937;
}


.main-content { padding: 1.5rem; }


.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.topbar input {
  padding: 0.5rem 1rem;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 20px;
}
.topbar .profile {
  background: #2563eb;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
}


.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
.card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.card p { font-size: 1.4rem; font-weight: bold; }


.chart-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.profile-window {
  position: fixed;
  top: 0;
  right: -350px;
  width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 16px rgba(0,0,0,0.12);
  z-index: 999;
  transition: right 0.35s cubic-bezier(.4,0,.2,1);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}
.profile-window:not(.hidden) {
  right: 0;
}
.profile-header {
  text-align: center;
  margin-bottom: 18px;
}
.profile-avatar-large {
  font-size: 64px;
  color: #007bff;
  margin-bottom: 12px;
}
.profile-role {
  color: #666;
  font-size: 1rem;
  margin-bottom: 8px;
}
.profile-bio {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 10px;
}
.profile-details {
  width: 100%;
  margin-bottom: 18px;
  font-size: 1rem;
  color: #444;
}
.close-profile-btn {
  width: 100%;
  margin-top: 10px;
}
.btn-homepage {
  margin-right: 16px;
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  background: #00c9a7;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-homepage:hover {
  background: #009e7a;
}


@media(max-width: 768px) {
  .dashboard { grid-template-columns: 70px 1fr; }
  .sidebar { padding: 1rem 0.5rem; }
  .sidebar .logo { display: none; }
  .sidebar nav ul li { text-align: center; padding: 0.8rem 0; }
  .topbar input { width: 150px; }

}
