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

.export-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.export-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.export-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.export-modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.export-modal-close:hover {
    color: #666;
}

.export-modal-body {
    padding: 20px 24px 24px;
}

.export-modal-body p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}

.export-format-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.export-format-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fafafa;
}

.export-format-option:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.export-format-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.export-format-option input[type="checkbox"]:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.export-format-option input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.format-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.format-info strong {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.format-size {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.export-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.export-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.export-btn-primary {
    background-color: #007bff;
    color: white;
}

.export-btn-primary:hover {
    background-color: #0056b3;
}

.export-btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.export-btn-secondary {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.export-btn-secondary:hover {
    background-color: #e9ecef;
    color: #495057;
}

.export-btn-cancel {
    background-color: #6c757d;
    color: white;
}

.export-btn-cancel:hover {
    background-color: #545b62;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .export-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .export-modal-header,
    .export-modal-body {
        padding: 16px 20px;
    }
    
    .export-modal-actions {
        flex-direction: column;
    }
    
    .export-btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .export-format-option {
        padding: 12px;
    }
}

/* Loading state */
.export-modal.loading .export-btn-primary {
    background-color: #ccc;
    cursor: not-allowed;
}

.export-modal.loading .export-btn-primary::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Acts Table Modal Specific Styles - REMOVED: Now opens in new tab */
/* .acts-table-modal-hidden styles removed as modal no longer exists */

.acts-table-content {
    max-width: 90% !important;
    max-height: 90vh !important;
    width: 1200px !important;
}

.acts-table-body {
    padding: 0 !important;
    overflow: hidden !important;
}
