/* Pelaporan Page Styles */

/* Report Card */
.report-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.report-card:hover {
    transform: translateY(-2px);
}

/* Filter Sidebar */
.filter-sidebar {
    position: sticky;
    top: 6rem;
}

/* Form Elements */
.filter-sidebar select,
.filter-sidebar input {
    transition: all 0.2s ease;
}

.filter-sidebar select:focus,
.filter-sidebar input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

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

/* Modal Animation */
#pelaporanDetailModal {
    transition: opacity 0.3s ease;
}

#pelaporanDetailModal > div > div {
    animation: modalSlideIn 0.3s ease;
}

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

/* Lightbox */
#imageLightbox {
    transition: opacity 0.3s ease;
}

#imageLightbox img {
    animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stat Card Hover */
.stat-card {
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

/* Pagination */
nav[aria-label="Pagination"] a {
    transition: all 0.2s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .filter-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .report-card .flex-row {
        flex-direction: column;
    }
    
    .report-card .md\\:w-56 {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .filter-sidebar,
    #pelaporanDetailModal,
    #imageLightbox,
    nav[aria-label="Pagination"] {
        display: none !important;
    }
    
    .report-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .report-card,
    #pelaporanDetailModal,
    #imageLightbox,
    .stat-card {
        transition: none !important;
        animation: none !important;
    }
}
