.roster-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--mission-bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .roster-container {
    background-color: var(--mission-bg-dark);
    color: var(--text-color-dark);
}

h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5em;
    margin-top: 30px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    color: var(--text-color-light);
}

body.dark-mode h2 {
    color: var(--text-color-dark);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

thead {
    background-color: var(--navbar-link-light);
    color: #fff;
}

body.dark-mode thead {
    background-color: var(--navbar-link-dark);
    color: #fff;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--table-border-color-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode th, body.dark-mode td {
    border-bottom: 1px solid var(--table-border-color-dark);
    color: var(--text-color-dark);
}

td {
    vertical-align: middle;
}

.profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background-color: #e0e0e0;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-color-light);
}

body.dark-mode h3 {
    color: var(--text-color-dark);
}

p {
    margin: 5px 0;
    font-size: 0.9em;
    color: var(--text-color-light);
}

body.dark-mode p {
    color: var(--text-color-dark);
}

button.toggle-log {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 0.9em;
    background-color: var(--navbar-link-light);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.dark-mode button.toggle-log {
    background-color: var(--navbar-link-dark);
}

button.toggle-log:hover {
    background-color: var(--navbar-link-hover-light);
}

body.dark-mode button.toggle-log:hover {
    background-color: var(--navbar-link-hover-dark);
}

.clickable {
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.clickable:hover {
    background-color: var(--click-hover-light);
}

body.dark-mode .clickable:hover {
    background-color: var(--click-hover-dark);
}

.log-details {
    background-color: var(--click-bg-light);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

body.dark-mode .log-details {
    background-color: var(--click-bg-dark);
}

.hidden {
    display: none;
}

/* Ensure clicked row doesn’t resize */
table .clickable td {
    padding: 10px;
}

/* Expand name and details to span the remaining width */
table td:nth-child(2) {
    width: 100%;
}