/* Appendix Private Access Styles */



/* Modal Styles */
.appendix-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background blur effect when modal is open */
body.modal-open {
    overflow: hidden;
}

body.modal-open > *:not(.appendix-modal) {
    filter: blur(8px);
}

.appendix-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.appendix-modal-header {
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.appendix-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.appendix-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    right: 20px;
    top: 20px;
}

.appendix-modal-close:hover,
.appendix-modal-close:focus {
    color: #000;
}

.appendix-modal-body {
    padding: 20px;
}

#appendix-codes-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

#appendix-codes-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.appendix-modal-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.appendix-modal-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.appendix-modal-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.appendix-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.appendix-modal-btn {
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.appendix-modal-cancel {
    background-color: #6c757d;
    color: white;
}

.appendix-modal-cancel:hover {
    background-color: #5a6268;
}

.appendix-modal-unlock {
    background-color: #0073aa;
    color: white;
}

.appendix-modal-unlock:hover {
    background-color: #005a87;
}

.appendix-modal-unlock:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Appendix Placeholder */
.appendix-placeholder {
    display: none;
}



/* Responsive Design */
@media (max-width: 600px) {
    .appendix-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .appendix-modal-header,
    .appendix-modal-body,
    .appendix-modal-footer {
        padding: 15px;
    }
    
    .appendix-modal-footer {
        text-align: center;
    }
    
    .appendix-modal-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
} 