:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --success: #27ae60;
  --danger: #e74c3c;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  background: #f0f2f5;
  color: #333;
}

/* ============================================ */
/* NAVIGATION BAR                               */
/* ============================================ */
.main-menu {
  background: var(--primary);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100000000;
  box-shadow: var(--shadow);
  min-width: max-content !important;
}

.menu-brand {
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  flex-shrink: 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  margin-left: 2rem;
}

.menu-items {
  display: flex;
  gap: 0.5rem;
}

/* ============================================ */
/* BUTTONS & ACTIVE STATE                       */
/* ============================================ */
.menu-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.menu-btn.active {
  background: rgba(255, 255, 255, 0.25) !important;
  color: white !important;
  font-weight: bold;
  box-shadow: inset 0 -3px 0 #3498db;
}

.active-indicator {
  font-size: 0.7rem;
  margin-left: 4px;
}

/* ============================================ */
/* USER INFO & LOGOUT                           */
/* ============================================ */
.menu-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: white;
}
.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.role-badge {
  background: var(--secondary);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-top: 2px;
}
.logout {
  background: var(--danger) !important;
  color: white !important;
  font-weight: bold;
}
.logout:hover {
  background: #c0392b !important;
}

/* ============================================ */
/* HAMBURGER SYSTEM                             */
/* ============================================ */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger-icon {
  width: 28px;
  height: 20px;
  position: relative;
  display: block;
}
.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: 0.3s ease-in-out;
}
.hamburger-icon span:nth-child(1) {
  top: 0;
}
.hamburger-icon span:nth-child(2) {
  top: 8px;
}
.hamburger-icon span:nth-child(3) {
  top: 16px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* ============================================ */
/* RESPONSIVE (MOBILE)                          */
/* ============================================ */
@media (max-width: 992px) {
  .hamburger {
    display: block;
  }

  .nav-content {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary);
    padding: 1.5rem;
    gap: 1.5rem;
    margin-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  }

  .nav-content.show {
    display: flex !important;
    animation: slideDown 0.3s ease forwards;
  }
  .menu-items {
    flex-direction: column;
    width: 100%;
  }
  .menu-items button {
    width: 100%;
    text-align: left;
    padding: 1rem;
  }
  .menu-user {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
  }
  .user-info {
    align-items: flex-start;
    margin-bottom: 0.5rem;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
