/* Application styles */

/* Force light mode styles for authentication pages */
.auth-light-mode {
  background-color: #f8fafc !important;
}

.auth-light-mode nav,
.auth-light-mode .bg-white,
.auth-light-mode .dark\:bg-gray-800 {
  background-color: #ffffff !important;
}

.auth-light-mode .text-gray-500,
.auth-light-mode .dark\:text-gray-400,
.auth-light-mode .text-gray-700,
.auth-light-mode .dark\:text-gray-100,
.auth-light-mode .dark\:text-gray-300 {
  color: #374151 !important;
}

.auth-light-mode nav .btn,
.auth-light-mode nav a {
  color: #374151 !important;
}

.auth-light-mode nav .btn:hover,
.auth-light-mode nav a:hover {
  background-color: #f3f4f6 !important;
}

.auth-light-mode h1, 
.auth-light-mode h2, 
.auth-light-mode h3 {
  color: #111827 !important;
}

.auth-light-mode .text-blue-800,
.auth-light-mode .dark\:text-blue-400 {
  color: #1e40af !important;
}

.auth-light-mode .text-blue-700 {
  color: #1d4ed8 !important;
}

.auth-light-mode .btn:hover {
  background-color: #f3f4f6 !important;
}

.auth-light-mode .bg-gray-50,
.auth-light-mode .dark\:bg-gray-700 {
  background-color: #f9fafb !important;
}

.auth-light-mode .border-gray-300,
.auth-light-mode .dark\:border-gray-600 {
  border-color: #d1d5db !important;
}

.auth-light-mode .text-gray-900,
.auth-light-mode .dark\:text-gray-100 {
  color: #111827 !important;
}

.auth-light-mode label {
  color: #374151 !important;
}

/* Ensure dialog elements don't take up space when closed */
dialog:not([open]) {
  display: none !important;
  position: fixed !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure turbo frames inside closed dialogs don't cause layout issues */
dialog:not([open]) turbo-frame {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

/* Prevent any empty turbo frames from taking up space */
turbo-frame:empty {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
}

/* Remove default browser selection highlighting on table rows */
table tbody tr {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Override any default browser focus/selection styles on table rows */
table tbody tr:focus,
table tbody tr:active,
table tbody tr::selection {
  background: transparent !important;
  outline: none !important;
}
