.usl-download-links-section {
    margin-top: 2em;
    padding: 1.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.usl-info-text {
    margin: 0 0 1em;
    font-size: 1em;
    color: #333;
}

.usl-add-link-btn {
    display: inline-block;
    padding: 0.5em 1.2em;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
}

.usl-add-link-btn:hover {
    background: #135e96;
}

.usl-approved-links {
    margin-bottom: 1em;
}

.usl-download-links-section:not(.usl-has-links) .usl-add-link-area {
    margin-top: 0;
}

.usl-download-links-section.usl-has-links .usl-add-link-area {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #e0e0e0;
}

.usl-download-links-section.usl-has-links .usl-add-link-area .usl-info-text {
    font-size: 0.875em;
    color: #555;
}

.usl-download-links-section.usl-has-links .usl-add-link-area .usl-add-link-btn {
    font-size: 0.85em;
    padding: 0.4em 1em;
}

.usl-section-title {
    margin: 0 0 0.75em;
    font-size: 1.1em;
}

.usl-links-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.usl-links-table td {
    padding: 0.6em 0.8em;
    border-bottom: 1px solid #eee;
}

.usl-links-table tr:last-child td {
    border-bottom: none;
}

.usl-approved-link {
    color: #2271b1;
    text-decoration: none;
}

.usl-approved-link:hover {
    text-decoration: underline;
}

/* Modal */
.usl-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.usl-modal[aria-hidden="false"] {
    display: flex;
}

.usl-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.usl-modal-content {
    position: relative;
    background: #fff;
    padding: 2em;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.usl-modal-close {
    position: absolute;
    top: 0.75em;
    right: 0.75em;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.usl-modal-close:hover {
    color: #000;
}

.usl-modal-title {
    margin: 0 0 1.25em;
    font-size: 1.25em;
}

.usl-link-row {
    display: flex;
    gap: 0.5em;
    margin-bottom: 0.75em;
}

.usl-link-url {
    flex: 2;
    padding: 0.5em;
}

.usl-link-text {
    flex: 1;
    padding: 0.5em;
}

.usl-add-another-link {
    padding: 0.4em 0.8em;
    margin-bottom: 1em;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.usl-add-another-link:hover {
    background: #e5e5e5;
}

.usl-form-actions {
    display: flex;
    gap: 0.5em;
    margin-top: 1em;
}

.usl-submit-btn {
    padding: 0.5em 1.2em;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.usl-submit-btn:hover {
    background: #135e96;
}

.usl-cancel-btn {
    padding: 0.5em 1.2em;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.usl-message {
    margin-top: 1em;
    padding: 0.75em;
    border-radius: 4px;
}

.usl-message.success {
    background: #d4edda;
    color: #155724;
}

.usl-message.error {
    background: #f8d7da;
    color: #721c24;
}

.usl-loading {
    margin-top: 1em;
    font-style: italic;
}
