/* public/assets/css/guest/inventaris.css */

.profil-desa-section {
    font-family: 'Poppins', sans-serif;
    color: #111827;
    padding-bottom: 0;
}

/* Page Header */
.profil-desa-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profil-desa-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2E7D32;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.profil-desa-subtitle::before,
.profil-desa-subtitle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: #2E7D32;
}

.profil-desa-subtitle::before {
    left: -40px;
}

.profil-desa-subtitle::after {
    right: -40px;
}

.profil-desa-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
}

.profil-desa-title span {
    color: #2E7D32;
}

/* Lightweight Scroll Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ── Search Box ── */
.inv-search-box {
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    margin: 0 auto 3rem auto;
    max-width: 600px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}
.inv-search-box:focus-within {
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.15);
    border-color: #a5d6a7;
}
.inv-search-box input {
    border: none;
    box-shadow: none !important;
    background: transparent;
    padding: 10px 15px;
    font-size: 0.95rem;
    color: #1e293b;
    flex: 1;
    outline: none;
}
.inv-search-box input::placeholder { color: #94a3b8; }
.inv-search-box .btn-search {
    border-radius: 50px;
    padding: 8px 24px;
    background: #2E7D32;
    color: #fff;
    border: none;
    font-weight: 600;
    transition: background 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.inv-search-box .btn-search:hover { background: #1b5e20; }
.inv-search-box .btn-reset {
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.inv-search-box .btn-reset:hover { background: #e2e8f0; color: #ef4444; }

/* ── Skeleton Loader ── */
.skeleton-inv-card {
    border-radius: 24px;
    background: #fff;
    border: 1px solid #edf2f7;
    overflow: hidden;
    height: 100%;
}
.skeleton-img-block {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-body { padding: 1.25rem; }
.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 10px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Pagination ── */
.custom-pagination { text-align: center; }
.pagination-wrapper { display: inline-flex; align-items: center; gap: 6px; }
.pagination-btn {
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}
.pagination-btn:hover:not(.disabled):not(.active) {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #16a34a;
}
.pagination-btn.active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
}

/* ── Inventaris Card ── */
.inv-card {
    border: 1px solid #edf2f7;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
}
.inv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}
.inv-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f1f5f9;
    border-radius: 16px;
}
.inv-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.inv-card:hover .inv-img-wrapper img {
    transform: scale(1.05);
}
.inv-status-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}
.inv-status-pill.status-baik {
    background: rgba(22, 163, 74, 0.7);
    border-color: rgba(134, 239, 172, 0.4);
}
.inv-status-pill.status-rusak-ringan {
    background: rgba(245, 158, 11, 0.7);
    border-color: rgba(253, 224, 71, 0.4);
}
.inv-status-pill.status-rusak-berat {
    background: rgba(220, 38, 38, 0.7);
    border-color: rgba(252, 165, 165, 0.4);
}
.inv-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    background-color: #f8fafc;
}
.inv-placeholder i { font-size: 3rem; }
.inv-card-body {
    padding: 1.25rem 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.inv-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.2s ease;
}
.inv-card:hover .inv-title { color: #2E7D32; }
.inv-type {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.inv-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}
.inv-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2E7D32;
}
