/* =====================================================
   GLOBAL STYLE – MATANDRE INDONESIA
   FINAL | SIAP COPY-PASTE
===================================================== */

/* RESET */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* BODY GLOBAL */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #111827;
}

/* =========================
   CENTER PAGE (LOGIN / EMPTY)
========================= */
.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;       /* vertical */
  justify-content: center;   /* horizontal */
}

/* =========================
   CARD
========================= */
.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* =========================
   LOGO
========================= */
.logo {
  width: 96px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

/* =========================
   HEADER / NAVBAR
========================= */
.app-header {
  background: #111827;
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 36px;
  height: auto;
}

.brand span {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

nav a {
  color: #e5e7eb;
  margin: 0 10px;
  text-decoration: none;
  font-size: 14px;
}

nav a:hover {
  text-decoration: underline;
}

nav a.active {
  font-weight: 600;
  text-decoration: underline;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
}

/* =========================
   FORM
========================= */
input, select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #2563eb;
}

/* GRID FORM */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

/* =========================
   BUTTON
========================= */
button {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1e40af;
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

/* =========================
   TABLE
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #f9fafb;
  font-weight: 600;
}

/* =========================
   BADGE (STOK / STATUS)
========================= */
.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.badge.success {
  background: #dcfce7;
  color: #166534;
}

.badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

/* =========================
   TOTAL / HIGHLIGHT
========================= */
.total {
  font-size: 18px;
  font-weight: 600;
  text-align: right;
  margin-top: 12px;
}

/* =========================
   FOOTER TEXT
========================= */
.text-center {
  text-align: center;
}

.text-muted {
  color: #6b7280;
  font-size: 12px;
}
