﻿/* ------------ list styles ------------- */

a.list-link, a.list-link:visited {
    color: inherit;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.5;
    padding: 2px 0;
}

a.list-link:hover {
    text-decoration: underline;
}

.icon-link {
    color: #28a745; /* Excel-like green color */
    text-decoration: none;
    font-size: 16px;
}

    .icon-link:hover {
        color: #218838; /* Slightly darker on hover */
    }

.right-aligned {
    text-align: right;
    display: inline-block;
}

.icon-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .icon-options > * {
        margin-right: 3px;
    }

        .icon-options > *:last-child {
            margin-right: 0;
        }

.inline-text {
    display: inline-block;
}


.list-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

tbody.dashboard-list tr:hover {
    background-color: #EBEBEB; /* Change this to your preferred hover color */
    cursor: pointer; /* Optional: Makes the row feel clickable */
}

tbody.dashboard-list tr td {
    padding: 0.4rem;
}

.expand-button .btn {
    min-width: 10px;
}

.dropdown .btn {
    min-width: 10px;
}

    /* Updated hover styles to use standard link color */
    .expand-button .btn:hover,
    .dropdown .btn.dropdown-toggle:hover {
        color: #fd7e14 !important; /* Bootstrap's default orange link color */
    }

.dropdown-toggle::after {
    display: none;
}

/* Modal Background - Only for dashboard list modals */
.modal[id$="-message-students-modal"],
.modal[id$="-tableModal"] {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Gray out the background */
    z-index: 1000;
}


/* Modal Content - Only for dashboard list modals */
.modal[id$="-message-students-modal"] .modal-content,
.modal[id$="-tableModal"] .modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    background-color: white;
    width: 80%; /* Large width */
    max-width: 1200px; /* Limit maximum width */
    height: 80vh; /* Larger height */
    overflow-y: auto; /* Scroll if content exceeds height */
    border-radius: 8px;
}

.message-students-modal {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    background-color: white;
    width: 80%; /* Large width */
    max-width: 1200px; /* Limit maximum width */
    max-height: 30vh; /* Larger height */
    overflow-y: auto; /* Scroll if content exceeds height */
    border-radius: 8px;
}

/* Only apply to dashboard list modals */
.modal[id$="-message-students-modal"] .modal-header,
.modal[id$="-tableModal"] .modal-header {
    padding: 15px;
    border-bottom: 0px;
    margin-bottom: 20px;
}

.modal-title {
    margin: 0;
    line-height: 1.42857143;
    font-size: 1.5em;
    color: #333;
}

.close {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    opacity: .5;
    background: none;
    border: none;
    padding: 0;
}

    .close:hover {
        opacity: .75;
        cursor: pointer;
    }