/* Tambahkan kode ini ke file style.css yang sudah ada */

/* ===== STYLE UNTUK HALAMAN LAPAK ===== */
.lapak-section {
    padding: 40px 0;
}

.search-filter-lapak {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-input-lapak {
    flex: 1;
    min-width: 300px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input-lapak:focus {
    border-color: #2c7a2c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 122, 44, 0.1);
}

.filter-select-lapak {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.products-grid-lapak {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px;
}

.product-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f7f0;
    color: #2c7a2c;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c7a2c;
    margin-bottom: 15px;
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.seller-icon {
    color: #2c7a2c;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-whatsapp {
    flex: 1;
    background: #25D366;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-detail {
    flex: 1;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-detail:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.add-product-section {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.btn-add-product {
    background: linear-gradient(135deg, #2c7a2c 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(44, 122, 44, 0.2);
}

.btn-add-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 122, 44, 0.3);
}

/* Modal Lapak */
.modal-lapak {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content-lapak {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header-lapak {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-lapak h2 {
    margin: 0;
    color: #333;
}

.close-modal-lapak {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal-lapak:hover {
    color: #333;
}

.modal-body-lapak {
    padding: 20px;
}

.form-group-lapak {
    margin-bottom: 20px;
}

.form-group-lapak label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control-lapak {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control-lapak:focus {
    border-color: #2c7a2c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 122, 44, 0.1);
}

textarea.form-control-lapak {
    min-height: 100px;
    resize: vertical;
}

.file-upload-lapak {
    position: relative;
    overflow: hidden;
}

.file-upload-lapak input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label-lapak {
    display: block;
    padding: 12px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    text-align: center;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label-lapak:hover {
    border-color: #2c7a2c;
    color: #2c7a2c;
}

.btn-submit-lapak {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2c7a2c 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-lapak:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 122, 44, 0.3);
}

/* ===== STYLE UNTUK HALAMAN GALERI ===== */
.galeri-section {
    padding: 40px 0;
}

.gallery-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn-galeri {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn-galeri:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.filter-btn-galeri.active {
    background: #2c7a2c;
    color: white;
    border-color: #2c7a2c;
}

.gallery-grid-galeri {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item-galeri {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.gallery-item-galeri:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.gallery-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item-galeri:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 15px;
}

.gallery-category {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f7f0;
    color: #2c7a2c;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
}

.gallery-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.gallery-description {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 12px;
    margin-top: 10px;
}

/* Lightbox */
.lightbox-galeri {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content-galeri {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-content-galeri img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-lightbox-galeri {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-lightbox-galeri:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-info-galeri {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0 0 8px 8px;
    padding: 20px;
    color: white;
    margin-top: -4px;
}

.lightbox-title-galeri {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.lightbox-description-galeri {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ddd;
}

.lightbox-meta-galeri {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #bbb;
}

/* ===== STYLE UNTUK HALAMAN PENGADUAN ===== */
.pengaduan-section {
    padding: 40px 0;
}

.complaint-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card-pengaduan {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
}

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

.stat-card-pengaduan h3 {
    font-size: 36px;
    color: #2c7a2c;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-card-pengaduan p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.complaint-form-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.section-title-pengaduan {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.form-grid-pengaduan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.complaints-list-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.filter-controls-pengaduan {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.select-filter-pengaduan {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.complaints-grid-pengaduan {
    display: grid;
    gap: 20px;
}

.complaint-card-pengaduan {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #ddd;
    transition: all 0.3s;
    cursor: pointer;
}

.complaint-card-pengaduan:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.complaint-card-pengaduan.status-baru {
    border-left-color: #2c7a2c;
}

.complaint-card-pengaduan.status-diproses {
    border-left-color: #f59e0b;
}

.complaint-card-pengaduan.status-selesai {
    border-left-color: #10b981;
}

.complaint-header-pengaduan {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.complaint-title-pengaduan {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.status-badge-pengaduan {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge-pengaduan.baru {
    background: #d4edda;
    color: #155724;
}

.status-badge-pengaduan.diproses {
    background: #fff3cd;
    color: #856404;
}

.status-badge-pengaduan.selesai {
    background: #d1ecf1;
    color: #0c5460;
}

.complaint-description-pengaduan {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.complaint-footer-pengaduan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 14px;
}

.complaint-category-pengaduan {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* Modal Detail Pengaduan */
.modal-pengaduan {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content-pengaduan {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-header-pengaduan {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body-pengaduan {
    padding: 20px;
}

.detail-item-pengaduan {
    margin-bottom: 20px;
}

.detail-item-pengaduan h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.detail-item-pengaduan p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.response-section-pengaduan {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.response-section-pengaduan h4 {
    color: #2c7a2c;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid-lapak,
    .gallery-grid-galeri {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .search-filter-lapak {
        flex-direction: column;
    }
    
    .search-input-lapak {
        min-width: 100%;
    }
    
    .complaint-stats {
        grid-template-columns: 1fr;
    }
    
    .form-grid-pengaduan {
        grid-template-columns: 1fr;
    }
}