@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* =======================
   GENERAL PAGE STYLES
======================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  background-image: url('../images/hs_chalkboard.jpg');
  background-size: cover;  /* Width auto, height 100% of viewport */
  background-attachment: fixed;      /* Fix the background image */
  background-position: bottom right;    /* Position at bottom left */
  background-repeat: no-repeat;       /* Don't repeat the image */
  color: white;
  max-width: 100%;
  text-align: left;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;  /* Add this - dynamic viewport height for mobile */
}

a {
  text-decoration: none;
}

h1, h2, .days-left, .days-banner {
  font-family: "Caveat", sans-serif;
  text-align: center;
}

h1 {
  margin-top: 20px;
  color: white;
}

h2 {
  color: yellow;
}

h3 {
  text-align: center;
  color: lightblue;
}

p {
  text-align: left;
}

.small-text {
  font-size: 12px;
  color: #667;
}

.page-wrapper {
  position: relative;
  padding: 0 10px;
  padding-bottom: 50px; /* Space for footer */
}

/* ---------------
   LOGO STYLES
--------------- */
.site-logo {
  height: 100px;
  width: auto;
  display: block;
  margin: 0;
}

/* ------------------------------
   ATTENDANCE PAGE STYLES
------------------------------ */

.centered {
  text-align: center; 
}

.message_success {
  font-family: "Caveat", sans-serif;
  font-size: x-large;
  font-weight: bold;
  text-align: center;
  color: lightgreen
}

.hr-message{
  width: 50%;
  border: none;
  height: 2px;
  background-color: lightgreen
}

.has-data {
  background-color: lightgreen;
  color: black;
}

.entered {
  margin: 0;
  font-style: italic;
  color: black;
} 

/* -----------------------
   CONTENT FADE EFFECT
------------------------ */
.main-data {
  padding-top: 110px; /* Space for fixed header */
  padding-left: 10px;
  padding-right: 10px;
}

/* ---------------
   TABLE STYLES
--------------- */
table {
  text-align: left;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  border-collapse: collapse;
}

th, td {
  border: 1px solid lightblue;
  padding: 8px 10px;
}

th {
  color: lightsalmon;
}


