/* Base Sunfire styling shared across all pages */

/* Hide items marked with x-cloak attribute */
[x-cloak] { 
  display: none !important; 
}

/* Alpine Transitions */
[x-transition] {
  transition-property: opacity, transform;
  transition-duration: 0.2s;
}

/* Fixed top bar */
.sticky-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(249, 250, 251, 0.9);
  backdrop-filter: blur(5px);
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .sticky-top {
  background-color: rgba(17, 24, 39, 0.9);
}

.sticky-spacer {
  height: 80px;
}

/* Scrollbar styling */
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.dark .scrollbar-thin::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.dark .scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.dark .scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Common Tailwind config */
.tailwind-config-script {
  display: none;
}

/* Superuser styles */
.superuser-button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f97316;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  margin-right: 8px;
}

.superuser-button:hover {
  background-color: #ea580c;
}

.superuser-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1060;
  width: 90%;
  max-width: 600px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-height: 80vh;
  overflow-y: auto;
}

.dark .superuser-modal {
  background-color: #1f2937;
  color: white;
}

.superuser-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

.impersonation-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(234, 88, 12, 0.95);
  color: white;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999; /* Make sure this is above everything else */
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  visibility: visible !important; /* Force visibility */
}

.dark .impersonation-bar {
  background-color: rgba(194, 65, 12, 0.95);
}

.impersonation-exit-button {
  background-color: white;
  color: #ea580c;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.impersonation-exit-button:hover {
  background-color: #f9fafb;
  transform: translateY(-1px);
}

.user-list-item {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .user-list-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.user-list-item:last-child {
  border-bottom: none;
}