* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Top Bar (like EasyChair) */
.top-bar {
  background-color: #1a365d;
  color: white;
  padding: 8px 0;
  font-size: 14px;
  display: block !important; /* Force display on all screens */
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.top-bar-links a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
}

.top-bar-links a:hover {
  text-decoration: underline;
}

/* Main Navbar */
.navbar {
  background-color: #2c5282;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
}

.logo i {
  font-size: 28px;
  margin-right: 10px;
  color: #63b3ed;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  padding: 0 20px;
  height: 70px;
  font-size: 16px;
  transition: background 0.3s;
  white-space: nowrap;
}

.nav-links > li > a:hover {
  background: #2a4365;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 4px 4px;
  z-index: 1000;
}

.dropdown-menu a {
  color: #2d3748;
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  display: block;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #edf2f7;
}

.nav-links li:hover .dropdown-menu {
  display: block;
}

/* User Actions */
.user-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-actions a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 4px;
  transition: background 0.3s;
  white-space: nowrap;
}

.user-actions a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.login-btn {
  background: #4299e1;
}

.login-btn:hover {
  background: #3182ce;
}

.register-btn {
  background: #38a169;
}

.register-btn:hover {
  background: #2f855a;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .nav-links > li > a {
    padding: 0 15px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    /* Ensure top bar is always visible */
    display: block !important;
    padding: 6px 0;
  }
  
  .top-bar-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 5px 20px;
  }
  
  .top-bar-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .top-bar-links a {
    margin: 0;
    font-size: 13px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2c5282;
    flex-direction: column;
    width: 100%;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links > li > a {
    padding: 15px 20px;
    height: auto;
    justify-content: space-between;
    border-bottom: 1px solid #2a4365;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    display: none;
    background: #2a4365;
  }
  
  .dropdown-menu a {
    color: white;
    padding-left: 30px;
    border-bottom: 1px solid #2c5282;
  }
  
  .dropdown-menu a:hover {
    background: #2c5282;
  }
  
  .nav-links li.active .dropdown-menu {
    display: block;
  }
  
  .user-actions {
    display: none;
  }
  
  .logo-text {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .top-bar {
    font-size: 12px;
  }
  
  .top-bar-links {
    gap: 10px;
  }
  
  .top-bar-links a {
    font-size: 12px;
  }
  
  .logo-text {
    font-size: 20px;
  }
}

@media (max-width: 400px) {
  .top-bar {
    font-size: 11px;
    padding: 4px 0;
  }
  
  .top-bar-links a {
    font-size: 11px;
  }
  
  .logo-text {
    font-size: 18px;
  }
}