:root {
  --accent: #00fff7;
  --accent2: #29aaff;
  --text: #e4e8f0;
  --modal-bg: rgba(22, 30, 60, 0.55);
  --modal-card-bg: rgba(24, 30, 50, 0.86);
  --radius: 26px;
}
body {
  background: linear-gradient(135deg, #131e3a 0%, #09111e 100%);
  color: var(--text);
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}
.layout {
  display: flex;
  min-height: 100vh;
}
nav {
  background: rgba(26,32,56,0.92);
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 #00fff743;
  margin: 32px 0 32px 32px;
  padding: 2.2em 1.1em 2.2em 1.1em;
  display: flex;
  flex-direction: column;
  gap: .9em;
  font-size: 1.07em;
  font-weight: 500;
  border: 2px solid #23305a;
  min-width: 210px;
  height: fit-content;
  position: sticky;
  top: 32px;
  z-index: 10;
}
nav a {
  color: var(--accent2);
  background: #181e32cc;
  padding: 0.6em 1em;
  border-radius: 10px;
  text-decoration: none;
  transition: background .22s, color .22s, box-shadow .2s;
  box-shadow: 0 0 0px 0 #00fff7;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: .01em;
  display: block;
}
nav a:hover, nav a.active {
  background: linear-gradient(90deg, #00fff7 0%, #29aaff 100%);
  color: #13213b;
  box-shadow: 0 0 18px #00fff7;
  font-weight: 700;
}
.quiz-nav-btn {
  display: none;
}
@media (max-width:600px) {
  .quiz-nav-btn {
    display: block;
    background: linear-gradient(90deg,#00fff7 0%,#29aaff 100%);
    color: #13213b;
    font-weight: 700;
    padding: 0.6em 1em;
    border-radius: 10px;
    font-size: 1em;
    text-decoration: none;
    box-shadow: 0 2px 10px #00fff72a;
    margin-top: 1.2em;
    text-align: center;
  }
  .quiz-nav-btn i { margin-right: 0.5em;}
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 18px 120px 18px;
  flex: 1;
  min-width: 0;
}
header h1 {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2.7em;
  color: var(--accent);
  letter-spacing: .06em;
  margin: 0 0 0.3em 0;
  text-shadow: 0 0 18px var(--accent2), 0 0 6px #173c6e;
  display: flex;
  align-items: center;
  gap: 0.47em;
}
header span {
  font-size: 1.12em;
  color: var(--accent2);
  font-family: 'Roboto Mono', 'Fira Mono', monospace;
  letter-spacing: .13em;
  font-weight: 700;
  margin-top: 0.2em;
}

/* DASHBOARD STYLES */
.dashboard {
  background: rgba(22, 30, 60, 0.70);
  box-shadow: 0 4px 24px #29aaff33;
  border-radius: 22px;
  margin-bottom: 2.5em;
  padding: 1.7em 2em 1.5em 2em;
}
.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2em;
}
.dashboard-welcome h2 {
  font-family: 'Orbitron', Arial, sans-serif;
  color: var(--accent2);
  margin: 0 0 0.2em 0;
}
.dashboard-welcome p {
  color: #d8f3ff;
  margin: 0;
}
.dashboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #121a2a;
  border: 2px solid var(--accent2);
  object-fit: cover;
}
.dashboard-widgets {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
}
.dashboard-widget {
  background: rgba(18, 24, 42, 0.97);
  border-radius: 14px;
  padding: 1em 1.3em;
  min-width: 140px;
  margin-bottom: 1em;
  box-shadow: 0 2px 10px #29aaff14;
  flex: 1 1 160px;
}
.widget-title {
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 0.3em;
  font-size: 1em;
}
.widget-value {
  font-size: 1.2em;
  color: var(--accent);
  margin-bottom: 0.2em;
}
.widget-bar {
  width: 100%;
  height: 7px;
  background: #22304d;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 0.5em;
}
.widget-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00fff7, #29aaff);
  border-radius: 6px;
  width: 0;
  transition: width 0.5s;
}

