/* CrewLab — JS-referenced classes & animations only. Visual styling via Tailwind. */

/* === TACTILE BUTTONS === */
.tactile-btn { background: #df4f54 !important; }
.tactile-btn:hover { background: #c94448 !important; }
.tactile-btn:active { background: #b33a3e !important; }

/* === TOGGLE CLASSES (JS manipulates these) === */
.d-none { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease-in-out forwards; }
.animated { animation-duration: 1s; animation-fill-mode: both; }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* === SKELETON LOADING (crew_dashboard.js) === */
.skeleton {
  width: 100%; height: 200px;
  background: linear-gradient(110deg, #e5e7eb 25%, #f8f8f8 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

/* === BUTTONS (event_select.js / tactile_login.js create elements with these) === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 0.5rem;
  font-family: 'Poppins', sans-serif; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; border: none; transition: all 0.2s ease;
  text-decoration: none; line-height: 1.5; color: #fff;
}
.btn-primary { background-color: #0284c7; color: #fff; }
.btn-primary:hover { background-color: #0369a1; }
.btn-light { background: #f3f4f6; color: #1f2937; border: 1px solid #d1d5db; }
.btn-light:hover { background: #e5e7eb; }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.75rem; }

/* === AUTH COMPONENTS (event_select.js creates these dynamically) === */
.cl-hover-button {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.cl-hover-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.cl-search-box {
  width: 100%; max-width: 290px; height: 48px;
  border-radius: 0.5rem; padding: 5px 12px;
  border: 1px solid #9ca3af; font-family: 'Poppins', sans-serif;
  font-size: 0.875rem; outline: none; background: #fff;
}
.cl-search-box:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.15);
}

.cl-badge-outline-gray {
  color: #6b7280; display: inline-block; border-radius: 15px;
  padding: 3px 9px; background: #fff; font-size: 0.875rem;
  margin-bottom: 0.75rem; border: 1px solid #9ca3af;
}

.cl-head-event-select-button {
  height: 48px; background: #fff; border-radius: 0.5rem;
  color: #0284c7; border: 1px solid #0284c7; margin: 4px;
  display: inline-flex; align-items: center; padding: 0.5rem 1rem;
  font-family: 'Poppins', sans-serif; font-size: 0.875rem;
  cursor: pointer; transition: all 0.2s;
}
.cl-hover-button.cl-head-event-select-button:active {
  background-color: #0284c7; color: #fff; border-color: #0284c7;
}

.cl-head-event-logo-badge {
  width: 26px; margin-left: 0.5rem; border-radius: 30px; margin-bottom: 1px;
}

.organization-button {
  background: #e8e8e8; color: #000; border-radius: 0.5rem;
  border: 2px solid #e8e8e8; padding: 10px 12px; margin: 4px;
  max-width: 290px; width: 100%; height: 62px;
  display: inline-flex; align-items: center;
  font-family: 'Poppins', sans-serif; cursor: pointer; transition: all 0.2s;
}
.organization-button:hover { background: #d8d8d8; border-color: #747474; }

.button-icon {
  border-radius: 10px; width: 38px; margin-right: 8px;
  background-color: #fff; border: 1px solid #a7a7a7;
}

/* === SIDEBAR NAV (item_navigation.js references these classes) === */
.sidebar-list-item,
.sidebar-list-item-active {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 1rem; margin: 0.25rem 0.5rem;
  border-radius: 0.5rem; color: #cbd5e1;
  cursor: pointer; transition: background 0.2s ease; user-select: none;
}
.sidebar-list-item img, .sidebar-list-item-active img,
.sidebar-list-item svg, .sidebar-list-item-active svg { width: 20px; height: 20px; }
.sidebar-list-item p, .sidebar-list-item-active p { margin: 0; }
.sidebar-list-item:hover { background: rgba(255,255,255,0.1); }
.sidebar-list-item-active { background: rgba(255,255,255,0.15); color: #fff; font-weight: 500; }

/* === SHIFT GRADIENT BUTTONS === */
.shift-select-button {
  background: linear-gradient(111deg, #02b9f1, #364ba0);
  border-radius: 0.75rem; padding: 0.5rem 0.75rem;
  color: #fff; margin-top: 0.5rem; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.shift-select-button:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.shift-select-button h6 { margin-bottom: 3px; color: #fff; }
.shift-select-button p { margin-bottom: 0; }

.shift-add-button {
  background: #9ca3af; border-radius: 0.75rem;
  padding: 0.5rem 0.75rem; color: #fff;
  margin-top: 0.5rem; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.shift-add-button:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.shift-add-button p { margin-bottom: 0; }

/* === STATUS BADGES === */
.shift-attended {
  display: inline-block; border-radius: 9999px; padding: 2px 8px;
  font-size: 0.75rem; margin: 0 0.5rem 0.5rem 0;
  color: #16a34a; border: 1px solid #16a34a;
}
.shift-unattended {
  display: inline-block; border-radius: 9999px; padding: 2px 8px;
  font-size: 0.75rem; margin: 0 0.5rem 0.5rem 0;
  color: #dc2626; border: 1px solid #dc2626;
}
.shift-coming-up {
  display: inline-block; border-radius: 9999px; padding: 2px 8px;
  font-size: 0.75rem; margin: 0 0.5rem 0.5rem 0;
  color: #0284c7; border: 1px solid #0284c7;
}

/* === CREW DASHBOARD COMPONENTS === */
.shift-card {
  background: #f9fafb; border-radius: 0.75rem;
  padding: 0.75rem 1rem; display: flex;
  justify-content: space-between; align-items: center;
  margin-top: 0.5rem; border: 1px solid #e5e7eb;
  cursor: pointer; transition: background 0.2s;
}
.shift-card:hover { background: #f3f4f6; }
.shift-card h6 { margin: 0; font-size: 0.9375rem; }
.shift-card p { margin: 0; font-size: 0.8125rem; color: #6b7280; }

.status-badge {
  font-size: 0.75rem; padding: 2px 0.5rem; border-radius: 0.5rem;
  border: 1px solid #d1d5db; display: inline-block; white-space: nowrap;
}

/* === FORM COMPAT (shift_edit.html + shift_edit.js) === */
.form-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; cursor: pointer; }
.form-check-input { width: 18px; height: 18px; accent-color: #0284c7; cursor: pointer; margin: 0; }
.form-check-label { cursor: pointer; font-size: 0.875rem; user-select: none; }

.form-range {
  width: 100%; height: 6px; -webkit-appearance: none; appearance: none;
  background: #d1d5db; border-radius: 9999px; outline: none; cursor: pointer;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #0284c7; cursor: pointer; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.form-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #0284c7; cursor: pointer; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* === DROPDOWN (dropdown.js) === */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle { cursor: pointer; }
.dropdown-toggle::after {
  content: ''; display: inline-block; width: 0; height: 0;
  margin-left: 4px; vertical-align: middle;
  border-top: 4px solid; border-right: 4px solid transparent; border-left: 4px solid transparent;
}
.dropdown-menu {
  display: none; position: absolute; right: 0; top: 100%; margin-top: 0.25rem;
  background: #fff; border-radius: 0.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 200px; z-index: 100; overflow: hidden;
}
.dropdown.show .dropdown-menu { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; color: #374151; text-decoration: none;
  font-size: 0.875rem; transition: background 0.15s;
}
.dropdown-item:hover { background: #f3f4f6; }
.dropdown-item.disabled { opacity: 0.5; pointer-events: none; }
.dropdown-item img { width: 20px; height: 20px; }

/* === MISC === */
.timedate-label { width: 18px; margin-right: 6px; vertical-align: middle; }
.tactile-label { width: 24px; margin-top: -7px; }
#loading-wheel { width: 32px; animation: spin 1s linear infinite; }
.status-bar {
  display: inline-block; margin: 1rem 0 0; background: #fff;
  padding: 4px 1rem; border-radius: 30px; font-size: 0.875rem;
}
