body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.hero-section {
    height: 60vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-image: url('../image/down.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 0;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    font-weight: 300;
    max-width: 600px;
}

.reports-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-bar input[type="text"],
.filter-bar select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 120px;
}

.filter-bar input[type="text"] {
    flex: 3 1 300px;
}

.filter-bar select {
    flex: 1 1 150px;
}

.filter-bar .search-btn {
    padding: 0.75rem 2rem;
    border: none;
    background-color: rgb(12, 99, 0);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-bar .search-btn:hover {
    background-color: rgb(15, 129, 0);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.report-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.report-thumbnail {
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.pdf-thumbnail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-loading {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
}

.report-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 1rem 0;
    line-height: 1.4;
}

.report-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.report-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-view {
    background-color: rgb(10, 87, 0);
    color: white;
    flex: 1;
}

.btn-view:hover {
    background-color: rgb(5, 44, 0);
    box-shadow: 0 3px 8px rgba(152, 27, 27, 0.3);
}

.btn-download {
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #ddd;
    flex: 1;
}

.btn-download:hover {
    background-color: #e9ecef;
    border-color: #aaa;
}

.pdf-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.pdf-viewer-container {
    width: 90%;
    height: 90%;
    background-color: #fff;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.pdf-viewer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #981b1b;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    font-size: 1.2rem;
}

.pdf-viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.pagination a {
    color: #555;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    min-width: 45px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: #e9ecef;
}

.pagination a.active {
    background-color: rgb(13, 112, 0);
    color: white;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .reports-container {
        padding: 3rem 1rem;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-bar input[type="text"],
    .filter-bar select,
    .filter-bar .search-btn {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .reports-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .report-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
}