/* -----------------------
   FOOTER STYLES
------------------------ */
footer {
  position: fixed;
  color: white;
  background-color: #1a1a1a;  /* Fallback */
  background-image: url('../images/hs_board.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  left: 0;
  bottom: 0;
  width: 100%;
  vertical-align: middle;
  z-index: 1100;
  height: 40px;
}

footer a {
  text-decoration: none;
}

footer p {
  font-size: 0.75em;
  text-align: center;
  font-family: 'Raleway', sans-serif;
}

footer img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* -----------------------
   MOBLE DAYS BANNER
------------------------ */
.days-banner {
    display: block;  /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(26,26,26,0.9); /* Semi-transparent dark */
    color: lightgreen;
    text-align: center;
    padding: 5px 0; /* Vertical padding */
    margin: 0;
    border-bottom: 2px solid lightgreen;
    z-index: 1002; /* Above all other content */
    font-weight: bold;
    font-size: 1em;
}

.days-left {
  display: none;;
}

/* -----------------------
   FIXED HEADER CONTAINER
------------------------ */
.fixed-header {
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(26,26,26,0.7);
  display: grid;
  grid-template-columns: auto 1fr auto; /* Logo, header, nav */
  /* grid-template-rows: auto; */
  align-items: center;
  gap: 20px;
  padding: 10px 15px;
  border-left: 1px solid lightgreen;
  border-bottom: 1px solid lightgreen;
}



/* ---------------------------
   CENTER HEADER STYLES
---------------------------- */
.page-header {
  text-align: center;
  padding: 0;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-top {
  text-align: center;
  width: 100%;
}

.page-header h1 {
  margin: 0;
  font-size: 1.8em;
  line-height: 1.2;
  display: block;
}

.page-header h2 {
  margin: 0;
  font-size: 1.2em;
  color: yellow;
  line-height: 1.2;
}

.page-header h3, .navlink {
  color: lightblue;
  margin: 5px 0 0 0;
  font-size: 0.9em;
  line-height: 1.2;
}

.school-name {
  margin: 5px 0 0 0;
  font-size: 1.1em;
  color: yellow;
  line-height: 1.2;
  display: block;
}

/* -------------------------
   DESKTOP NAVIGATION
-------------------------- */
.desktop-menu {
  list-style: none;
  padding: 0 0 0 15px;
  margin: 0;
  text-align: right;       /* align items to the right */
  z-index: 1001;          /* ensure it stays above other content */
  border-left: 4px solid yellow;
  font-family: "Caveat", sans-serif;
}

.desktop-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-menu li {
  display: block;
  margin: 3px 0;
  position: relative
}

.desktop-menu a,
.desktop-menu .logout-button {
  position: relative;
  text-decoration: none;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  background: linear-gradient(to right, lightblue 50%,  yellow 50%);
  background-size: 200% 100%;
  background-position: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s ease;
  display: block;
  padding: 3px 0;
  line-height: 1.2;
}

.desktop-menu a:hover {
  background-position: 0%;
}

.desktop-menu .logout-button {
  border: none;
  font-family: "Caveat", sans-serif;
  cursor: pointer;
  text-align: right;
  width: 100%;
  margin: 0;
}

/* -------------------------------
   DROPDOWN MENU STYLES
------------------------------- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute;
  left: -150px; /* Shift left to align under "Toolkit" */
  top: 0;
  background-color: rgba(26,26,26,0.95); /* Semi-transparent dark */
  border: 2px solid yellow;
  border-radius: 4px;
  padding: 10px;
  min-width: 150px;
  z-index: 1002; /* Above all other content */
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 5px 10px;
  white-space: nowrap;
  font-size: 1em;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* --------------------------------
   HAMBURGER MENU BUTTON
-------------------------------- */
.hamburger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1003; /* Above all other content */
}

.hamburger-menu span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background-color: yellow;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

/* ------------------------
   MOBILE MENU STYLES
------------------------ */

.mobile-menu {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26,26,26,0.98); /* Semi-transparent dark */
  padding: 80px 30px 30px;
  z-index: 1002; /* Above all other content */
  overflow-y: auto;
  font-family: "Caveat", sans-serif;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin: 20px 0;
}

.mobile-menu a,
.mobile-menu .logout-button {
  font-size: 1.5em;
  color: yellow;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(173, 216, 230, 0.2);
  transition: color 0.3s ease;
}

.mobile-menu a:active,
.mobille-menu .logout-button:active {
  color: yellow;
}

