body {
    background-color: white;
}

/* Additional styles beyond Tailwind */

/* Hide scrollbar for tab navigation while allowing scrolling */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Mobile menu animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.2s ease-out forwards;
}

/* Responsive improvements */
@media (max-width: 640px) {
    /* Better button spacing on mobile */
    .flex.space-x-2 {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Improve form elements on small screens */
    input, select, textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* Adjust card padding on mobile */
    .p-6 {
        padding: 1.25rem;
    }
    
    /* Improve table responsiveness */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better header spacing on mobile */
    h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    /* Improve form layout on mobile */
    .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
    
    /* Better button sizing on mobile */
    .py-2.px-4 {
        width: 100%;
        margin-bottom: 0.5rem;
        justify-content: center;
    }
    
    /* Fix button groups */
    .flex.space-x-2 > * {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

/* Medium screens */
@media (min-width: 641px) and (max-width: 1024px) {
    /* Adjust grid columns for tablets */
    .md\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    /* Better spacing for tablet view */
    .gap-6 {
        gap: 1rem;
    }
}

/* Prose styling for report content */
.prose {
    color: inherit;
    max-width: none;
    line-height: 1.6;
}

.prose p {
    margin-top: 1em;
    margin-bottom: 1em;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.prose h1 {
    font-size: 1.5rem;
}

.prose h2 {
    font-size: 1.25rem;
}

.prose h3 {
    font-size: 1.125rem;
}

.prose ul, .prose ol {
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose a {
    color: #3b82f6;
    text-decoration: underline;
}

.prose a:hover {
    text-decoration: none;
}

/* Dark mode adjustments */
.dark .prose {
    color: #e5e7eb;
}

.dark .prose a {
    color: #60a5fa;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* PDF export styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .no-print {
        display: none;
    }
    
    .print-only {
        display: block;
    }
}

/* Enhanced report styling */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Improved tab styling */
.tab-button {
    position: relative;
    transition: all 0.2s ease;
}

.tab-button.active {
    font-weight: 600;
}

/* Enhanced section styling */
#report-sections h2 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

#report-sections h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3b82f6;
    border-radius: 3px;
}

.dark #report-sections h2:after {
    background-color: #60a5fa;
}

/* Improved card styling */
.bg-gray-50.dark\:bg-gray-800 {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bg-gray-50.dark\:bg-gray-800:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Citation styling */
sup.text-blue-600 {
    font-size: 0.75em;
    font-weight: bold;
    padding: 0 2px;
}

/* Improved list styling */
.list-disc li {
    margin-bottom: 0.5rem;
}

/* Improved pricing card styling */
.bg-white.dark\:bg-gray-700 {
    transition: transform 0.2s ease;
}

.bg-white.dark\:bg-gray-700:hover {
    transform: translateY(-2px);
}
