.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
}

.modal-container {
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    padding: 28px 32px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    font-size: 22px;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.3px;
}

.modal-content {
    padding: 32px;
    border-bottom: 1px solid #e9ecef;
    background-color: #ffffff;
}

.citation-text {
    font-size: 14px;
    color: #495057;
    line-height: 1.7;
    margin: 0;
    text-align: left;
    word-break: break-word;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.citation-text em {
    font-style: italic;
    color: #495057;
    font-weight: 500;
}

.modal-footer {
    padding: 20px 32px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 10px 20px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #495057;
    white-space: nowrap;
}

.btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.btn-dropdown {
    appearance: none;
    background-color: #ffffff;
    color: #495057;
    border: 1px solid #dee2e6;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23495057' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    min-width: 120px;
}

.btn-dropdown:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.btn-dropdown:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.btn-dropdown option {
    color: #495057;
    background-color: #ffffff;
    padding: 10px;
}

.btn-copy {
    background-color: #ffffff;
    color: #495057;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.btn-copy:active {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.copy-icon {
    font-size: 16px;
    display: inline-flex;
}

.btn-close {
    background-color: #ffffff;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-close:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

/* Responsive design */
@media (max-width: 600px) {
    .modal-container {
        margin: 10px;
        border-radius: 6px;
    }

    .modal-header {
        padding: 20px 20px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-content {
        padding: 20px;
    }

    .citation-text {
        font-size: 13px;
        line-height: 1.6;
    }

    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        width: 100%;
        padding: 12px 16px;
    }
}
