/* ===========================================
    GOOGLE FONT
  =========================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* ===========================================
    RESET
  =========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;

  background:
    linear-gradient(rgba(244, 247, 251, 0.25), rgba(244, 247, 251, 0.25)),
    url("../assets/images/Perumda.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: #1e293b;
}

/* ===========================================
    ROOT
  =========================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --sidebar: #0f172a;
  --sidebar2: #111827;
  --white: #fff;
  --text: #0f172a;
  --text-light: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

/* ===========================================
    SIDEBAR
  =========================================== */

.sidebar {
  width: 200px;
  height: 100svh;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #0f172a, #111827);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 14px;
  overflow-y: hidden;
  backdrop-filter: blur(10px);
  transition:
    transform 0.35s ease,
    width 0.35s ease;
}

/* ==========================
   SIDEBAR Hilang 
========================== */

.sidebar.hide {
  transform: translateX(-100%);
}
.sidebar.hide + .sidebar-overlay + .main {
  margin-left: 0;
  width: 100%;
}

/* ===========================
    LOGO
  =========================== */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: 78px;
  height: 78px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.logo-image img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
}

/* ===========================================
    DIVIDER
  =========================================== */

.sidebar hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 30px 0;
}

/* ===========================================
    MENU TITLE
  =========================================== */

.menu-title {
  color: #7d8da8;
  font-size: 12px;
  letter-spacing: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-align: center;
}
/* ===========================================
    MENU
  =========================================== */
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
  font-size: 12.8px;
  font-weight: 500;
}

.menu i {
  width: 18px;
  font-size: 15px;
  text-align: center;
  flex-shrink: 0;
}

.menu:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(4px);
}

.menu.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ===========================================
    PROFILE
  =========================================== */

.profile {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 700;
}

.user-info h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 2px;
}

.user-info span {
  color: #94a3b8;
  font-size: 11px;
}
/* ===========================================
    MAIN
  =========================================== */

.main {
  margin-left: 200px;
  width: calc(100% - 200px);
  padding: 35px;
  transition: all 0.35s ease;
}

.main.full {
  margin-left: 0;
  width: 100%;
}

/* ===========================================
    TOPBAR
  =========================================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Tombol menu dashboard  buka tutup*/

.menu-toggle {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: 0.3s;
}

.menu-toggle:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(96, 165, 250, 0.35);
}

.menu-toggle:active {
  transform: scale(0.95);
}

/*topbar*/
.topbar h1 {
  font-size: 34px;
  color: #0f172a;
  font-weight: 700;
}

.topbar p {
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
}

/* ===========================================
    OVERLAY
  =========================================== */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 998;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}
/* ===========================================
      brand
  =========================================== */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}
.brand-text {
  flex: 1;
}

.brand h2 {
  color: #fff;
  font-size: 18px;
  letter-spacing: 5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.brand-text h4 {
  font-size: 15px;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 4px;
}

.brand p {
  color: #cbd5e1;
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.brand-text span {
  color: #94a3b8;

  font-size: 14px;

  line-height: 1.6;
}

.company-box {
  width: 100%;
  background: #1e293b;
  border-radius: 12px;
  text-align: center;
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.company-box small {
  color: #93c5fd;
  font-size: 10px;
  letter-spacing: 2px;
  text-align: center;
}

.company-box h3 {
  color: #fff;
  margin-top: 3px;
  font-size: 12px;
}
