/* Notes popup modal styles - CBM palette */
#notes-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(47, 79, 79, 0.7);
}

.notes-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
}

.notes-modal-close {
    color: rgba(255, 255, 255, 0.8);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 0.5rem;
}

.notes-modal-close:hover,
.notes-modal-close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

#notes-modal-title {
    margin: 0;
    padding: 1rem 1.5rem;
    background-color: #2F5233;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem 0.5rem 0 0;
    border-bottom: 3px solid #228B22;
}

#notes-modal-body {
    padding: 1.5rem;
    line-height: 1.8;
    color: #2F4F4F;
}

/* Full notes link style */
.full-notes-link {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(70, 130, 180, 0.2);
    text-align: center;
}

.full-notes-link a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #2F5233;
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.full-notes-link a:hover {
    background-color: #8B4513;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Styling for all notes links */
a[href^="/wed_study/notes/"] {
    display: inline-block;
    margin-left: 3px;
    padding: 2px 8px;
    background-color: rgba(47, 82, 51, 0.08);
    border-radius: 0.25rem;
    font-size: 0.9em;
    text-decoration: none;
    color: #2F5233;
    border: 1px solid rgba(47, 82, 51, 0.25);
    font-weight: 600;
    transition: all 0.2s ease;
}

a[href^="/wed_study/notes/"]:hover {
    background-color: rgba(47, 82, 51, 0.15);
    color: #228B22;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Special styling for prominent notes links */
.prominent-notes-link {
    background-color: rgba(139, 69, 19, 0.08) !important;
    color: #8B4513 !important;
    border: 1px solid rgba(139, 69, 19, 0.3) !important;
    padding: 2px 10px !important;
    border-radius: 0.25rem !important;
    font-weight: 600 !important;
}

.prominent-notes-link:hover {
    background-color: rgba(139, 69, 19, 0.15) !important;
    color: #5D4E37 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}
