
/* ===============================
   Basic Reset
   =============================== */
   html, body, div, span, applet, object, iframe,
   h1, h2, h3, h4, h5, h6, p, blockquote, pre,
   a, abbr, acronym, address, big, cite, code,
   del, dfn, em, font, img, ins, kbd, q, s, samp,
   small, strike, strong, sub, sup, tt, var,
   b, u, i, center,
   dl, dt, dd, ol, ul, li,
   fieldset, form, label, legend,
   table, caption, tbody, tfoot, thead, tr, th, td {
     margin: 0;
     padding: 0;
     border: 0;
     font-size: 100%;
     vertical-align: baseline;
   }
   
   body {
     line-height: 1.5;
     background-color: #fafafa;
     color: #333;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, Helvetica, Arial, sans-serif;
   }
   .card-instructions {
        background-color: #f8f9fa;      /* Light gray background */
    border-left: 4px solid #5a6d88; /* Subtle accent on the left */
    padding: 1rem;
    margin: 1rem auto;
    color: #444;
    font-size: 0.95rem;
    border-radius: 4px;
    max-width: 80%;                /* Half the container width */
    text-align: left;
  }
    /* For centering button rows: */
  .centered-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
   
   /* ===============================
      Layout .air-page
      =============================== */
   .air-page {
     max-width: 90%;
     margin: 2rem auto;
     padding: 0 1.5rem;
   }
   
   /*
      NAV styling
   */
   .primary-nav {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0.5rem 1rem;
     background-color: #f8f9fa;
     box-shadow: 0 1px 2px rgba(0,0,0,0.05);
   }
   
   .primary-nav .nav-right {
     display: flex;
     gap: 1rem;
   }
   .nav-link {
     color: #002050;
     text-decoration: none;
     font-weight: 500;
     padding: 0.4rem 0.6rem;
   }
   .nav-link:hover {
     text-decoration: underline;
   }
   
   /* secondary nav */
   .secondary-nav {
     display: flex;
     justify-content: center;
     gap: 1.5rem;
     margin-top: 0.5rem;
   }
   .secondary-nav a {
     text-decoration: none;
     color: #002050;
     font-weight: 500;
     padding: 0.4rem 0.8rem;
     border-radius: 4px;
   }
   .secondary-nav a:hover {
     background-color: #f0f0f0;
   }
   
   /* Basic .air-card */
   .air-card {
     background: #ffffff;
     height: auto;
     min-height: auto;
     border-radius: 8px;
     margin-bottom: 2rem;
     box-shadow: 0 2px 6px rgba(0,0,0,0.05);
   }
   .air-card-header {
     padding: 0.75rem 1.5rem 0.5rem;
   }
   .air-header h1 {
     font-size: 1.8rem;
     font-weight: 600;
     margin: 0.25rem 0;
   }
   .air-card-header h2,
   .air-card-header h3 {
     font-weight: 600;
     margin-bottom: 0.3rem;
   }
   .air-card-body {
     padding: 0.5rem 1.5rem 1.2rem;
   }
   .air-divider {
     border: none;
     border-top: 1px solid #eee;
     margin: 1rem 0;
   }
   .air-header {
     text-align: center;
     margin-bottom: 2rem;
     padding: 1rem 0;
     background: #f8f9fa;
     box-shadow: 0 1px 2px rgba(0,0,0,0.05);
   }
   
   /* Buttons */
   .navy-btn {
     background-color: #26446e;
     color: #fff;
     border: none;
     border-radius: 4px;
     padding: 0.5rem 1rem;
     cursor: pointer;
     font-size: 0.9rem;
   }
   .navy-btn:hover {
     background-color: #00163b;
   }
   .outline-btn {
     background: none;
     border: 1px solid #002050;
     color: #002050;
     border-radius: 4px;
     padding: 0.5rem 0.8rem;
     cursor: pointer;
     font-size: 0.9rem;
   }
   .outline-btn:hover {
     background-color: #e8ebf3;
   }
   .btn-sm {
     font-size: 0.8rem;
     padding: 0.3rem 0.8rem;
   }
   .btn-square {
     width: 32px;
     height: 32px;
     padding: 0 !important;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     font-size: 1.0rem;
     line-height: 1;
   }
   
   /* Input fields (modern look) */
   input[type="text"], select, textarea {
     border: 1px solid #ccc;
     border-radius: 4px;
     padding: 0.4rem 0.6rem;
     font-size: 0.9rem;
     font-family: inherit;
     box-sizing: border-box;
   }
   input[type="text"]:focus,
   select:focus,
   textarea:focus {
     outline: none;
     border-color: #66afe9;
     box-shadow: 0 0 3px rgba(102,175,233,0.6);
   }
   
   /* Tables */
   .air-table {
     width: 100%;
     border-collapse: collapse;
     margin-top: 1rem;
     background-color: #fff;
   }
   .air-table th,
   .air-table td {
     padding: 0.75rem;
     border: 1px solid #eee;
     text-align: center;
   }
   
   .air-table th {
    background-color: #f9f9f9;
    font-weight: 600;
  }
  .prerequisite-results-table {
    width: 100%;
    margin: 1rem auto;  /* This centers the table horizontally */
    border-collapse: collapse;
    margin-top: 2px;
    background-color: #fff;
    border: 1px solid #757575;
  }
  
  .prerequisite-results-table th,
  .prerequisite-results-table td {
    border: 1px solid #a4a4a4;
    font-size: 14px;        /* Adjust as desired for smaller text */
    line-height: 1;         /* Keep line-height tight */
    padding: 2px 4px;       /* Minimal top/bottom padding */
    text-align: center;
    vertical-align: middle; /* Ensures text is vertically centered */
  }
  .expiry-future {
    color: green;  /* or your desired 'future' color */
  }
  
  .expiry-past {
    color: red;    /* or your desired 'past/expired' color */
  }
  
  .days-left {
    font-size: 7px;
    line-height: 1; /* keeps the text snug vertically */
  }
   
   
   /* Step2 container: 2 cards side by side */
   .step2-container {
     display: flex;
     flex-wrap: nowrap;
     justify-content: center;
     align-items: flex-start;
     gap: 1.5rem;
     transition: all 0.5s ease;
   }
   .left-card {
     flex: 0 0 60%;
     margin: 0 auto;
     transition: all 0.5s ease;
   }
   .right-card {
     flex: 0 0 40%;
     margin: 0 auto;
     transition: all 0.5s ease;
   }
   
   /* .air-form-grid */
   .row-flex {
     display: flex;
     gap: 1rem;
     align-items: flex-start;
   }
   
   .air-form-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     column-gap: 1.5rem;
     row-gap: 1rem;
   }
   .air-form-grid > div {
     display: flex;
     flex-direction: column;
   }
   .air-form-grid > div label {
     margin-bottom: 0.5rem;
   }
   .air-inline-form {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1rem;
   }
   .air-inline-form label {
     font-weight: 500;
     min-width: 120px;
   }
   
   /* picklists-grid */
   .picklists-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 2rem;
   }
   
   /* Extra */
   .btn-stack {
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
     margin-top: 0.5rem;
   }
   .error-text {
     color: red;
     font-size: 0.85rem;
     margin-top: 0.25rem;
   }
   .picklist-column {
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
   }
   .arrow-buttons {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 0.4rem;
   }
   
   /* For smaller screens */
   @media (max-width: 768px) {
     .step2-container {
       flex-wrap: wrap;
     }
     .left-card,
     .right-card {
       flex: 0 0 100%;
       margin: 0;
     }
     .picklists-grid {
       grid-template-columns: 1fr;
     }
   }
   .small-col {
     width: 30px;
     white-space: nowrap;
   }
   
   /* Id Fields */
   .id-fields {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
     justify-content: center;
   }
   .id-fields > div {
     flex: 1 1 30%;
     min-width: 100px;
   }
   /* Modern Form Styling for Step 1 */
   .modern-form {
     max-width: 80%;
     margin: 0 auto;
     padding: 1.5rem;
     background-color: #fff;
     border-radius: 8px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.1);
   }
   .modern-form2 {
     max-width: 800px;
     margin: 0 auto;
     padding: 1.5rem;
     background-color: #fff;
     border-radius: 8px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.1);
   }
   .form-description {
     font-size: 12px;
     color: grey;
     display: block;
     margin-top: 0;
     margin-bottom: 0.75rem;
   }
   
   .modern-form .form-group {
     margin-bottom: 1.5rem;
     display: flex;
     flex-direction: column;
   }
   
   .modern-form .form-group label {
     margin-bottom: 0.2rem;
     font-weight: 600;
     color: #002050;
   }
   
   .modern-form .form-group input[type="number"] {
     padding: 0.75rem;
     border: 1px solid #ccc;
     border-radius: 4px;
     font-size: 1rem;
     transition: border-color 0.3s ease, box-shadow 0.3s ease;
   }
   
   .modern-form .form-group input[type="number"]:focus {
     border-color: #66afe9;
     box-shadow: 0 0 5px rgba(102,175,233,0.5);
     outline: none;
   }
   
   .modern-form .form-actions {
     text-align: center;
   }
   
   .modern-form .form-actions button {
     padding: 0.75rem 2rem;
     font-size: 1rem;
     border: none;
     border-radius: 4px;
     cursor: pointer;
   }
   
   /* Slightly adjust the modern card margins */
   .modern-card {
     margin: 2rem auto;
     max-width: 800px;
   }
   .wide-card {
     max-width: 1100px;
     width: 95%;
   }
   
   /* Air Flas Messages */
   .air-flash-messages {
     position: fixed;
     top: 5rem;
     left: 50%;
     transform: translateX(-50%);
     z-index: 1000;
     width: 100%;
     max-width: 600px;
     padding: 10px;
     background-color: #edf9eb;
     box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
     border: 1px solid #bdf4bd;
     text-align: center;
     font-weight: bold;
   }
   .air-flash-messages ul {
     list-style: none;
     margin: 0;
     padding: 0;
   }
   .air-flash-messages li {
     margin-bottom: 5px;
     padding: 5px;
     font-weight: bold;
   }
   .air-flash-messages li.error {
     background-color: #f8d7da;
     color: #721c24;
     border: 1px solid #f5c6cb;
     border-radius: 4px;
   }
   .air-flash-messages li.success {
     background-color: #edf9eb;
     color: #002050;
     font-weight: 400;
     border: 1px solid #bdf4bd;
     border-radius: 4px;
   }
   
   /* Ensure that the main content is pushed down so it isn't overlapped */
   .air-page {
     margin-top: 80px;
   }
      
   /* Modal overlay (like in define_courses) */
   .modal-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     background: rgba(0, 0, 0, 0.5);
     z-index: 9999;
     display: none; /* Hidden by default */
     justify-content: center;
     align-items: center;
   }
   .modal-overlay.open {
     display: flex !important;
   }
   .modal-content {
     background: #fff;
     border-radius: 8px;
     max-width: 90%;
     width: 90%;
     height: auto;
     max-height: 80vh;
     overflow-y: auto;
     padding: 1.5rem;
   }
   
   .highlighted-row {
     background-color: #f0f8ff; /* a light blue background */
   }
   
   /********************************************
     1) Main Header & Navigation
   *********************************************/
   .main-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     background-color: #1f385a; /* A navy background */
     padding: 0.5rem 1rem;
     position: relative;
   }
   
   .brand-logo {
     font-size: 1.25rem;
     font-weight: 600;
     color: #fff;
     text-decoration: none;
   }
   
   .nav-links {
     display: flex;
     align-items: center;
     gap: 1rem;
     transition: all 0.3s ease;
   }
   
   .nav-links a.nav-link {
     color: #fff;
     text-decoration: none;
     font-weight: 500;
     padding: 0.4rem 0.6rem;
   }
   .nav-links a.nav-link:hover {
     background-color: rgba(255,255,255,0.15);
     border-radius: 4px;
   }
   
   /* Extra style for the 'Post Courses' button in the nav */
   .post-btn {
     margin-left: 0.5rem;
     color: #fff;
     border: 1px solid #fff;
   }
   .post-btn:hover {
     background-color: rgba(255,255,255,0.25);
   }
   
   /* Burger (Hamburger icon) for mobile toggling */
   .burger {
     width: 25px;
     height: 18px;
     display: none; /* hidden on desktop, shown on mobile */
     flex-direction: column;
     justify-content: space-between;
     cursor: pointer;
   }
   .burger span {
     display: block;
     height: 3px;
     width: 100%;
     background-color: #fff;
     border-radius: 3px;
   }
   .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: none;             /* hide by default */
    flex-direction: column;
    background-color: #1f385a; /* navy overlay */
    padding: 2rem 1rem;
    gap: 1rem;
    z-index: 9999;            /* ensure it covers the page */
    overflow-x: hidden; /* optional, prevents horizontal scrolling */
  }

  /* Show the menu (modal) when .open is added */
  .nav-links.open {
    display: flex;  /* simply appear */
  }

  /* Show the burger (hamburger icon) on mobile */
  .burger {
    display: flex;
  }

  /* Position the 'X' in the top-left corner */
  .nav-close {
    position: absolute;
    top: 0.5rem;
    right: 2.8rem;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
  }
  /* Smaller by default on mobile: */
/* Always restrict the logo to 60px tall (desktop default) */
    .nav-logo {
      max-height: 30px; /* or however tall you prefer */
      width: auto;       /* maintains aspect ratio */
      display: block;    /* ensures normal box behavior */
    }

  .table-responsive {
    overflow-x: auto; /* scroll horizontally if needed */
    -webkit-overflow-scrolling: touch;
  }
  
  .air-table {
    /* Let columns resize naturally based on content */
    table-layout: auto; 
    width: 100%;
    /* or remove table-layout entirely, since "auto" is default */
  }
  
  /* Stop headers from breaking onto multiple lines */
  .air-table th,
  .air-table td {
    white-space: nowrap; 
  }

