/* Additional custom styles for the vulnerability report generator */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Form animations */
.form-section {
    transition: all 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading animation for PDF generation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Drag and drop zone animations */
.drag-over {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
    transform: scale(1.02);
}

/* Image preview hover effects */
.image-preview {
    transition: all 0.3s ease;
}

.image-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Severity level animations */
.severity-transition {
    transition: all 0.3s ease;
}

/* Code block styling */
.code-block {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 14px;
}

/* Step numbering */
.step-number {
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.step-item:hover .step-number {
    transform: scale(1.1);
}

/* Reference input styling */
.reference-item input[type="url"]:valid {
    border-color: #10b981;
}

.reference-item input[type="url"]:invalid {
    border-color: #ef4444;
}

/* PDF generation button */
.pdf-generate-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pdf-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.pdf-generate-btn:active {
    transform: translateY(0);
}

.pdf-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Demo button styling */
.demo-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-2.md\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Ensure text is visible in input fields */
input[type="text"],
input[type="number"],
input[type="url"],
textarea {
    color: #111827 !important;
    background-color: #ffffff !important;
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder {
    color: #6b7280 !important;
}

/* Ensure all form elements have light theme styling */
.form-section {
    background-color: #ffffff !important;
    color: #111827 !important;
}

.form-section h2 {
    color: #111827 !important;
}

.form-section label {
    color: #374151 !important;
}

/* Button styling for light theme */
button {
    color: inherit;
}

/* Demo button styling for light theme */
.demo-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
}

/* PDF generation button styling for light theme */
.pdf-generate-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .severity-critical {
        background-color: #000;
        color: #fff;
        border-left-color: #fff;
    }
    
    .severity-high {
        background-color: #000;
        color: #fff;
        border-left-color: #fff;
    }
    
    .severity-medium {
        background-color: #000;
        color: #fff;
        border-left-color: #fff;
    }
    
    .severity-low {
        background-color: #000;
        color: #fff;
        border-left-color: #fff;
    }
}

/* Force light theme - override any dark mode preferences */
body {
    background-color: #f9fafb !important;
    color: #111827 !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.text-gray-800 {
    color: #111827 !important;
}

.text-gray-600 {
    color: #4b5563 !important;
}

.border-gray-300 {
    border-color: #d1d5db !important;
}

.bg-gray-50 {
    background-color: #f9fafb !important;
}

/* Ensure all text is dark in light theme */
h1, h2, h3, h4, h5, h6 {
    color: #111827 !important;
}

p, span, div {
    color: inherit;
}

/* Input field styling for light theme */
input[type="text"],
input[type="number"],
input[type="url"],
textarea {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: #3b82f6 !important;
}

/* Severity level styling for light theme */
.severity-critical {
    background-color: #fecaca !important;
    border-left-color: #991b1b !important;
    color: #991b1b !important;
}

.severity-high {
    background-color: #fee2e2 !important;
    border-left-color: #dc2626 !important;
    color: #dc2626 !important;
}

.severity-medium {
    background-color: #fef3c7 !important;
    border-left-color: #d97706 !important;
    color: #d97706 !important;
}

.severity-low {
    background-color: #d1fae5 !important;
    border-left-color: #059669 !important;
    color: #059669 !important;
}
