@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

* {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
}

.nav-bar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 !important;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 3rem;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.nav-left h2 {
  color: #2c5aa0;
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
}

.nav-left h2 i {
  margin-right: 10px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #4caf50, #2196f3);
  -webkit-text-fill-color: transparent;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.nav-link {
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
  padding: 5px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #2c5aa0;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #4caf50, #2196f3, #ffeb3b);
  border-radius: 2px;
}

.btn-logout {
  font-family: Nunito;
  background-color: #f44336;
  color: white;
  border: none;
  padding: 6px 13px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 650;
  font-size: 14px;
}

.btn-logout:hover {
  background-color: #000;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Responsive Navigation */
@media (max-width: 1024px) {
  .nav-container {
    padding: 15px 2rem;
  }

  .nav-links {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 15px 1.5rem;
    flex-wrap: wrap;
  }

  .nav-right {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    gap: 15px;
    z-index: 1001;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .btn-logout {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 12px 1rem;
  }

  .nav-left h2 {
    font-size: 1.3rem;
  }

  .nav-left h2 i {
    font-size: 1.5rem;
  }
}

/* Demo content styling */
.demo-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-content h1 {
  color: #2c5aa0;
  margin-bottom: 20px;
}

.demo-content p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.demo-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.demo-content li {
  margin-bottom: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  color: #2c5aa0;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-selector {
  margin: 20px 0;
  padding: 15px;
  background: #f0f7ff;
  border-radius: 8px;
  border-left: 4px solid #2c5aa0;
}

.role-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.role-btn {
  padding: 8px 15px;
  background: #2c5aa0;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.role-btn:hover {
  background: #1e3d6f;
}

.role-btn.active {
  background: #4caf50;
}

.mobile-test {
  display: none;
  background: #ffeb3b;
  padding: 10px;
  border-radius: 4px;
  margin: 20px 0;
  text-align: center;
}

@media (max-width: 768px) {
  .mobile-test {
    display: block;
  }
}
