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

body {
  background: #0e0e10;
  color: #e0e0e0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.left-panel {
  width: 520px;
  min-width: 520px;
  border-right: 1px solid #1e1e22;
  overflow-y: auto;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #111114;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e1e22;
}

.logo-area img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.logo-area .logo-text {
  display: flex;
  flex-direction: column;
}

.logo-area .logo-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.logo-area .logo-sub {
  font-size: 12px;
  color: #6b6b75;
  margin-top: 2px;
}

.welcome-text {
  font-size: 14px;
  line-height: 1.6;
  color: #8a8a96;
}

.welcome-text a {
  color: #0077c2;
  text-decoration: none;
}

.welcome-text a:hover {
  text-decoration: underline;
}

.goal-tracker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.goal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-preview-btn {
  padding: 6px 14px;
  background: #1a1a1f;
  border: 1px solid #2a2a30;
  border-radius: 8px;
  color: #6b6b75;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.goal-preview-btn:hover {
  border-color: #0077c2;
  color: #0077c2;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  background: #1a1a1f;
  border: 1px solid #2a2a30;
  border-radius: 50%;
  color: #e0e0e0;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-text {
  font-size: 14px;
  color: #e0e0e0;
  font-weight: 600;
}

.goal-text #goal-count {
  color: #0077c2;
}

.goal-bar {
  width: 100%;
  height: 6px;
  background: #1a1a1f;
  border-radius: 3px;
  overflow: hidden;
}

.goal-fill {
  height: 100%;
  background: #0077c2;
  border-radius: 3px;
  transition: width 0.6s ease;
  width: 0%;
}

.goal-label {
  font-size: 12px;
  color: #4a4a54;
}

.dev-team {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.dev-team-label {
  font-size: 12px;
  font-weight: 600;
  color: #4a4a54;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dev-team-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b6b75;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  padding: 0;
  transition: color 0.2s;
}

.dev-team-link:hover {
  color: #0077c2;
}

.dev-team-link svg {
  color: #3a3a44;
}

.dev-modal-card {
  background: #111114;
  border: 1px solid #2a2a30;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 400px;
  width: 90vw;
}

.dev-modal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0077c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
}

.dev-modal-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.dev-modal-role {
  font-size: 13px;
  color: #0077c2;
  margin-top: 4px;
}

.dev-modal-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #8a8a96;
  margin-top: 16px;
}

.dev-modal-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.dev-modal-link {
  font-size: 13px;
  color: #0077c2;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #2a2a30;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.dev-modal-link:hover {
  border-color: #0077c2;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: #1a1a1f;
  border: 1px solid #2a2a30;
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input::placeholder {
  color: #4a4a54;
}

.search-box input:focus {
  border-color: #0077c2;
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #4a4a54;
  pointer-events: none;
}

.students-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #4a4a54;
  padding-bottom: 8px;
}

.student-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.student-item {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.student-item:hover {
  background: #1a1a1f;
}

.student-name {
  font-size: 14px;
  font-weight: 500;
  color: #d0d0d6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-year {
  font-size: 12px;
  color: #4a4a54;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.student-url {
  font-size: 12px;
  color: #0077c2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.right-panel {
  position: fixed;
  left: 544px;
  right: 24px;
  top: 12px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #4a4a54;
}

.chart-box {
  flex: 1;
  border: 1px solid #2a2a30;
  border-radius: 12px;
  overflow: hidden;
  background: #111114;
}

#chart-container {
  width: 100%;
  height: 100%;
}

.left-panel::-webkit-scrollbar { width: 4px; }
.left-panel::-webkit-scrollbar-track { background: transparent; }
.left-panel::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 4px; }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .left-panel { width: 100%; min-width: 0; max-height: none; border-right: none; border-bottom: 1px solid #1e1e22; }
  .right-panel { position: relative; right: auto; bottom: auto; width: 100%; height: 50vh; }
}
