/* Shared authentication bar styles */
.auth-bar {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
  text-align: right;
}

.auth-bar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-bar__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: auto;
}

.auth-bar__links a {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-bar__links a:hover {
  text-decoration: underline;
}

.auth-bar__status {
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 8px;
}

.auth-bar__user {
  color: #6b7280;
  font-size: 0.9rem;
  margin-right: 12px;
}

/* Logout button - style as link */
button.auth-bar__logout {
  color: #3b82f6 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: underline;
  padding: 0;
  margin-left: 0.75rem;
  font-family: inherit;
  font-weight: 500;
}

button.auth-bar__logout:hover {
  text-decoration: underline;
  color: #2563eb !important;
}

/* Dropdown Styles */
.auth-bar__dropdown {
  position: relative;
  display: inline-block;
}

.auth-bar__dropdown-toggle {
  color: #3b82f6;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.auth-bar__dropdown-toggle:hover {
  text-decoration: underline;
}

.auth-bar__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
}

.auth-bar__dropdown-menu.show {
  display: block;
}

.auth-bar__dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f3f4f6;
}

.auth-bar__dropdown-menu a:last-child {
  border-bottom: none;
}

.auth-bar__dropdown-menu a:hover {
  background-color: #f9fafb;
  color: #3b82f6;
  text-decoration: none;
}

/* Single course link (when user has only 1 course) */
.auth-bar__course-link {
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 10px;
  background: #e0f2fe;
  border-radius: 4px;
  font-size: 0.85rem;
}

.auth-bar__course-link:hover {
  background: #bae6fd;
  text-decoration: none;
}

/* Active course display (shown next to dropdown for multi-course users) */
.auth-bar__active-course {
  color: #64748b;
  font-size: 0.85rem;
  font-style: italic;
}

/* Guest mode warning - highly visible */
.auth-bar__guest-warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 12px;
  animation: pulse-warning 2s ease-in-out infinite;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

@keyframes pulse-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.auth-bar__login-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
  padding: 4px 12px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.auth-bar__login-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}
