/* Premium visual layer for the main course site (dashboard, module, course
   details, FAQ and account pages). This file is linked AFTER each page's own
   <style> block, so these rules win on tied specificity and layer on top of
   the existing layout rather than replacing it. Nothing here changes layout
   (position/width/display), element IDs, or the colour palette — only
   typography, depth (gradients/shadows) and motion (transitions).

   To revert a page, remove its <link rel="stylesheet" href="components/premium.css">
   line — everything below only takes effect while that link is present. */

body,
input,
button,
select,
textarea {
  font-family: "Inter", Arial, sans-serif;
}

/* Subtle depth on the page background, same base grey as before */
body {
  background: radial-gradient(circle at 50% 0%, #3a3a3a 0%, #2b2b2b 70%, #262626 100%);
}

/* Fixed navigation bar: flat black, matching the logo's own black background */
.navbar {
  background: #000000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.45);
}

.navbar a,
.navbar button {
  border-radius: 8px;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.navbar a:hover,
.navbar button:hover {
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.14);
}

/* The logo is a plain image link with no border, so it shouldn't get the hover glow */
.navbar a.logo:hover {
  box-shadow: none;
}

/* Side panel of modules */
.sidebar {
  background: #000000;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.06), 10px 0 30px rgba(0, 0, 0, 0.35);
}

.sidebar summary {
  border-radius: 8px;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar summary:hover {
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.12);
}

/* Generic buttons and inputs across the course pages */
button {
  border-radius: 8px;
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

button:hover:not(:disabled) {
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.12);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

input,
select,
textarea {
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 138, 138, 0.14);
}

/* Footer bar */
.footer {
  background: linear-gradient(0deg, #0a0a0a 0%, #000000 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08), 0 -10px 24px rgba(0, 0, 0, 0.4);
}

/* Headings: a touch more presence, same white colour */
#dashboard h1 {
  letter-spacing: 0.3px;
}

/* Black bordered panels used throughout the course content and flowchart */
.flow-node,
.module-content pre,
.module-content .answer-box,
.module-content .flow,
.account-card h2 + p,
figure.screenshot {
  border-radius: 10px;
}

.flow-node,
.module-content .answer-box {
  background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.flow-node:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.module-content pre {
  background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

figure.screenshot img {
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

/* Error / success message boxes, same colours as the rest of the site */
.error {
  background: rgba(255, 138, 138, 0.06);
}

.success {
  background: rgba(126, 226, 160, 0.06);
}
