body {
    font-family: 'Inter', sans-serif;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    flex-grow: 1;
    min-width: 200px; /* Increased width of the dropdown */
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background-color: #fff;
    border-width: 1px;
    border-color: #d1d5db;
    border-radius: 0.375rem;
    color: #4b5563;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, shadow-sm 0.15s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.custom-select-trigger:hover,
.custom-select-wrapper:focus-within .custom-select-trigger {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.custom-select-trigger span {
    margin-right: 0.5rem;
}

.custom-select-trigger svg {
    height: 1rem;
    width: 1rem;
    fill: currentColor;
    color: #6b7280;
}

.custom-options {
    position: fixed; /* Changed to fixed positioning */
    top: 100%;
    left: 0;
    right: auto;
    z-index: 20;
    background-color: #fff;
    border-width: 1px;
    border-color: #d1d5db;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    overflow: auto;
    max-height: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out, transform 0.15s ease-in-out;
    width: inherit;
    min-width: 200px;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-options li {
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
    white-space: nowrap;
}

.custom-options li:hover,
.custom-options li.selected {
    background-color: #f0f9ff;
    color: #1e40af;
}

.custom-options li.selected svg {
    margin-right: 0.5rem;
    height: 1rem;
    width: 1rem;
    fill: currentColor;
    color: #1e40af;
}

.hidden {
    display: none;
}

/* Added to align dropdown correctly */
.relative {
    position: relative;
}

vatopleft {
    vertical-align: top;
    text-align: left;
}

.accordion {
    margin-top: 20px;
    width: 95%;
}

.accordion-btn {
    background-color: #e9e9e9;
    border: none;
    padding: 10px;
    width: 95%;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-btn:hover {
    background-color: #ddd;
}

.accordion-content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f9f9f9;
}

.spaced-element {
    margin-left: 15px;
padding: 15px;
}

.spaced-element-top {
    margin-top: 15px;
}

.ctitle {
    color: #0000ff;
}

table {
    border-collapse: collapse;
    width: 100%;
    border: none;
}

th, td {
    text-align: left;
    padding-top: 8px;
    padding-bottom: 8px;
}

th:not(:first-child),
td:not(:first-child) {
    padding-left: 5px;
}
th:not(:last-child),
td:not(:last-child) {
    padding-right: 5px;
}

.fixed-header,
.fixed-header2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #005A96;
    padding: 0px 5px 10px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    background-repeat: no-repeat;
    background-image: url("https://banner.nl.edu/BannerGeneralSsb/assets/tmp-nlu-logo-white.png");
    background-position: 20px 30px;
    text-align: center;
    color: white;
}

.course-container,
.search-container,
.search_section {
    padding-top: 100px;
    max-height: calc(100vh - 100px);
    overflow-y: scroll;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.search_section {
    font-size: 1.5em;
    color: #4169E1;
    border-bottom: 1px solid black;
    padding-bottom: 5px;
}

.catalog_description {
    color: #0000FF;
}

td, th {
    padding: 2px 5px;
}

th:nth-child(1),
td:nth-child(1) {
    width: 20%;
}

.space-age-button {
    width: 30%;
    display: block;
    margin: 0px;
    padding: 15px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: bold;
    color: black;
    letter-spacing: 2px;
    background: linear-gradient(145deg, darkblue, lightskyblue);
    border: 1px solid #00ffff;
    border-radius: 5px;
    box-shadow: 0 0 8px #00ffff, inset 0 0 8px #00ffff;
    text-shadow: 0 0 5px #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.space-age-button:hover {
    color: blue;
    border-color: #000000;
    box-shadow: 0 0 20px #00ffff, inset 0 0 15px #00ffff;
}

.search-spacing {
    margin-top: 10px;
}

.predefined-block {
    background-color: lightskyblue;
    margin-top: 15px;
}


#pbid-SpinnerImg-container{
    background-image: url("https://banner.nl.edu/BannerGeneralSsb/assets/spinner.gif");
   background-repeat: no-repeat;
    background-position: center;
   background-size: 30px 30px;
    display:none;
    font-weight: bold; 
    font-size: 1.5em;
    text-align: left;
    padding: 10px 0px 0px 0px;
}

/* FLEXBOX CONTAINER (updated) */
.form-containera {
 max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;                       
  margin-top: 16px;             
  --cols: 3;
}

.form-containera > * {
 flex: 1 1 calc(100% / var(--cols));
  min-width: 290px;
  align-self: flex-start;       /* ensure each item honors its own height */
}

/* Tablet: 2 columns */
@media (max-width: 980px) {
    .form-containera { --cols: 2; max-width: 700; }

}

/* Phone: 1 column */
@media (max-width: 640px) {
    .form-containera { --cols: 1; max-width: 400; }
}

/* Flex group inside each form item */
.form-groupa {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
}

label, select {
    display: block;
}

label {
    margin-bottom: 5px;
    margin-left: 5px;
    font-weight: bold;
}

select {
    margin-bottom: 15px;
    margin-left: 5px;
    width: 285px;
}

#pbid-sl_Term {
    width: 150px;
}

#pbid-tx_CourseNumber {
    margin-bottom: 15px;
    margin-left: 5px;
}

.no-wrap {
    white-space: nowrap;
}

.selectable-text.copied-success {
  /* Style for when the text is successfully copied */
  background-color: #d4edda; /* A light green color */
  color: #155724; /* A dark green text color */
  padding: 2px 5px;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out; /* Smooth transition */
}

/* --- START: Final CSS Solution for Checkbox Alignment --- */

/* Replace #ID_FOR_DAY_OF_WEEK_CONTAINER 
  with the actual ID you found for the Day of the Week element.
*/
#pbid-sl_Day-container{
    position: relative !important;
}


/* --- START: Final CSS to Align Checkbox --- */

/* 1. Set the positioning anchor on the main "Day of the Week" container.
      This ID is based on the screenshot you provided previously. */
#pbid-bl_Day {
    position: relative !important;
 flex: 1 1 calc(100% / var(--cols));
  min-width: 290px;
  align-self: flex-start;       /* ensure each item honors its own height */
}

/* 2. Target the checkbox container using the exact ID you just provided. */
#pbid-bl_Day_and-container {
    position: absolute !important; /* Lifts the element out of the layout flow */
    top: -4px !important;             /* Aligns it to the top of the parent */
    left: 150px !important;            /* Aligns it to the left, with a 150px gap so after the label */
    width: auto !important;           /* Prevents it from taking up too much space */
}

/* --- END: Final CSS Solution --- */