/* mySite.css */

/*────────────────────────────────────────────────────────
  Color Variables
────────────────────────────────────────────────────────*/
:root {
    --ash-gray:        #cad2c5ff;
    --cambridge-blue:  #84a98cff;
    --hookers-green:   #52796fff;
    --dark-slate-gray: #354f52ff;
    --charcoal:        #2f3e46ff;
  }
  
  /*────────────────────────────────────────────────────────
    Global Reset & Body
  ────────────────────────────────────────────────────────*/
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
 
  .error{
    color: red;
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-slate-gray);
    background-color: var(--ash-gray);
    padding: 2rem;
  }
  
  /*────────────────────────────────────────────────────────
    Headings, Paragraphs & Containers
  ────────────────────────────────────────────────────────*/
  h2 {
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  div {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  /*────────────────────────────────────────────────────────
    Forms
  ────────────────────────────────────────────────────────*/
  form {
    max-width: 400px;
    margin: 0 auto 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  form p {
    margin-bottom: 1rem;
  }
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-slate-gray);
  }
  
  input[type="text"],
  input[type="password"],
  input[type="year"],
  select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--cambridge-blue);
    border-radius: 0.25rem;
    font-size: 1rem;
  }
  
  input:focus,
  select:focus {
    outline: none;
    border-color: var(--hookers-green);
  }
  
  /*────────────────────────────────────────────────────────
    Buttons & Inputs
  ────────────────────────────────────────────────────────*/
  input[type="submit"],
  input[type="button"] {
    display: inline-block;
    background-color: var(--hookers-green);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
  }
  
  input[type="submit"]:hover,
  input[type="button"]:hover {
    background-color: var(--cambridge-blue);
  }
  
  /*────────────────────────────────────────────────────────
    Links
  ────────────────────────────────────────────────────────*/
  a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
  }
  
  a:hover {
    color: var(--hookers-green);
  }
  
  /*────────────────────────────────────────────────────────
    Error Messages
  ────────────────────────────────────────────────────────*/
  .error {
    color: #e63946;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
  }
  
  /*────────────────────────────────────────────────────────
    Tables (Grades View)
  ────────────────────────────────────────────────────────*/
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }
  
  th,
  td {
    border: 1px solid var(--cambridge-blue);
    padding: 0.75rem;
    text-align: left;
  }
  
  th {
    background-color: var(--hookers-green);
    color: #fff;
  }
  
  /*────────────────────────────────────────────────────────
    Utility Classes
  ────────────────────────────────────────────────────────*/
  .text-center { text-align: center; }
  .mt-1        { margin-top: 1rem; }
  .mb-1        { margin-bottom: 1rem; }
  .hidden      { display: none; }