/*Styling for the page layout and controls */

.CrsCompareContainer {
    max-width: 1200px;
    margin: -25px auto auto auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.no-courses-message {
    color: #800000;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

.selection-controls {
    background-color: #f8f8f8;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

    .control-group label {
        font-weight: bold;
        white-space: nowrap;
        overflow: visible;
    }

.dropdown {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border-radius: 4px;
    background-color: white;
    box-sizing: border-box;
    position: relative;
}

.get-courses-btn {
    background-color: #800000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    align-self: center;
}

    .get-courses-btn:hover {
        background-color: #660000;
    }

.note-text {
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .courses-table th,
    .courses-table td {
        border: 1px solid #ddd;
        padding: 12px;
        text-align: left;
    }

    .courses-table th {
        background-color: #f5f5f5;
        font-weight: bold;
    }

    .courses-table tr:nth-child(even) {
        background-color: #fafafa;
    }

    .courses-table tr:hover {
        background-color: #f0f0f0;
    }

@media (max-width: 992px) {
    .control-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown {
        width: 100%;
        display: block !important;
    }
}
