/**
 * Custom styling for better unread/read email contrast
 * Similar to Gmail's approach
 */

/* Read emails - lighter gray text */
.messagelist td.subject span.subject a {
    color: #5f6368;  /* Gmail-like gray for read emails */
}

.messagelist td.subject span.fromto {
    color: #80868b;  /* Slightly lighter for secondary info */
}

/* Unread emails - bold + black text */
.messagelist tr.unread td.subject span.subject {
    font-weight: bold;
}

.messagelist tr.unread td.subject span.subject a {
    color: #000000;  /* Black for unread - high contrast */
}

.messagelist tr.unread td.subject span.fromto {
    color: #3c4043;  /* Darker gray for unread secondary info */
    font-weight: 600;
}

/* Optional: Slightly bolder date for unread */
.messagelist tr.unread td.subject span.date {
    color: #3c4043;
    font-weight: 500;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .messagelist td.subject span.subject a {
        color: #9aa0a6;  /* Light gray for read in dark mode */
    }

    .messagelist tr.unread td.subject span.subject a {
        color: #e8eaed;  /* Bright white for unread in dark mode */
    }

    .messagelist tr.unread td.subject span.fromto {
        color: #bdc1c6;
    }
}
