/* General */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; background-color: #f4f4f4; color: #333; }
.container { max-width: 960px; margin: 20px auto; padding: 15px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* Navigation */
nav { background-color: #333; padding: 1rem; text-align: center; }
nav a { color: white; text-decoration: none; margin: 0 15px; font-size: 1.1rem; }
nav a:hover { text-decoration: underline; }

/* Typography */
h1, h2, h3, h4, h5, h6 { color: #333; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 12px; border: 1px solid #ddd; text-align: left; }
th { background-color: #f2f2f2; }
tr:nth-child(even) { background-color: #f9f9f9; }

/* Forms */
input[type="text"], input[type="number"], input[type="date"], select, textarea { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
button { background-color: #007bff; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; }
button:hover { background-color: #0056b3; }
.button { display: inline-block; background-color: #007bff; color: white; padding: 10px 15px; text-decoration: none; border-radius: 4px; }
.button:hover { background-color: #0056b3; }
button.secondary, .button.secondary { background-color: #6c757d; }
button.secondary:hover, .button.secondary:hover { background-color: #5a6268; }
button.danger, .button.danger { background-color: #dc3545; }
button.danger:hover, .button.danger:hover { background-color: #c82333; }

/* Alert */
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; }
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #fefefe; margin: 15% auto; padding: 20px; border: 1px solid #888; width: 90%; max-width: 500px; border-radius: 8px; }
.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; }
.close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; }

/* Dashboard Cards */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.card { background: #e9ecef; padding: 20px; border-radius: 8px; text-align: center; }
.card h3 { margin: 0 0 10px 0; font-size: 2.5rem; color: #007bff; }

/* Image Styles */
.img-thumbnail { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }
.no-image { font-size: 0.8em; color: #999; background-color: #f0f0f0; padding: 5px; border-radius: 4px; display: inline-block; }

/* Transaksi Detail */
.product-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.product-row select { flex-grow: 1; }
.product-row input[type="number"] { width: 100px; }

/* Responsive */
@media (max-width: 768px) {
    .container { margin: 0; border-radius: 0; box-shadow: none; }
    nav a { display: block; margin: 10px 0; }
    table { font-size: 0.9rem; }
    th, td { padding: 8px; }
    .product-row { flex-direction: column; align-items: stretch; }
    .product-row input[type="number"] { width: 100%; }
}

/* ... (kode CSS lama) ... */

/* Badge Style */
.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    border-radius: 5px;
}
.bg-success {
    background-color: #28a745;
}