/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps.
 * Most styles should now be handled by Tailwind CSS.
 */

/* Import fonts (Raleway for logo) - keeping this here as a fallback if the Google Fonts link fails */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700;800&display=swap');

/* Global dark mode styles */
html, body {
  background-color: #1a1a2e !important;
  color: #f3f4f6 !important;
  min-height: 100vh;
}

/* Ensure proper text contrast in dark mode */
.text-gray-600, .text-gray-700, .text-gray-800 {
  color: #d1d5db !important; /* Lighter gray for better contrast */
}

.text-gray-900 {
  color: #f9fafb !important; /* Almost white for dark backgrounds */
}

/* Ensure proper background colors */
.bg-white, .bg-gray-50, .bg-gray-100 {
  background-color: rgba(255, 255, 255, 0.05) !important; /* Semi-transparent white */
}

/* Improve input field contrast */
input, select, textarea {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #f3f4f6 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

input:focus, select:focus, textarea:focus {
  border-color: #ff0080 !important; /* fuego-pink */
  box-shadow: 0 0 0 2px rgba(255, 0, 128, 0.2) !important;
}

/* Ensure links are visible */
a:not([class]) {
  color: #ff6bb0 !important; /* fuego-pink-light */
}

/* Add cursor pointer to all interactive elements */
a, button, [role="button"], label[for], .cursor-pointer, 
input[type="submit"], input[type="button"], input[type="reset"],
.link, .btn, [class*="btn-"], [class*="hover:"], [class*="focus:"] {
  cursor: pointer !important;
}

/* Add underlines to text links */
.underline-link, .underline-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: currentColor;
}

/* Improve button styling with proper focus states */
button, [role="button"], input[type="submit"] {
  position: relative;
  overflow: hidden; 
}

button:active, [role="button"]:active, input[type="submit"]:active {
  transform: translateY(1px);
}

/* Custom dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  background-color: #1e1e3a !important;
  z-index: 50 !important; /* Force high z-index */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix for dropdowns in tables and lists */
.list-item {
  position: relative;
}

.list-item .dropdown-menu {
  position: absolute !important;
  right: 0;
}

/* Fix for dropdowns that might get hidden due to overflow constraints */
.overflow-hidden .dropdown-menu,
.overflow-x-auto .dropdown-menu, 
.overflow-y-auto .dropdown-menu {
  overflow: visible !important;
}

/* Ensure buttons have proper z-index */
button[data-action*="dropdown#toggle"], 
a[data-action*="dropdown#toggle"] {
  position: relative;
  z-index: 40;
}

/* Avatar styles */
.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background-color: rgba(255, 0, 128, 0.8);
  text-transform: uppercase;
  font-weight: 600;
}

.avatar:after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

/* Custom range input styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff0080; /* fuego-pink */
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff0080; /* fuego-pink */
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover,
input[type="range"]::-moz-range-thumb:hover {
  background: #ff6bb0; /* fuego-pink-light */
  transform: scale(1.1);
}