/* ================= IMPORT FONT ================= */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* ===== PAGE LAYOUT ===== */
.laporan-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    font-family: "Poppins", sans-serif;
}

.page-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    color: white;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.page-banner h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.page-banner p {
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 650px;
    line-height: 1.6;
    margin: 0;
}

/* ===== SEARCH SECTION ===== */
.search-section {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    padding: 0 12px;
    border-radius: 10px;
    width: 250px;
}

.search-input-wrapper i {
    color: #94a3b8;
    font-size: 0.9rem;
}

.search-input-wrapper input {
    border: none;
    padding: 10px 8px;
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    color: #1e293b;
}

.btn-search {
    background: white;
    color: #1e3a8a;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-clear {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    .page-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 2rem;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-form {
        width: 100%;
    }
}

/* ===== LAPORAN GRID ===== */
.laporan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ===== LAPORAN CARD ===== */
.laporan-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.laporan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: #bfdbfe;
}

.laporan-card-top {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f8fafc;
    flex-grow: 1;
}

.pdf-icon-wrapper {
    background: #fee2e2;
    color: #ef4444;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.laporan-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.laporan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: #3b82f6;
}

.laporan-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.laporan-card-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

/* ===== DOWNLOAD BUTTON ===== */
.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: white;
    color: #3b82f6;
    border: 1.5px solid #bfdbfe;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: "Poppins", sans-serif;
}

.btn-download:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h3 {
    color: #64748b;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .laporan-grid {
        grid-template-columns: 1fr;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }
}

/* ===== PROTECTED BUTTON ===== */
.btn-download.protected {
    border-color: #f59e0b;
    color: #d97706;
}

.btn-download.protected:hover {
    background: #f59e0b;
    color: white;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: #f8fafc;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ef4444;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.modal-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 0 14px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.modal-input-group:focus-within {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.modal-input-group i {
    color: #64748b;
}

.modal-input-group input {
    border: none;
    background: none;
    width: 100%;
    padding: 12px 0;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    color: #0f172a;
}

.modal-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 10px;
    min-height: 20px;
    font-weight: 500;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cancel:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-verify {
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-verify:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-verify:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ====== PAGINATION ====== */
.pagination-container {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.6rem;
    border-radius: 50px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-link {
    text-decoration: none;
    color: #1e293b;
    height: 40px;
    min-width: 40px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.page-link.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.page-link.prev,
.page-link.next {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.page-link.prev:hover,
.page-link.next:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

@media (max-width: 640px) {
    .pagination {
        flex-direction: column;
        border-radius: 20px;
        width: 100%;
        padding: 1rem;
    }

    .page-numbers {
        order: 1;
    }

    .page-link.prev {
        order: 2;
        width: 100%;
    }

    .page-link.next {
        order: 3;
        width: 100%;
    }
}