.table_container {
    width: 100%;
    overflow-x: auto;
}

.table_header, .table_row {
    display: grid;
    grid-template-columns: .5fr 2fr .3fr 1fr .4fr;
}

.table_header { 
    background-color: #ffc629;
    color: #000;
    text-align: left;
}

.table_row {
    text-align: center;
}

.table_data {
    padding: 4px;
    border: 1px solid #ccc;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    display: flex;
    align-items: center;
    justify-content: left;
}

.table_row:hover {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .table_header, .table_row {
        grid-template-columns: minmax(0, .5fr) minmax(0, 2fr) minmax(0, .3fr) minmax(0, 1fr) minmax(0, .4fr);
    }
}

.instructor_course_table {
    width: 80%;
    margin: auto;
    border-collapse: collapse;
    text-align: left;
}

.instructor_course_header th {
    background-color: #ffc629;
    color: #000;
    text-align: left;
    font-weight: bold;
    padding: 8px;
}

.instructor_course_row td {
    text-align: left;
    padding: 4px;
    border: 1px solid #ccc;
}

.instructor_course_row:hover {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .instructor_course_table {
        width: 100%;
    }
    .instructor_course_header, .instructor_course_row {
        display: block;
    }
    .instructor_course_header th, .instructor_course_row td {
        width: 100%;
        padding: 8px;
        border-bottom: none;
    }
    .instructor_course_row td {
        border-top: 1px solid #ccc;
    }
    .instructor_course_header th:last-child, .instructor_course_row td:last-child {
        border-bottom: 1px solid #ccc;
    }
}

.course_history_table {
    width: 90%;
    margin: 10px auto;
    border-collapse: collapse;
    text-align: left;
}

.course_history_header th {
    background-color: #ffc629;
    color: #000;
    text-align: left;
    font-weight: bold;
    padding: 8px;
}

.course_history_row td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ccc;
}

.course_history_row:hover {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .course_history_table {
        width: 100%;
    }
    .course_history_header, .course_history_row {
        display: block;
    }
    .course_history_header th, .course_history_row td {
        width: 100%;
        padding: 8px;
        border-bottom: none;
    }
    .course_history_row td {
        border-top: 1px solid #ccc;
    }
    .course_history_header th:last-child, .course_history_row td:last-child {
        border-bottom: 1px solid #ccc;
    }
}

.course_table {
    width: 90%;
    margin: 10px auto;
    border-collapse: collapse;
    text-align: left;
}

.course_table_header th {
    background-color: #ffc629;
    color: #000;
    text-align: left;
    font-weight: bold;
    padding: 8px;
}

.course_table_row td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ccc;
}

.course_table_row:hover {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .course_table {
        width: 100%;
    }
    .course_table_header, .course_table_row {
        display: block;
    }
    .course_table_header th, .course_table_row td {
        width: 100%;
        padding: 8px;
        border-bottom: none;
    }
    .course_table_row td {
        border-top: 1px solid #ccc;
    }
    .course_table_header th:last-child, .course_table_row td:last-child {
        border-bottom: 1px solid #ccc;
    }
}

#semester_selector, #subject_selector {
    display: none;
}

#autocomplete_list {
    height: 500px; 
    overflow-y: auto; 
    width: 100%; 
    border: 1px solid #ccc;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1); 
}

.autocomplete-items {
    background-color: #fff;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.autocomplete-items div {
    padding: 10px;
    border-bottom: 1px solid #d4d4d4;
    cursor: pointer;
    text-align: left;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.search_wrapper {
    display: flex;
    align-items: center;
}

.searchbar_height,
.picture_button {
    margin: 0;
}


#search_bar {
    flex: 1; /* Take remaining space */
    height: 100%;
    padding: 10px;
    border: 1px solid #d4d4d4;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: text;
    font-size: 16px;
    outline: none;
    margin-right: 10px; /* Adjust as needed */
}

#search_bar:focus {
    border-color: #aaa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.picture_button, .picture_button_bg {
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 10%;
    height: 10%;
}

.picture_button_img {
    width: 50%;
    height: 50%;
}

#faculty_selector {
    width: auto;
    padding: 10px;
    border: 1px solid #d4d4d4;
    background-color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 auto;
    margin-right: 100px;
    display: block;
    position: relative; /* Ensure relative positioning for absolute positioning */
    overflow: visible; /* Allow dropdown to extend beyond page boundaries */
}

#faculty_selector option {
    padding: 8px 12px; /* Adjust padding as needed */
    background-color: #fff; /* Background color */
    color: #333; /* Text color */
    font-size: 14px; /* Font size */
}

#faculty_selector option:hover {
    background-color: #e9e9e9; /* Hover background color */
}


