html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /* margin-bottom: 60px;*/
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Add to Personix.AuthenticationService\wwwroot\css\site.css */

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.table th {
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  vertical-align: middle;
  border-bottom: 1px solid #f8f9fa;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Add to Personix.AuthenticationService\wwwroot\css\site.css */

/* User Profile Dropdown Styles */
.user-profile-dropdown {
  position: relative;
}

.user-profile-trigger {
  text-decoration: none !important;
  color: #495057 !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  position: relative;
}

/* Hide Bootstrap's default dropdown arrow */
.user-profile-trigger::after {
  display: none !important;
}

.user-profile-trigger:hover {
  background-color: #f8f9fa;
  color: #0d6efd !important;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.user-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

.user-info {
  line-height: 1.2;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.user-email {
  font-size: 12px;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.user-profile-trigger[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu Styling */
.user-dropdown-menu {
  min-width: 320px;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 0;
  margin-top: 0.5rem;
}

.user-dropdown-header {
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: 1px solid #dee2e6;
}

.user-name-large {
  font-weight: 600;
  font-size: 16px;
  color: #212529;
  margin-bottom: 2px;
}

.user-email-small {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 8px;
}

.badge-sm {
  font-size: 10px;
  padding: 0.25em 0.5em;
}

.user-dropdown-menu .dropdown-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s ease;
}

.user-dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.user-dropdown-menu .dropdown-item i {
  width: 16px;
  text-align: center;
  color: #6c757d;
}

.user-dropdown-menu .dropdown-item:hover i {
  color: #0d6efd;
}

.logout-item {
  color: #dc3545 !important;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.logout-item:hover {
  background-color: #f8d7da !important;
  color: #721c24 !important;
}

.logout-item i {
  color: #dc3545 !important;
}

.logout-item:hover i {
  color: #721c24 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .user-dropdown-menu {
    min-width: 280px;
    margin-right: 1rem;
  }

  .user-info {
    display: none !important;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* Animation for dropdown */
.user-dropdown-menu {
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus styles for accessibility */
.user-profile-trigger:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.user-dropdown-menu .dropdown-item:focus {
  background-color: #e3f2fd;
  color: #0d6efd;
  outline: none;
}

/* Debug styles for user dropdown */
.user-dropdown-menu.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure dropdown is above other elements */
.user-profile-dropdown .dropdown-menu {
  z-index: 1050 !important;
}

/* Debug border to see dropdown area */
.user-dropdown-menu {
  border: 2px solid #007bff !important; /* Temporary debug border */
}

.grecaptcha-badge {
  visibility: hidden;
}

.main-page-wrapper {
    height: 100dvh;
    display: flex;
    padding: 2rem;
}
.main-page-wrapper .main-content-wrapper {
  flex-grow: 1;
  overflow: hidden;
  overflow-y: auto;
}
