/* ====================================================================
   PDF REPORT EXPORT MODAL STYLES
   Styles for PDF export options and modal dialogs
   ==================================================================== */

/* PDF Export Modal */
.pdf-export-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.pdf-export-modal.hidden {
    display: none;
}

.pdf-modal-content {
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pdf-modal-header {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 25px 30px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.pdf-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.pdf-modal-body {
    padding: 30px;
    color: var(--text-white);
}

.pdf-option-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-option-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pdf-option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
    font-size: 1rem;
}

.pdf-option-description {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 5px;
    line-height: 1.4;
}

.pdf-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pdf-checkbox-wrapper:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pdf-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pdf-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.pdf-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-checkbox input[type="checkbox"]:checked + .pdf-checkbox-custom {
    background: var(--success-green);
    border-color: var(--success-green);
}

.pdf-checkbox input[type="checkbox"]:checked + .pdf-checkbox-custom::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.pdf-checkbox-text {
    color: var(--text-white);
    font-weight: 500;
}

.pdf-input-file {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.pdf-input-file:focus {
    outline: none;
    border-color: var(--success-green);
    background: rgba(255, 255, 255, 0.15);
}

.pdf-input-file::file-selector-button {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-input-file::file-selector-button:hover {
    background: var(--gradient-success);
}

.pdf-input-text {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.pdf-input-text:focus {
    outline: none;
    border-color: var(--success-green);
    background: rgba(255, 255, 255, 0.15);
}

.pdf-input-text::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.pdf-modal-footer {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    min-width: 120px;
    justify-content: center;
}

.pdf-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.pdf-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.pdf-btn-download {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: 2px solid transparent;
}

.pdf-btn-download:hover {
    background: var(--gradient-success);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.3);
}

.pdf-btn-share {
    background: var(--gradient-warning);
    color: var(--text-white);
    border: 2px solid transparent;
}

.pdf-btn-share:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(241, 143, 1, 0.3);
}

/* Logo Preview */
.logo-preview {
    margin-top: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.logo-preview.show {
    display: block;
}

.logo-preview img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.logo-preview-text {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Loading States */
.pdf-generating {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.pdf-generating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: var(--success-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .pdf-modal-header {
        padding: 20px 25px;
    }
    
    .pdf-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .pdf-modal-body {
        padding: 25px;
    }
    
    .pdf-modal-footer {
        padding: 15px 25px;
        flex-direction: column;
        gap: 10px;
    }
    
    .pdf-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pdf-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: none;
    }
    
    .pdf-modal-header {
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .pdf-modal-body {
        padding: 20px;
    }
    
    .pdf-modal-footer {
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .pdf-checkbox-wrapper {
        padding: 10px;
    }
    
    .pdf-option-group {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
}

/* Top Action Buttons */
.assessment-top-actions {
    display: flex;
    gap: 12px;
    margin: 15px 0 25px 0;
    justify-content: flex-end;
}

.assessment-share-btn,
.assessment-pdf-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.assessment-share-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.assessment-share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.assessment-pdf-btn {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
}

.assessment-pdf-btn:hover {
    background: var(--gradient-success);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.4);
}
