﻿/* â”€â”€ Reset & base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  font-size: 15px;
  background: #f0f2f5;
  color: #222;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* â”€â”€ Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c4587;
  color: #fff;
  padding: 10px 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 0;
}
header h1 a            { color: rgba(255,255,255,0.65); font-weight: normal; }
header h1 a:hover      { color: #fff; }
header h1 .bc-sep      { color: rgba(255,255,255,0.35); margin: 0 6px; font-weight: normal; font-size: 13px; }
header h1 .bc-current  { color: #fff; font-weight: bold; }

.logout {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logout:hover { background: rgba(255,255,255,0.1); }

.app-version {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

/* kept for any remaining uses */
.back { font-size: 13px; color: rgba(255,255,255,0.85); }
.back:hover { color: #fff; }

/* â”€â”€ Semester switcher â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#semesterNav { flex: 1; display: flex; justify-content: center; }

.sem-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sem-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}

.sem-switcher select {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 5px 28px 5px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.7)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: background 0.15s, border-color 0.15s;
}
.sem-switcher select:hover    { background-color: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }
.sem-switcher select:focus    { border-color: rgba(255,255,255,0.7); }
.sem-switcher select option   { background: #1c4587; color: #fff; }
.sem-switcher select option:disabled { color: rgba(255,255,255,0.75); font-weight: 700; }
.sem-switcher select:disabled { opacity: 0.5; cursor: wait; }
.sem-none { font-size: 12px; color: rgba(255,255,255,0.4); }

.sync-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  width: 28px;
  height: 28px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.15s, border-color 0.15s, transform 0.2s;
  flex-shrink: 0;
}
.sync-btn:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  transform: rotate(30deg);
}
.sync-btn:disabled { opacity: 0.5; cursor: wait; }

/* â”€â”€ Module nav bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#appNav {
  display: flex;
  align-items: stretch;
  background: #163a73;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: var(--header-h, 46px);
  z-index: 99;
}
#appNav::-webkit-scrollbar { display: none; }

#appNav a {
  display: flex;
  align-items: center;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  margin-bottom: -1px;
}
#appNav a:hover  { color: #fff; background: rgba(255,255,255,0.06); }
#appNav a.active { color: #fff; border-bottom-color: #fff; background: rgba(255,255,255,0.08); }

/* â”€â”€ Main â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
main {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 24px;
}

/* â”€â”€ Dashboard home â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.home-welcome {
  padding: 32px 0 16px;
}
.home-welcome h2 {
  font-size: 22px;
  color: #1c4587;
  margin-bottom: 6px;
}
.home-welcome p {
  font-size: 14px;
  color: #64748b;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border-top: 3px solid #1c4587;
}
.stat-card .stat-value { font-size: 28px; font-weight: bold; color: #1c4587; line-height: 1; }
.stat-card .stat-label { font-size: 12px; color: #64748b; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.04em; }

/* â”€â”€ Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.panel {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.panel h2 { font-size: 18px; color: #1c4587; margin-bottom: 8px; }
.panel p  { font-size: 14px; color: #555; margin-bottom: 24px; line-height: 1.6; }

/* â”€â”€ Form â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.form-row label { font-size: 14px; min-width: 180px; }
.hint           { font-size: 12px; color: #888; }

input[type="number"] {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}
.btn-primary                    { background: #1c4587; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #163a73; }
.btn-primary:disabled           { opacity: 0.6; cursor: not-allowed; }
.btn-google {
  background: #fff; color: #444;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-weight: normal;
}
.btn-google:hover { background: #f7f7f7; }

/* â”€â”€ Status box â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.status-box {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 5px;
  font-size: 14px;
  border-left: 4px solid #888;
  background: #f5f5f5;
}
.status-box.hidden  { display: none; }
.status-box.success { border-color: #34a853; background: #f0faf3; color: #1a7a3a; }
.status-box.error   { border-color: #ea4335; background: #fdf3f2; color: #c0392b; }

/* â”€â”€ Login page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c4587;
}
.login-card {
  background: #fff;
  border-radius: 10px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 360px;
}
.login-card h1 { font-size: 20px; color: #1c4587; margin-bottom: 8px; }
.login-card p  { font-size: 14px; color: #666; margin-bottom: 32px; }


