/*
 * 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.
 */

/* SortableJS drag styles */
.sortable-ghost {
  opacity: 0.4;
}

.sortable-drag {
  opacity: 1;
}

/* Mobile-specific drag improvements */
@media (max-width: 768px) {
  .sortable-ghost {
    opacity: 0.6;
    transform: scale(1.05);
  }
  
  .sortable-drag {
    opacity: 0.9;
  }
}

/* Remove default browser focus outline */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Alternative: Use outline-offset to hide blue border completely */
input,
textarea,
select {
  outline: none;
}

/* Prevent scrolling on homepage - mobile overscroll fix */
html.overflow-hidden,
body.overflow-hidden {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ===== LIGHT THEME OVERRIDES ===== */
/* Override hardcoded dark colors in navbar and dropdowns */

header[style*="161619"],
[style*="background: #161619"],
[style*="background:#161619"] {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

/* Dropdown menus */
[style*="box-shadow: 0 20px 50px rgba(0,0,0,0.6)"] {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* White-on-dark text → dark */
.text-\[\#e0e0e0\] { color: #111111 !important; }
.text-\[\#bbb\] { color: #444444 !important; }
.text-\[\#888\] { color: #666666 !important; }
.text-\[\#777\] { color: #555555 !important; }
.text-\[\#555\] { color: #777777 !important; }
.text-\[\#444\] { color: #888888 !important; }
.text-\[\#999\] { color: #555555 !important; }

/* White alpha backgrounds → black alpha */
.bg-white\/\[0\.04\]:hover,
.hover\:bg-white\/\[0\.04\]:hover { background-color: rgba(0,0,0,0.04) !important; }
.bg-white\/\[0\.06\] { background-color: rgba(0,0,0,0.05) !important; }
.hover\:bg-white\/10:hover { background-color: rgba(0,0,0,0.08) !important; }

/* White borders → dark borders */
.border-white\/\[0\.08\] { border-color: rgba(0,0,0,0.10) !important; }
.border-white\/\[0\.06\] { border-color: rgba(0,0,0,0.08) !important; }

/* Dividers */
.bg-white\/\[0\.06\] { background-color: rgba(0,0,0,0.07) !important; }

/* User avatar button */
.bg-white\/\[0\.06\].border { 
  background-color: rgba(0,0,0,0.05) !important;
  border-color: rgba(0,0,0,0.10) !important;
}

/* Command bar button */
[onclick*="command-bar"] {
  background: rgba(0,0,0,0.05) !important;
  border-color: rgba(0,0,0,0.10) !important;
  color: #555 !important;
}

/* Board settings button */
button[style*="rgba(255,255,255,0.04)"] {
  background: rgba(0,0,0,0.05) !important;
  border-color: rgba(0,0,0,0.10) !important;
  color: #555 !important;
}
