/* Basic Styling */
.welcome-text {
    background-color: #e7e7e7;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

h2 {
    padding-bottom: 0;
}

.btn-success {
    background-color: #0d5c0d;
    border-color: #0a4d0a;
    color: white;
}

.btn-success:hover {
    background-color: #0d5c0d;
    border-color: #0a4d0a;
}

.btn-outline-success {
    border-color: #0d5c0d;
    color: #0f6b0f;
}

.btn-outline-success:hover {
    background-color: #0d5c0d;
    border-color: #0a4d0a;
}

.container {
    padding-top: 0px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* transfer credit lookup. */
.course-item {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.course-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-course {
    background-color: #e8f5e9;
    border-left: 4px solid #7c2529;
}

.add-course-btn {
    transition: all 0.2s ease-in-out;
}

.add-course-btn:hover {
    background-color: #7c2529;
    color: white;
}

.remove-course-btn {
    transition: all 0.2s ease-in-out;
}

.remove-course-btn:hover {
    background-color: #dc3545;
    color: white;
}

.selected-courses-count {
    background-color: #7c2529;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Transfer credit results. */
.transition-transform {
    transition: transform 0.2s ease-in-out;
    transform: rotate(0deg);
}

/* When parent has collapsed class (Bootstrap adds this), keep chevron at 0deg */
.collapsed .transition-transform {
    transform: rotate(0deg);
}

/* When parent doesn't have collapsed class, rotate chevron */
[data-bs-toggle="collapse"]:not(.collapsed) .transition-transform {
    transform: rotate(180deg);
}

/* Transfer Credit Rule Styling */
.transfer-rule-card {
    border: 1px solid #7c2529;
    border-radius: 6px;
    box-shadow: 0 6px 3px rgba(124, 37, 41, 0.1);
    overflow: hidden;
}


.transfer-rule-header {
    background: linear-gradient(135deg, #cc0033 0%, #cc0033 100%);
    color: white;
}

.transfer-rule-body {
    background-color: #fafafa;
}

.course-option-box {
    background: linear-gradient(145deg, #fff8f0 0%, #fdf5e6 100%);
    border: 2px solid #f0e6d2;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-bottom: 8px;
    position: relative;
}

.course-option-label {
    color: #7c2529 !important;
    font-weight: 600;
    font-size: 0.875rem;
}

.course-tag {
    background-color: #cc0033;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 0.9em;
    padding: 0.5em 0.8em;
    box-shadow: 0 2px 4px rgba(124, 37, 41, 0.2);
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    border: 2px solid #9d2b30;
}

.and-separator {
    width: 30px;
    height: 30px;
    background-color: #218838; /* Darker green for better contrast */
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 7px 8px;
}

.or-separator {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #656565 0%, #656565 100%); /* Darker gradient */
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.or-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -30px;
    right: -30px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #666666 20%, #888888 80%, transparent 100%); /* Darker gradient */
    z-index: -1;
    transform: translateY(-50%);
}

.isu-course-tag {
    background: linear-gradient(135deg, #F1BE48 0%, #EAAA00 100%);
    color: #7C2529;
    font-weight: 600;
    font-size: 0.9em;
    padding: 0.25em 0.5em;
    border: 2px solid #D4940B;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    margin-right: 4px;
}

/* Pagination styling */
.pagination .page-item.active .page-link {
    background-color: #7c2529 !important;
    border-color: #7c2529 !important;
    color: white !important;
}

.pagination .page-item .page-link {
    color: #7c2529 !important;
}

.pagination .page-item .page-link:hover {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #5a1e21 !important;
}

.pagination .page-item.active .page-link:hover {
    background-color: #6b1f23 !important;
    border-color: #6b1f23 !important;
    color: white !important;
}

/* Landing */
.iastate22-button-set .iastate22-button.iastate22-button--inverted {
    border-color: #fff;
    background-color: #fff;
}

.iastate22-button-set .iastate22-button.iastate22-button--inverted:hover {
    background-color: #7c2529;
}

.iastate22-button-set .iastate22-button.iastate22-button--inverted .arrow {
    border-color: #c8102e;
}

.section-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
}

.section-heading::after {
    content: "";
    border-bottom: .125rem solid #f1be48;
    top: 4.5rem;
    left: 50%;
    margin-left: -1.75rem;
    width: 3.125rem;
    position: absolute;
}

.featured-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.featured-heading::before {
    content: "";
    border-bottom: .5rem solid #f1be48;
    top: -3.3rem;
    left: 50%;
    margin-left: -1.75rem;
    width: 3.5rem;
    position: absolute;
}

/* Dashboard */

.highlight-course {
    box-shadow: 0 0 0 4px yellow;
    background-color: yellow;
    border-radius: 4px;
}

.course {
    white-space: nowrap;
    color: teal;
    text-decoration: none;
    cursor: pointer;
}

.course:hover {
    text-decoration: underline;
}


.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.hidden-link {
    pointer-events: none;
    opacity: .5;
}

h5 {
    font-size: 1rem;
}

tr.group {
    font-weight: bold;
    background-color: #fdfdfd;
    border-top: 1px solid #d7d7d7;
    border-bottom: 1px solid #d7d7d7;
}

tr.group td {
    font-weight: bold;
    background-color: #fdfdfd;
}

table.tce_table tbody tr:hover {
    background-color: #e0e0e0;
}

table.tce_table tbody tr {
    background-color: #f4f4f4;
}

table.tce_table .dt-column-order {
    display: none;
}

.dashboard-layout {
    display: flex;
    flex-direction: column;
}

.dashboard-layout h1 {
    order: 2;
}

.dashboard-layout .welcome-text {
    order: 2;
}

.navigation-block {
    order: 1;
}

/* Dashboard styles */
.transcript-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.transcript-table caption {
    text-align: left;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.transcript-table th,
.transcript-table td {
    padding: 0.75rem;
    border: 0;
    vertical-align: top;
}

.transcript-table thead th {
    background-color: #fdfdfd;
    font-weight: 700;
    border: 1px solid #d7d7d7;
}

.transcript-table tbody tr {
    background-color: #f4f4f4;
}

.transcript-table tbody tr:hover {
    background-color: #e0e0e0;
}

.transcript-table__group,
.transcript-table__group:hover {
    background-color: #fdfdfd;
}

.transcript-table__group th {
    font-weight: bold;
    background-color: #fdfdfd;
    border-top: 1px solid #d7d7d7;
    border-bottom: 1px solid #d7d7d7;
    border-left: 0;
    border-right: 0;
    text-align: left;
}

.transcript-table__cell-header {
    font-weight: normal;
    text-align: left;
}

.course-row th,
.course-row td {
    border-left: 1px solid #d7d7d7;
    border-right: 1px solid #d7d7d7;
    border-top: 0;
    border-bottom: 0;
}

.transcript-table__list {
    padding-left: 0;
    margin-bottom: 0;
}

.transcript-table__list li + li {
    margin-top: 0.5rem;
}

.course-row:hover {
    background-color: rgba(126, 234, 16, 0.92);
    transition: background-color 0.3s;
}

.transcript-table tbody .course-row:last-child th,
.transcript-table tbody .course-row:last-child td {
    border-bottom: 1px solid #d7d7d7;
}

.highlight-animation {
    animation: highlight-effect 1.5s ease-in-out;
}

.modal-title {
    font-weight: 500;
    font-size: 1.25rem;
    color: #7c2529;
}
