/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Turbo Frame Loading States */
/* Show skeleton when turbo frame is loading */
turbo-frame[aria-busy="true"] .turbo-frame-loading {
  display: block !important;
}

turbo-frame[aria-busy="true"] .turbo-frame-content {
  display: none !important;
}

/* Hide skeleton when not loading */
turbo-frame:not([aria-busy="true"]) .turbo-frame-loading {
  display: none !important;
}

turbo-frame:not([aria-busy="true"]) .turbo-frame-content {
  display: block !important;
}

/* Cursor pointer for all interactive form elements */
select,
input[type="radio"],
input[type="checkbox"],
button:not([disabled]),
label:has(> input[type="radio"]),
label:has(> input[type="checkbox"]) {
  cursor: pointer;
}

/* Dark mode support for native date/datetime inputs */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
  color-scheme: light;
}

.dark input[type="date"],
.dark input[type="datetime-local"],
.dark input[type="time"] {
  color-scheme: dark;
}