.mobile-menu .logout-button {
  background: none;
  border: none;
  font-family: "Caveat", sans-serif;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

/* -------------------------------
   HOME DASHBOARD STYLES
------------------------------- */

.home-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-section {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid lightblue;
    border-radius: 12px;
    padding: 30px;
    margin-top: 10px;
}

.dashboard-section h2 {
    color: yellow;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2em;
}

/* Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(173, 216, 230, 0.1);
    border: 2px solid lightblue;
    border-radius: 8px;
    padding: 5px;
    margin: 5px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: yellow;
}

.stat-card.highlight {
    border-color: lightgreen;
    background: rgba(144, 238, 144, 0.1);
}

.stat-label {
    color: lightsalmon;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-number {
    color: yellow;
    font-size: 3em;
    font-weight: bold;
    font-family: "Caveat", sans-serif;
}

.stat-card.highlight .stat-number {
    color: lightgreen;
}

.stat-date {
    color: yellow;
    font-size: 1.5em;
    font-weight: bold;
    font-family: "Caveat", sans-serif;
}

/* Students Overview */
.students-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.student-card {
    background: rgba(144, 238, 144, 0.1);
    border: 2px solid lightgreen;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

.student-card:hover {
    transform: translateX(5px);
    border-color: yellow;
}

.student-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.student-name {
    color: yellow;
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    background: none;
}

.student-grade {
    color: lightgreen;
    font-size: 0.9em;
}

.student-stats {
    text-align: right;
}

.days-attended {
    color: lightblue;
    font-size: 1.1em;
    font-weight: bold;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-button {
    background: rgba(173, 216, 230, 0.2);
    border: 3px solid lightblue;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-button:hover {
    transform: translateY(-5px);
    border-color: yellow;
    background: rgba(173, 216, 230, 0.3);
}

.action-button.primary {
    background: rgba(173, 216, 230, 0.3);
    border-color: yellow;
}

.action-button.primary:hover {
    background: rgba(255, 255, 0, 0.2);
}

.action-icon {
    font-size: 3em;
}

.action-text {
    color: black;
    font-size: 1.2em;
    font-weight: bold;
    font-family: "Caveat", sans-serif;
}

/* Recent Activity */
.recent-activity {
    max-width: 600px;
    margin: 0 auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(144, 238, 144, 0.05);
    border-left: 4px solid lightgreen;
    border-radius: 4px;
    margin-bottom: 10px;
}

.activity-date {
    color: lightblue;
    font-weight: bold;
}

.activity-status {
    color: lightgreen;
}

.no-activity {
    text-align: center;
    color: #999;
    font-style: italic;
}

.no-activity a {
    color: lightblue;
    text-decoration: underline;
}

/* Welcome Message */
.welcome-message {
    background: rgba(26, 26, 26, 0.8);
    border: 3px solid yellow;
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    max-width: 600px;
    margin: 50px auto;
}

.welcome-message h2 {
    color: yellow;
    margin-top: 0;
}

.welcome-message p {
    color: lightblue;
    font-size: 1.2em;
    margin-bottom: 30px;
    text-align: center;
}


/* -----------------------
   CALENDAR STYLES
------------------------ */
.calendar-container {
  max-width: 1200px;
  margin: 10px auto 0 auto;
  padding: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar {
  width: 100%;
}

.calendar-header h2 {
  margin: 0;
}

.nav-arrow {
  text-decoration: none;
  color: white;
  padding: 10px 15px;
  border-radius: 4px;
}

.nav-arrow:hover {
  background-color: lightblue;
  color: yellow
}

.nav-arrow.disabled {
    color: #999;
    pointer-events: none;
    text-decoration: none;
    cursor: default;
}

.calendar-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
  font-weight: bold;
  text-align: center;
}

.day-header {
  padding: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  min-height: 100px;
  padding: 8px;
  border: 1px solid #ddd;
}

.calendar-day.other-month {
  background-color: #f9f9f9;
  opacity: 0.5;
}

.calendar-day.today {
  background-color: lightyellow;
  border: 2px solid yellow;
}

.calendar-day.weekend {
  background-color: #f8f9fa;
}

.day-number {
    font-weight: bold;
    color: lightsalmon;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Attendance List */
.attendance-list {
    font-size: 12px;
}

.student-name {
    padding: 2px 4px;
    margin: 2px 0;
    background-color: lightgreen;
    border-radius: 3px;
    color: black;
}

.holiday-name {
  font-size: 10px;
  font-style: italic;
  color: black;
  padding: 2px 4px;
  margin: 2px 0 4px 0;
  background-color: #fff3cd;
  border-radius: 3px;
}

.calendar-grid-view{
  display: block;
}

.calendar-list-view {
  display: none;
}

/* ------------------------
CALENDAR EDIT STYLES
-------------------------*/
/* Edit page specific styles */
.student-checkbox-list {
    margin-top: 8px;
}

.student-checkbox-item {
    margin: 4px 0;
    font-size: 12px;
}

.student-checkbox-item label {
    display: flex;
    color: black;
    align-items: center;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
}

.student-checkbox-item label.has-data {
    background-color: lightgreen;
    color: black;
}

.student-checkbox-item input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
}

.save-button-container {
    text-align: center;
    margin: 10px 0;
    padding: 20px;
}

/* List view checkbox styles */
.list-student-checkboxes {
    margin-top: 10px;
}

.list-student-checkboxes .student-checkbox-item {
    margin: 6px 0;
    font-size: 14px;
}

.list-student-checkboxes label.has-data {
    background-color: lightgreen;
    color: black;
    padding: 4px 8px;
    border-radius: 3px;
}

.bulk-select-container {
  text-align: right;
  margin-bottom: 15px;
  padding: 0 20px;
}

.day-select-all {
  display: none; /* Hidden until bulk mode enabled */
  margin: 4px 0;
  width: 100%;
}

/* -------------------------
   CALENDAR LIST VIEWS
------------------------- */
.list-day-item {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
}

.list-day-item.today {
    background-color: lightyellow;
    border-color: yellow;
}

.list-day-item.holiday {
    border-left: 4px solid #ffc107;
}

.list-day-header {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
    color: black;
}

.list-holiday {
    color: black;
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    margin: 2px 0 4px 0;
    font-size: 10px;
    font-style: italic;
}

.list-attendance {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}

.list-student {
    color: black;
    background-color: lightgreen;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
    margin: 2px 0;
}

.list-no-attendance {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* -------------------------
   SETUP WIZARD STYLES
---------------------------*/

.setup-container {
  max-width: 600px;
  margin: 20px auto;
}

.setup-container--wide {
  max-width: 900px;
}

.setup-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 10px;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #999;
    font-size: 0.9em;
}

.progress-step.active {
    background-color: lightblue;
    color: black;
    font-weight: bold;
}

.setup-card {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid lightblue;
}

.setup-card h2 {
    color: yellow;
    margin-top: 0;
    text-align: center;
}

.setup-card > p {
    text-align: center;
    color: lightblue;
    margin-bottom: 30px;
}

.setup-form {
    max-width: 100%;
}

.students-list {
    background-color: rgba(173, 216, 230, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px solid lightgreen;
}

.students-list h3 {
    color: lightgreen;
    margin-top: 0;
    text-align: left;
}

.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: lightgreen;
    color: black;
    border-radius: 6px;
    margin-bottom: 10px;
}

.student-name {
    font-weight: bold;
}

.student-grade {
    font-size: 0.9em;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    color: lightsalmon;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 2px solid lightblue;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    font-size: 1em;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: yellow;
    background-color: white;
}

.form-group small {
    display: block;
    color: #999;
    margin-top: 5px;
    font-size: 0.85em;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.review-section {
    background-color: rgba(173, 216, 230, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid lightblue;
}

.review-section h3 {
    color: lightsalmon;
    margin-top: 0;
    text-align: left;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(173, 216, 230, 0.2);
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    color: lightblue;
    font-weight: bold;
}

.review-value {
    color: white;
}

.progress-step.completed {
    background-color: lightgreen;
    color: black;
}

/* ---------------------
   HELP PAGE STYLES
----------------------*/

/* Scroll offset to account for the fixed header */
:target {
  scroll-margin-top: 225px;
}

/* Clean, readable help page */
.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px 20px;
}

/* Table of contents */
.help-toc {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid lightblue;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
}

.help-toc h3 {
  color: yellow;
  text-align: center;
  margin-top: 0;
  margin-bottom: 40px;
}

.help-toc ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 0;
}

.help-toc li {
  text-align: center;
}

.help-toc a {
    color: lightsalmon;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}

.help-toc a:hover {
  color: yellow;
  text-decoration: underline;
}

/* Help Sections */
.help-section {
  margin-bottom: 30px;
  padding: 30px;
  border: 1px solid lightblue;
  /* border-bottom: 3px solid rgba(173, 216, 230, 0.3);*/ 
  background: rgba(26, 26, 26, 0.9);
  border-radius: 12px;
}

.help-section:last-child {
  border-bottom: none;
}

.help-section h2 {
    color: yellow;
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.help-section h3 {
    color: lightsalmon;
    font-size: 1.5em;
    margin: 30px 0 15px;
}

.help-intro {
  text-align: center;
  font-size: 1.2em;
  color: lightblue;
  margin-bottom: 40px;
}

/* -----------------------------------------
   ALTERNATING SCREENSHOT LAYOUT
----------------------------------------- */

/* Two-column grid for screenshot and text */
.help-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
  text-align: left; /* This overrides center alignment from the .help-section */
}

/* Screenshot on left, text on right */
.help-row.left .help-screenshot-col {
  order: 1;
}

.help-row.left .help-text-col {
  order: 2;
}

/* Screenshot on right, text on left */
.help-row.right .help-text-col {
  order: 1;
}

.help-row.right .help-screenshot-col {
  order: 2;
}

/* Screenshot Column */
.help-screenshot-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.help-screenshot {
  max-width: 100%;
  width: 100%;
  height: auto;
  border: 1px solid lightblue;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.help-screenshot:hover {
  transform: scale(1.02);
  border-color: yellow;
}

/* Text Column */
.help-text-col {
  padding: 10px;
}

.help-text-col h3 {
  color: lightsalmon;
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 15px;
}

.help-text-col p {
  color: white;
  line-height: 1.6;
  margin-bottom: 15px;
}

.help-text-col ul,
.help-text-col ol {
  color: white;
  line-height: 1.8;
  margin-left: 20px;
  margin-bottom: 15px;
}

.help-text-col li {
  margin-bottom: 8px;
}

.help-text-col strong {
  color: lightblue;
}

/* Steps Boxes */
.help-steps {
  background: rgba(173, 216, 230, 0.1);
  padding: 20px;
  border-left: 4px solid lightblue;
  border-radius: 4px;
  margin: 20px 0;
  color: white;
}

/* Tip Boxes */
.help-tip {
    background: rgba(144, 238, 144, 0.1);
    padding: 15px 20px;
    border-left: 4px solid lightgreen;
    border-radius: 6px;
    margin: 20px 0;
    color: white;
}

.help-tip strong {
  color: lightgreen;
}

/* Back to the Top Link */
.to-toc {
  text-align: center !important;
  color: lightsalmon;
  margin-top: 30px;
  display: block;
  width: 100%;
  font-size: 0.9em;
}

.to-toc:hover {
  color: yellow;
  text-decoration: underline;
}

/* ------------------------
   FAQ SECTION STYLES
------------------------ */
.faq-item {
  background: rgba(173, 216, 230, 0.05);
  border-left: 4px solid lightblue;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  text-align: left;
}

.faq-item h3 {
  color: lightsalmon;
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

.faq-item p {
  color: white;
  margin: 0;
  line-height: 1.6;
}

/* ----------------------
   CONTACT SECTION
---------------------- */
.contact-box {
  background: rgba(173, 216, 230, 0.1);
  border: 3px solid lightblue;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.contact-box h3 {
  color: yellow;
  font-size: 2em;
  margin-top: 0;
  margin-bottom: 15px;
}

.contact-box p {
  color: white;
  line-height: 1.6;
}

.contact-info {
  margin: 30px 0;
}

.contact-info p {
  font-size: 1.1em;
  margin: 15px 0;
}

.contact-info a {
  color: lightblue;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  color: yellow;
  text-decoration: underline;
}

/* --------------------------------------
     STANDARDIZED BUTTON STYLES
-------------------------------------- */
.btn-primary {
  background-color: lightblue;
  color: black;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s, transform 0.2s;
  font-family: "Raleway", sans-serif;
}

.btn-primary:hover {
  background-color: yellow;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0)
}

.btn-secondary {
  background-color: rgba(173, 216, 230, 0.3);
  color: lightblue;
  border: 2px solid lightblue;
  padding: 10px 25px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  font-family: "Raleway", sans-serif;
}

.btn-secondary:hover {
  background-color: rgba(173, 216, 230, 0.5);
  border-color: yellow;
  color: yellow;
}

.btn-link {
  background: none;
  border: none;
  color: lightblue;
  text-decoration: none;
  font-size: 0.9em;
  cursor: pointer;
  transition: color 0.3s;
  display: inline-block;
  padding: 5px 0;
}

.btn-link:hover {
  color: yellow;
  text-decoration: underline;
}

.btn-large {
  font-size: 1.3em;
  padding: 15px 40px;
}

.btn-small {
  font-size: 0.9em;
  padding: 8px 20px;
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}

/* --------------------------
   LOADING SPINNER
-------------------------- */
/* Hide button text when loading */
.btn-primary.loading,
.btn-secondary.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: not-allowed;
}

/* Spinner animation */
.btn-primary.loading::after,
.btn-secondary.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Disabled state */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -----------------------------
   PASSWORD RESET STYLES
----------------------------- */

.password-reset-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.8);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid lightblue;
}

.password-reset-container--wide {
  max-width: 900px;
}

.password-reset-container.success {
    border-color: lightgreen;
}

.password-reset-container h2 {
    color: yellow;
    text-align: center;
    margin-top: 0;
}

.password-reset-container.success h2 {
    color: lightgreen;
}

.password-reset-container p {
    text-align: center;
    color: white;
    margin: 20px 0;
}

.password-reset-container p.subtitle {
    color: lightblue;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.password-reset-form .form-group {
    margin-bottom: 20px;
}

.password-reset-form label {
    display: block;
    color: lightsalmon;
    font-weight: bold;
    margin-bottom: 5px;
}

.password-reset-form input {
    width: 100%;
    padding: 10px;
    border: 2px solid lightblue;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    font-size: 1em;
    box-sizing: border-box;
}

.password-reset-form input:focus {
    outline: none;
    border-color: yellow;
    background: white;
}

.password-reset-form small {
    display: block;
    color: #ccc;
    margin-top: 5px;
    font-size: 0.85em;
}

.password-reset-form .button-container {
    text-align: center;
    margin-top: 30px;
}

.password-reset-container .back-link {
    text-align: center;
    margin-top: 20px;
}

.password-reset-error {
    border-color: tomato;
}

.password-reset-error h2 {
    color: tomato;
}

/* ----------------------------
   SUBJECT MANAGEMENT
---------------------------- */

.subjects-container {
    max-width: 600px;
    margin: 0 auto;
}

.subjects-container--wide {
  max-width: 900px;
}

.page-actions {
    text-align: right;
    margin-bottom: 30px;
}

.subjects-list {
    display: grid;
    gap: 15px;
}

.subject-card {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid lightblue;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
}

.subject-card:hover {
    transform: translateX(5px);
    border-color: yellow;
}

.subject-info {
    flex: 1;
}

.subject-name {
    color: yellow;
    font-size: 1.5em;
    margin: 0 0 5px 0;
}

.subject-stats {
    color: lightblue;
    margin: 0;
    font-size: 0.9em;
}

.subject-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Form Container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid lightblue;
    border-radius: 12px;
    padding: 30px;
}

.form-container--wide {
  max-width: 900px;
}

.subject-form .form-group {
    margin-bottom: 20px;
}

.subject-form label {
    display: block;
    color: lightsalmon;
    font-weight: bold;
    margin-bottom: 8px;
}

.subject-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid lightblue;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    font-size: 1em;
    box-sizing: border-box;
}

.subject-form input:focus {
    outline: none;
    border-color: yellow;
    background: white;
}

.subjects-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.checkbox-label:hover {
  background-color: rgba(173, 216, 230, 0.1);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: lightblue;
}

.help-text {
    display: block;
    color: #ccc;
    font-size: 0.85em;
    margin-top: 5px;
}

.form-errors {
    background: rgba(255, 99, 71, 0.2);
    border: 2px solid tomato;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.form-errors .error {
    color: tomato;
    margin: 5px 0;
}

/* ------------------------
  GRADE ENTRY STYLES
------------------------ */
.grade-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.grade-entry-col {
  display: flex;
  flex-direction: column;
}

.grades-form textarea {
  width: 100%;
  height: 80px;
  padding: 10px;
  border: 2px solid lightblue;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: black;
  font-size: 1em;
  box-sizing: border-box;
  resize: vertical;
  font-family: "Raleway", sans-serif;
}

.grades-form textarea:focus {
  outline: none;
  border-color: yellow;
  background: white;
}

.grades-form select,
.grades-form input[type="number"],
.grades-form input[type="date"],
.grades-form input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 2px solid lightblue;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    font-size: 1em;
    box-sizing: border-box;
    font-family: "Raleway", sans-serif;
}

.grades-form select:focus,
.grades-form input[type="number"]:focus,
.grades-form input[type="date"]:focus,
.grades-form input[type="text"]:focus {
    outline: none;
    border-color: yellow;
    background: white;
}

.grades-concise {
  display: block;
}

.grades-detail {
  display: none;
}

/* Confirmation/Warning Boxes */
.confirmation-container {
    max-width: 600px;
    margin: 50px auto;
}

.confirmation-container--wide {
  max-width: 900px;
}

.warning-box,
.delete-confirmation {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid lightblue;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.warning-box {
    border-color: tomato;
}

.warning-box h3 {
    color: tomato;
    margin-top: 0;
}

.delete-confirmation h3 {
    color: yellow;
    margin-top: 0;
}

.warning-text {
    color: tomato;
    font-weight: bold;
    font-style: italic;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px dashed lightblue;
    border-radius: 12px;
}

.empty-state h3 {
    color: yellow;
    margin-top: 0;
}

.empty-state p {
    color: lightblue;
    margin-bottom: 30px;
}

/* Button Sizes */
.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

/* -----------------
   TIMERS STYLES
------------------ */
.timer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.student-timer {
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid lightblue;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  position: relative;
}

.student-timer:hover {
  border-color: yellow;
}

.student-name-timer {
  color: yellow;
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
  background: none !important;
  padding: 0;
}

.subject-label {
  color: lightblue;
  font-size: 1.1em;
  margin: 10px 0 20px 0;
  text-align: center;
  min-height: 1.5em;;
}

.ring-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 20px auto;
}

.progress-ring circle {
  fill: none;
  stroke-width: 10;
}

.ring-bg {
  stroke: rgba(173, 216, 230, 0.3);
}

.ring-fill {
  stroke: lightgreen;
  stroke-dasharray: 439.6;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke 0.3s, stroke-dashoffset 0.5s linear;
}

.timer-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Caveat", monospace;
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  pointer-events: none;
}

.warning .ring-fill {
  stroke: yellow; 
}

.critical .ring-fill {
  stroke: red; 
}

.finished .ring-fill {
  stroke: red; 
  animation: flash 1s infinite;
}

.finished .student-card {
  border-color: red
}

.controls button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.pause-btn {
  background: yellow;
  color: black;
}

.pause-btn:hover {
    background: lightblue;
    transform: translateY(-2px); 
}

.reset-btn {
  background: lightblue;
  color: black;
}

.reset-btn:hover {
  background: lightgreen;
  transform: translateY(-2px);
}

.end-btn {
    background: red;
    color: white;
}

.end-btn:hover {
    background: lightsalmon;
    transform: translateY(-2px);
}

@keyframes flash {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.finished .timer-display {
  animation: flash 1s infinite;
  color: lightsalmon;
}

.finished .process-ring {
  animation: flash 1s infinite;
}

.finished .student-timer {
  border-color: lightsalmon;
}

/* Start Timer Inputs */
.subject-input,
.duration-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid lightblue;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    font-size: 1em;
    box-sizing: border-box;
}

.subject-input:focus,
.duration-input:focus {
    outline: none;
    border-color: yellow;
    background: white;
}

.start-btn {
    width: 100%;
    padding: 12px;
    background: lightblue;
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.start-btn:hover {
    background: yellow;
    transform: translateY(-2px);
}

/* -----------------------
   RESPONSIVE MOBILE
------------------------ */
@media (max-width: 992px) {
    .help-container {
      max-width: 900px;
      padding: 10px 15px 30px 15px;
    }

    .help-row {
      gap: 30px;
    }

    .help-section h2 {
      font-size: 2em;
    }

    .help-text-col h3 {
      font-size: 1.5em;
    }
}

@media (max-width: 768px) {
  :target {
    scroll-margin-top: 130px; /* Less offset on mobile (smaller header) */
  }

  .help-container {
    padding: 10px 15px 20px 15px;
  }

  .help-toc ul {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  /* Stack vertically on mobile: screenshot always on top */
  .help-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .help-row.left .help-screenshot-col,
  .help-row.right .help-screenshot-col {
    order: 1; /* Screenshot always first */
  }

  .help-row.left .help-text-col,
  .help-row.right .help-text-col {
    order: 2; /* Text always second */
  }

  .help-text-col {
    padding: 10px 0;
  }

  .help-section {
    padding: 20px 15px;
  }

  .help-section h2 {
    font-size: 1.8em;
  }

  .help-text-col h3 {
    font-size: 1.4em;
  }

  .help-screenshot {
    border-width: 2px; /* Thinner border on mobile */
  }

  .dashboard-stats {
      grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
      font-size: 2.5em;
  }

  .students-overview {
      grid-template-columns: 1fr;
  }

  .quick-actions {
      grid-template-columns: 1fr;
  }

  .dashboard-section {
      padding: 20px 15px;
  }

  .dashboard-section h2 {
      font-size: 1.5em;
  }

  .subject-card {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
  }
  
  .subject-actions {
      width: 100%;
      justify-content: flex-end;
  }
  
  .form-container {
      padding: 20px;
  }

  .timer-grid {
      grid-template-columns: 1fr;
      padding: 10px;
  }
  
  .timer-display {
      font-size: 2rem;
  }

}

@media(min-width: 436px) {
  .calendar {
    min-width: 600px;
  }

  .calendar-container {
    overflow-x: auto;
  }
}

@media (max-width: 435px) {
   .fixed-header {
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    padding: 10px;
    gap: 10px;
  }

  .site-logo {
    height: 60px !important;
    width: auto;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    margin: 0;
  }

  .page-header {
    padding: 0px;
    width: 100%;
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
  }

  .page-header h1 {
    font-size: 1.1em !important;  /* Smaller on mobile */
    margin: 0;
    line-height: 1.2;
  }

  .school-name {
    font-size: 0.9em !important;
    margin: 3px 0 0 0;
    line-height: 1.2;;
  }

  .page-header h3 {
    font-size: 0.75em !important;
    margin: 3px 0 0 0;
  }

  .header-top {
    display: block;
    text-align: left;
    position: relative;
  }

  .desktop-menu {
    display: none !important;
  }

  .hamburger-menu {
    display: block !important;
    position: fixed !important;
    top: 40px !important;
    right: 10px !important;
    transform: none !important;
    z-index: 1003 !important;
  }

  .mobile-menu.active {
    display: block !important;
  }

   .calendar {
    width: 100%;
  }

  th, td {
    font-size: 12px;
    padding: 6px 8px;
  }

  .main-data {
    padding-top: 60px; /* Space for fixed header */
  }

  .hr-message{
    width: 80%;
  }

  .calendar-grid-view {
    display: none;
  }

  .calendar-list-view {
    display: block;
  }

  .setup-card {
      padding: 20px;
  }

  .form-row {
      grid-template-columns: 1fr;
  }

  .progress-step {
      font-size: 0.75em;
      padding: 8px 4px;
  }

  .form-actions {
        flex-direction: column;
    }

    .form-actions button,
    .form-actions .button {
        width: 100%;
    }

    .review-item {
        flex-direction: column;
        gap: 5px;
    }

    .help-screenshot {
      width: 300px;
      height: auto;
    }

    .help-section h2 {
      font-size: 1.5em;
    }

    .help-text-col h3 {
      font-size: 1.2em;
    }

    .help-text-col p,
    .help-text-col li {
      font-size: 0.95em;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 5px;
        margin: 5px;
    }

    .stat-number {
        font-size: 2em;
    }

    .welcome-message {
        padding: 30px 20px;
    }

    .btn-primary,
    .btn-secondary{
      width: auto;
      text-align: center;
    }

    .button-group {
      flex-direction: column;
      gap: 10px;
    }

    .action-button {
      width: auto;
    }

    .email_address {
      font-size: small;
    }
 
  .subjects-checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grade-entry-grid {
    grid-template-columns: 1fr;
  }
}