/* =========================================================
   Inventaris Barang_Ranti — Tema Soft Yellow
   CSS ini melengkapi Bootstrap, bukan menggantikannya.
   ========================================================= */

:root {
  --cream: #fffaf0;
  --soft-yellow: #ffe9b8;
  --gold: #f4b942;
  --gold-dark: #e0a52e;
  --pink: #ffd6e0;
  --rose: #f5a3b7;
  --text-dark: #6b5344;
  --text-muted: #a68a72;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(228, 168, 82, 0.18);
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background: linear-gradient(160deg, var(--cream) 0%, var(--soft-yellow) 55%, var(--pink) 100%);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, .brand {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  color: var(--text-dark);
}

/* ---------- Halaman Login ---------- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-wrapper::before,
.login-wrapper::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  z-index: 0;
}

.login-wrapper::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--rose), transparent 70%);
  top: -80px;
  left: -80px;
}

.login-wrapper::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  bottom: -100px;
  right: -100px;
}

.login-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.login-card .logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto 1rem;
}

/* ---------- Tombol & Form ---------- */
.btn-ranti {
  background: linear-gradient(135deg, var(--gold), var(--rose));
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.6rem 1rem;
}

.btn-ranti:hover {
  filter: brightness(1.05);
  color: #fff;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(244, 185, 66, 0.25);
}

/* ---------- Layout Dashboard ---------- */
.sidebar {
  background: linear-gradient(180deg, #fff 0%, var(--soft-yellow) 100%);
  min-height: 100vh;
  box-shadow: 2px 0 15px rgba(228, 168, 82, 0.12);
}

.sidebar .brand {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid rgba(107, 83, 68, 0.1);
}

.sidebar .nav-link {
  color: var(--text-dark);
  border-radius: 12px;
  margin: 0.15rem 0.7rem;
  font-weight: 500;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: linear-gradient(135deg, var(--gold), var(--rose));
  color: #fff;
}

.topbar {
  background: #fff;
  box-shadow: 0 2px 12px rgba(228, 168, 82, 0.12);
}

.role-badge {
  background: linear-gradient(135deg, var(--gold), var(--rose));
  color: #fff;
  border-radius: 50px;
  padding: 0.25rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- Kartu Statistik ---------- */
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
  padding: 1.3rem;
}

.stat-card .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--rose));
}

.stat-card .stat-value {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
}

.card-soft {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.table-ranti thead {
  background: var(--soft-yellow);
  color: var(--text-dark);
}

.badge-low {
  background: var(--rose);
  color: #fff;
}
