/* Enhanced authentication styles */

/* Role Selection Modal */
.role-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.role-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.role-card:hover {
  border-color: #4CAF50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
  transform: translateY(-2px);
}

.role-card i {
  font-size: 2.5rem;
  color: #4CAF50;
  margin-bottom: 1rem;
}

.role-card h4 {
  margin: 0.5rem 0;
  color: #333;
  font-weight: 600;
}

.role-card p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.role-selection-actions {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.secondary-btn {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: #e0e0e0;
  color: #333;
}

/* Authentication Notification */
.auth-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification-content i {
  font-size: 1.2rem;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Enhanced user controls */
.user-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  font-size: 0.9rem;
}

.user-info i {
  color: #4CAF50;
}

/* Role-based visibility */
body[data-authenticated="false"] [data-requires-auth] {
  display: none !important;
}

body[data-authenticated="true"] .guest-only {
  display: none !important;
}

/* Enhanced role selector styles */
.user-menu {
  position: relative;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.user-button i {
  color: #1a3a2a; /* Dark green for better contrast */
}

.user-button:hover {
  background: #f8f9fa;
  border-color: #4CAF50;
}

.role-selector {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  display: none;
}

.role-selector.active {
  display: block;
}

.role-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.role-option:last-child {
  border-bottom: none;
}

.role-option:hover {
  background: #f8f9fa;
}

.role-option.active {
  background: #e8f5e8;
  color: #2e7d32;
}

.role-option i {
  width: 16px;
  text-align: center;
}

.role-option-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .role-selection-grid {
    grid-template-columns: 1fr;
  }
  
  .auth-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    right: 10px;
  }
  
  .user-controls {
    gap: 0.5rem;
  }
  
  .user-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

