/* Additional custom styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Animation for alerts */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bg-green-100, .bg-red-100 {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive table */
@media (max-width: 640px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.prose {
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

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

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

/* For the multi-select dropdown */
select[multiple] {
    background-image: none;
    padding-right: 0.75rem;
}

/* For the filter panel */
.export-filters {
    transition: all 0.3s ease;
}

/* Make the date inputs look consistent across browsers */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    min-height: 38px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    background-color: #f3f4f6;
    font-weight: 600;
}

td, th {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Modal styles */
.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

.overflow-hidden {
    overflow: hidden;
}

/* Animation for modal */
.modal-enter {
    opacity: 0;
}

.modal-enter-active {
    opacity: 1;
    transition: opacity 200ms;
}

.modal-exit {
    opacity: 1;
}

.modal-exit-active {
    opacity: 0;
    transition: opacity 200ms;
}

/* Multi-select styling */
select[multiple] {
    background-image: none;
    height: auto;
    min-height: 120px;
}

/* Modal content styling */
.max-w-md {
    max-width: 28rem;
}

/* Smooth transitions */
#exportFields {
    transition: all 0.3s ease;
}

/* Button hover effects */
.hover\:bg-green-700:hover {
    background-color: #047857;
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

/* Camera button styles */
.camera-button {
    transition: all 0.2s ease;
}

.camera-button:active {
    transform: scale(0.95);
}

/* Preview image styling */
.photo-preview {
    border: 2px dashed #e5e7eb;
    transition: border-color 0.3s ease;
}

.photo-preview:hover {
    border-color: #3b82f6;
}

/* Logo styles */
.logo-container {
    max-width: 300px;
    margin: 0 auto 2rem;
}

.logo-img {
    height: auto;
    width: 100%;
    max-height: 120px;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .logo-img {
        max-height: 80px;
    }
    
    .logo-container {
        max-width: 200px;
    }
}

/* Mobile menu styles */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px; /* Adjust based on your content */
    padding-bottom: 1rem;
}

/* Hamburger icon animation */
[aria-expanded="true"] svg {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* Ensure clickable area is large enough for mobile */
#mobile-menu-button {
    min-width: 48px;
    min-height: 48px;
}
.export-format-fields {
    transition: all 0.3s ease;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.whitespace-pre-wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Smooth scrolling for modal content */
.max-h-\[calc\(90vh-120px\)\] {
    scroll-behavior: smooth;
}

/* Custom scrollbar for report content */
#reportContent::-webkit-scrollbar {
    width: 6px;
}

#reportContent::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#reportContent::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#reportContent::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}