/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: sans-serif; }
.container { max-width: 100%; margin: 0 auto; padding: 0 20px; }



body { font-family: 'Segoe UI', sans-serif; background-color: #f0f2f5; padding: 10px; }
.container-lama { max-width: 1200px; margin: 0 auto; background: white; padding: 10px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }

h2 { color: #1a73e8; margin-bottom: 20px; }
.success { color: green; margin-bottom: 15px; font-weight: bold; }
.error { color: red; margin-bottom: 15px; font-weight: bold; }

/* Form & Buttons */
.upload-form { display: flex; flex-direction: column; gap: 15px; }
input[type="file"] { padding: 10px; border: 2px dashed #ccc; border-radius: 8px; }
button, .btn-back, .btn-back-biru, .btn-download { 
    padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; text-decoration: none; font-size: 14px;
}
button { background: #1a73e8; color: white; }
.btn-back { background: #5f6368; color: white; float: right; }
.btn-back-biru { background: #AFEEEE; color: white; float: right; }
.btn-preview { background: #34a853; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; }
.btn-download { background: #fbbc05; color: black; padding: 5px 10px; }

/* Table Responsiveness */
.table-container { margin-top: 20px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; }

/* Modal Preview */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); }
.modal-content { background: white; margin: 2% auto; padding: 20px; width: 80%; height: 90%; border-radius: 10px; position: relative; }
.close { position: absolute; right: 20px; top: 10px; font-size: 30px; cursor: pointer; }
iframe { width: 100%; height: 100%; }

/* Footer Grid */
footer { background: #1a1a1a; color: #ccc; padding: 40px 40px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-item h4 { color: white; margin-bottom: 15px; }
.footer-item a { color: #888; text-decoration: none; font-size: 0.9rem; }

@media (max-width: 768px) {
    .responsive-table thead { display: none; }
    .responsive-table tr { display: block; margin-bottom: 5px; border: 1px solid #ddd; }
    .responsive-table td { display: flex; justify-content: space-between; padding: 5px; border-bottom: 1px solid #eee; }
    .responsive-table td::before { content: attr(data-label); font-weight: bold; }
    .modal-content { width: 95%; height: 80%; }
    
    /* Footer Responsive */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .filter-section input { width: 100%; margin-bottom: 10px; }
}

@media screen and (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}