/* =========================================================
   RESET & STANDARD
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;

  font-family: "Segoe UI", Arial, sans-serif;

  background: #eef2f7;
  color: #1f2937;
}

body {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

a {
  text-decoration: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

.sidebar-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.sidebar-logo img {
  width: 170px;
  height: 170px;
}

.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-logo img {
  width: 170px;
  height: 170px;
}

/* MOBILE NAV */

.mobile-menu-btn {
  display: none;

  width: 48px;
  height: 48px;

  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #2563eb;
  color: white;

  font-size: 26px;
  font-weight: 900;

  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);

  z-index: 1200;
}

.mobile-menu-btn:hover {
  background: #1d4ed8;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  body {
    display: block;
  }

  /* SIDEBAR */

  .sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 290px;

    transform: translateX(-100%);
    transition: transform 0.25s ease;

    z-index: 1100;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar-logo h2 {
    color: white;
    font-size: 22px;
  }

  /* NAV BUTTON */

  .mobile-menu-btn {
    display: flex;
    position: sticky;
    top: 18px;
    right: 18px;
    left: 18px;
  }

  /* CONTENT */

  .dashboard,
  .infoboard,
  .users,
  .maintenance,
  .inventory,
  .tasks,
  .technician,
  .logistics {
    width: 100%;

    margin-left: 0;
    padding-top: 90px;
  }

  /* OVERLAY */

  .sidebar-overlay {
    position: fixed;
    inset: 0;

    background: rgba(15, 23, 42, 0.5);

    opacity: 0;
    visibility: hidden;

    transition: 0.2s ease;

    z-index: 1000;
  }

  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #e5e7eb;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* TOAST MESSAGE */

.toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 280px;
  max-width: 380px;

  padding: 14px 18px;

  border-radius: 14px;

  color: white;

  font-size: 14px;
  font-weight: 800;

  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);

  opacity: 0;
  transform: translateY(12px);

  transition: 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #22c55e;
}

.toast-error {
  background: #ef4444;
}

.toast-warning {
  background: #f59e0b;
}

.toast-info {
  background: #2563eb;
}

@media (max-width: 700px) {
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    width: 100%;
    max-width: none;
  }
}