/* Features Row */
.dashboard-features {
  display: flex;
  gap: 1.1em;
  margin-bottom: 1.5em;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.dashboard-feature {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: #161e2fdd;
  color: var(--accent2);
  font-weight: 600;
  padding: 0.43em 1.1em 0.43em 0.85em;
  border-radius: 13px;
  font-size: 1.01em;
  box-shadow: 0 1px 8px #00fff72a;
  transition: background .2s, color .2s;
}
.dashboard-feature i {
  font-size: 1.15em;
  color: var(--accent);
}
.dashboard-feature:hover {
  background: linear-gradient(90deg,#00fff7 0%,#29aaff 100%);
  color: #141d2b;
}

/* Announcements Section */
.dashboard-announcements {
  background: #181e2b;
  border-radius: 15px;
  margin: 1.7em 0 1em 0;
  padding: 1em 1.3em 1em 1.1em;
  box-shadow: 0 2px 14px #00fff712;
  color: var(--accent2);
}
.announcements-title {
  font-weight: 700;
  margin-bottom: 0.5em;
  font-size: 1.07em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.dashboard-announcements ul {
  margin: 0;
  padding: 0 0 0 1.2em;
  color: #e4e8f0;
  font-size: 0.98em;
}
.dashboard-announcements li {
  margin-bottom: 0.4em;
}

/* Search Box */
.dashboard-searchbox {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 1.2em 0 1.2em 0;
}
.dashboard-searchbox input {
  padding: 0.5em 1em;
  border: 1.5px solid #28324a;
  border-radius: 9px;
  font-size: 1.08em;
  outline: none;
  background: #141d2b;
  color: var(--accent);
  flex: 1 0 120px;
  transition: border .18s;
}
.dashboard-searchbox input:focus {
  border: 1.5px solid var(--accent2);
}
.dashboard-searchbox button {
  padding: 0.5em 1em;
  border-radius: 9px;
  background: linear-gradient(90deg, #00fff7, #29aaff);
  color: #13213b;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.08em;
  box-shadow: 0 1px 7px #00fff74a;
  transition: filter .18s;
}
.dashboard-searchbox button:hover { filter: brightness(1.12); }

/* Goal Card */
.dashboard-goal {
  margin-top: 0.7em;
  background: linear-gradient(90deg,#00fff733 0%,#29aaff33 100%);
  border-radius: 13px;
  padding: 0.8em 1.1em;
  font-size: 1.13em;
  color: var(--accent2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75em;
  box-shadow: 0 2px 14px #00fff717;
}
.dashboard-goal i {
  color: var(--accent);
  font-size: 1.3em;
}
/* Quiz Button styles */
.dashboard-quiz-btn-row {
  margin: 2em 0 0.2em 0;
  text-align: center;
}
.dashboard-quiz-btn {
  display: inline-block;
  background: linear-gradient(90deg,#00fff7 0%,#29aaff 100%);
  color: #13213b;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  padding: 0.8em 2.4em;
  border-radius: 13px;
  font-size: 1.18em;
  text-decoration: none;
  box-shadow: 0 2px 14px #00fff72a;
  transition: filter .15s, box-shadow .15s;
  border: none;
  margin-top: 0.2em;
}
.dashboard-quiz-btn i {
  margin-right: 0.5em;
}
.dashboard-quiz-btn:hover {
  filter: brightness(1.09);
  box-shadow: 0 4px 22px #29aaff44;
}
@media (max-width:900px) {
  .dashboard-quiz-btn-row { margin-top: 1em; }
}
@media (max-width:600px) {
  .dashboard { padding: 1.1em 0.4em 1em 0.7em;}
  .dashboard-widgets { flex-direction: column; gap:0.7em;}
  .dashboard-widget { min-width: 0; padding: 0.7em 0.8em;}
  .modal-card { padding: 1.2em 0.6em 1.2em 0.9em; max-width:98vw;}
  .modal-content h2 { font-size:1.1em;}
  .modal-content img { width: 60px; height: 60px;}
  .dashboard-features { gap:0.4em; flex-wrap: wrap;}
  .dashboard-feature { font-size:.94em; padding:.32em .7em .32em .5em;}
  .dashboard-quiz-btn-row { margin: 1em 0 0.1em 0;}
  .dashboard-quiz-btn { width: 100%; font-size: 1em;}
}

/* MODAL STYLES */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: var(--modal-bg);
  backdrop-filter: blur(7px) saturate(160%);
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn {
  from { opacity: 0;}
  to { opacity: 1;}
}
.modal-card {
  background: var(--modal-card-bg);
  border-radius: var(--radius);
  box-shadow: 0 16px 60px 0 #29aaff7a, 0 0 44px 0 #00fff7a0;
  padding: 2.5em 2.2em 2em 2.2em;
  max-width: 470px;
  width: 95vw;
  position: relative;
  border-left: 8px solid var(--accent2);
  filter: drop-shadow(0 0 40px #00fff7bb);
  animation: modalPop .38s cubic-bezier(.25,1.2,.25,1) both;
}
@keyframes modalPop {
  from { transform: scale(0.89) translateY(60px); opacity:0;}
  to   { transform: scale(1) translateY(0); opacity:1;}
}
.modal-content h2 {
  font-family: 'Orbitron', Arial, sans-serif;
  color: var(--accent2);
  font-size: 1.38em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0;
}
.modal-content img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 1em 0 0.7em 0;
  background: #151d2b;
  border-radius: 13px;
  box-shadow: 0 0 24px #00fff7aa;
}
.modal-content p, .modal-content ul, .modal-content ol {
  font-size: 1.1em;
  line-height: 1.7;
  margin: 0.2em 0 0.5em 0;
}
.modal-content ul, .modal-content ol {
  margin-left: 1.3em;
}
.modal-close {
  position: absolute;
  top: 0.9em;
  right: 1.15em;
  font-size: 2.1em;
  color: var(--accent2);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  opacity: 0.8;
  transition: color 0.16s, opacity .2s;
  z-index: 2000;
}
.modal-close:hover {
  color: var(--accent);
  opacity: 1;
}