/* EntraID Authentication Styles */

/* User Info Display */
.user-info {
  position: relative;
  padding: 0.5rem;
}

.user-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.user-title {
  font-size: 0.75rem;
  color: #9ca3af;
  font-style: italic;
}

.user-department {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* EntraID Badge */
.entra-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #0078d4;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.entra-id-badge svg {
  width: 12px;
  height: 12px;
}

/* Notifications */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background-color: #10b981;
}

.notification-warning {
  background-color: #f59e0b;
}

.notification-error {
  background-color: #ef4444;
}

.notification-info {
  background-color: #3b82f6;
}

/* Login Button Enhancements */
.entra-id-login-button {
  display: none;
}

.entra-id-button {
  position: relative;
  overflow: hidden;
}

.entra-id-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.entra-id-button:hover::before {
  left: 100%;
}

/* Loading States */
.entra-id-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.entra-id-button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Profile Page Styles */
.entra-id-profile {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
}

.entra-id-profile h3 {
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entra-id-profile h3 svg {
  color: #0078d4;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
}

.profile-info-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.profile-info-value {
  font-weight: 500;
  color: #1f2937;
}

/* Responsive Design */
@media (max-width: 768px) {
  .notification {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }
  
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .user-name {
    color: #f9fafb;
  }
  
  .user-email {
    color: #d1d5db;
  }
  
  .user-title,
  .user-department {
    color: #9ca3af;
  }
  
  .entra-id-profile {
    background: #1f2937;
    border-color: #374151;
  }
  
  .entra-id-profile h3 {
    color: #f9fafb;
  }
  
  .profile-info-value {
    color: #f9fafb;
  }
}
