* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #A9C6DE;
  color: #111827;            
}

/* for links */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* (overridden by .dashboard / .auth-container) */
/* main {
  padding: 1.5rem 1rem;
} */

/* index.ejs */
.dashboard {
  min-height: calc(100vh - 140px); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  background-color: #A9C6DE;
}

.dashboard-card {
  width: 100%;
  max-width: 800px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 2px solid grey;
}

/* welcome + logout (top part) */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  
}

.dashboard-card h2 {
  margin: 0 0 0.25rem 0;
  
}

.dashboard-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
  
}

/* Logout button*/
.logout-link {
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.3rem 0.9rem;
  color: #3465b5;
  background-color: #89b9e98f;
  
}

.logout-link:hover {
  background-color: #e5e7eb;
}


/* Login & Signup (auth)*/
.auth-container {
  min-height: calc(90vh - 138px); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  background-color: #A9C6DE;

}

.auth-card {
  width: 100%;
  max-width: 450px;
  background-color: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
  
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  
}

.auth-card form {
  display: flex;
  flex-direction: column;
  
}

/* Inputs inside login/signup card */
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  
}

/* Submit button */
.auth-card button {
  width: 100%;
  padding: 0.75rem;
  background-color: #2563eb;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
}

.auth-card button:hover {
  background-color: #1e40af;
}

/* Wrapper for the checkbox row (AI Generated Styles) */
.checkbox-wrapper {
  display: flex;
  align-items: center;      /* Vertically centers box with text */
  justify-content: flex-start; /* Pushes content to the Left */
  width: 100%;
  margin-bottom: 1rem;      /* Spacing between checkmark and Signup button */
  font-size: 0.95rem;       /* Optional: Matches text size better */
  
}

/* Specific styling for the checkbox input itself */
.checkbox-wrapper input[type="checkbox"] {
  width: auto;              /* Prevents it from stretching like the text inputs */
  margin-right: 0.5rem;     /* Space between the box and the label text */
  cursor: pointer;
  transform: scale(1.5);
  
}

/* Ensure the label is clickable */
.checkbox-wrapper label {
  cursor: pointer;
  
}

/*roster*/
.roster-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden; 
}

.roster-table thead {
  background-color: #583983;
  color: #faf9fb;
}

.roster-table th,
.roster-table td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.roster-table tbody tr:nth-child(even) {
  background-color: #f0eaf5;
}

.roster-table tbody tr:hover {
  background-color: #97899f;
}

/* avatar */
.roster-name-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.roster-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.back-courses-btn {
  position: absolute;
  left: 1.5rem;          
  bottom: 0.4rem;         
  padding: 0.25rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  color: #111827;
  text-decoration: none;
}

.back-courses-btn:hover {
  background-color: #e5e7eb;
}

/* success message dissapearing after a few secs */
.flash-message { 
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

.success-message {
  background-color: #ecfdf5;
  color: #166534;
}

/* header */
.site-title {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.site-header {
  background-color: #111827;
  color: #df8a30;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: center;     
  align-items: center;
  position: relative;           
}

.site-logo {
  height: 70px;
  width: auto;
  position: absolute;
  left: 1.5rem;                 
  top: 50%;
  transform: translateY(-50%); 
}

.site-title-text {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 3rem;
  letter-spacing: 0.04em;
  text-align: center;
}

/* footer*/
.site-footer {
  background-color: #111827;
  color: #f9fafb;
  padding: 0.75rem 1.5rem;
  text-align: center; 
  font-size: 0.9rem;
}

.footer-logo {
  margin-top: 0.4rem;
  height: 60px;
  width: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive tweaks, in case of small screens */
@media (max-width: 600px) {
  .dashboard-card,
  .auth-card {
    padding: 1.5rem 1.25rem;
    
  }

  header,
  footer {
    padding: 0.75rem 1rem;
    
  }
}

.adviceDisplay{
  text-align: center;
  background-color: #E6CAC8;
  padding: 10px;
  max-width: 1000px;
  margin: auto;
  border-radius: 10px;
  border: 2px solid grey;
}

#courses_list {
  background-color: #A2C79D;
  padding: 6px;
  border-radius: 10px;
  border: 2px solid grey;
}

#available_courses{
  background-color: #FAD08C;
  padding: 6px;
  border-radius: 10px;
  border: 2px solid grey;
}