/* --- DOCUMENT LIST STYLES --- */

/* Styles the bold document number */
.document-number {
    color: #333;
    font-weight: bold;
}

/* Removes default bullets and spacing from the list */
.ald-document-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Styles each list item with a border and spacing */
.ald-document-list li {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

/* Styles the link text inside the list */
.ald-document-list a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: color 0.2s ease;
}

/* Changes the link color on hover */
.ald-document-list a:hover {
    color: #005177;
}

/* --- MODAL STYLES --- */

/* Modal Overlay - Centered using Flexbox */
.ald-modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow: hidden;
}

/* Modal Content (The box that holds the viewer) */
.ald-modal-content {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #888;
    width: 90%;
    height: 90%;
    max-width: 1000px;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    box-sizing: border-box;
    margin-top: 50px;
}

/* The new PDF viewer container */
#ald-pdf-viewer {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    text-align: left;
}

/* The Close Button */
.ald-modal-close-button {
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    position: absolute;
    top: -15px;
    right: -15px;
    cursor: pointer;
    background-color: #333;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 2px solid #aaa;
}

.ald-modal-close-button:hover,
.ald-modal-close-button:focus {
    color: #bbb;
}

/* Disable body scroll when modal is open */
body.ald-modal-open {
    overflow: hidden;
}