/* Report Generation Settings Styles */

/* Generate Report Button */
.generate-report-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    border: 1px solid rgba(59, 130, 246, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.generate-report-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Style Options */
.style-option {
    display: block;
    position: relative;
    cursor: pointer;
    background: rgba(31, 41, 55, 0.5);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.2s;
}

.style-option:hover {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
}

.style-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.style-option input[type="radio"]:checked + .style-option-content {
    color: #60A5FA;
}

.style-option input[type="radio"]:checked ~ * {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.1);
}

.style-option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(75, 85, 99, 0.5);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #60A5FA;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #60A5FA;
    cursor: pointer;
    transition: all 0.2s;
}

/* Checkboxes */
.section-checkbox {
    width: 1rem;
    height: 1rem;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 0.25rem;
    cursor: pointer;
}

.section-checkbox:checked {
    background: #60A5FA;
    border-color: #60A5FA;
}

/* Generated Report Section */
#generatedReportSection {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#generatedReportContent {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

#generatedReportContent h1,
#generatedReportContent h2,
#generatedReportContent h3,
#generatedReportContent h4 {
    color: #F3F4F6;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

#generatedReportContent h1 { font-size: 1.5rem; }
#generatedReportContent h2 { font-size: 1.25rem; margin-top: 1.5rem; }
#generatedReportContent h3 { font-size: 1.125rem; margin-top: 1.25rem; }
#generatedReportContent h4 { font-size: 1rem; margin-top: 1rem; }

#generatedReportContent p {
    margin-bottom: 0.75rem;
    color: #E5E7EB;
}

#generatedReportContent ul,
#generatedReportContent ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

#generatedReportContent li {
    margin-bottom: 0.25rem;
}

#generatedReportContent strong {
    color: #F9FAFB;
    font-weight: 600;
}

/* Loading Animation */
.report-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.report-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #60A5FA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.report-loading-text {
    color: #9CA3AF;
    font-size: 0.875rem;
    text-align: center;
}

.report-loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(75, 85, 99, 0.5);
    border-radius: 2px;
    overflow: hidden;
}

.report-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #60A5FA 0%, #A78BFA 100%);
    width: 0%;
    animation: progress 3s ease-out forwards;
}

@keyframes progress {
    to { width: 90%; }
}

/* Preset Save Dialog */
.preset-save-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(31, 41, 55, 0.98);
    border: 1px solid rgba(75, 85, 99, 0.8);
    border-radius: 0.5rem;
    padding: 1.5rem;
    z-index: 60;
    min-width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.preset-save-dialog input {
    width: 100%;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    color: #E5E7EB;
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin: 0.75rem 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .style-option {
        font-size: 0.875rem;
    }
    
    #reportGenerationSettings .bg-gray-900 {
        max-width: 95vw;
    }
}