/* Custom styles */
.font-cinzel {
    font-family: 'Cinzel', serif;
}

body {
    font-family: 'Open Sans', sans-serif;
}

/* Custom transitions */
.hover\:bg-gray-800 {
    transition: background-color 0.2s ease-in-out;
}

/* Custom shadows */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Card hover effects (scoped) */
/* Remove global hover on .bg-white to avoid layout bounce; use .raise-on-hover when needed */
.raise-on-hover { transition: transform 0.2s ease-in-out; }
.raise-on-hover:hover { transform: translateY(-2px); }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Utility: hide elements until Alpine x-show initializes */
[x-cloak] { display: none !important; }

/* Utility: fixed max-height for scrollable tables */
.max-h-500 { max-height: 500px; }

/* Mass schedule chevron rotation (moved from inline <style>) */
.rsvp-container[open] > summary .rsvp-chevron { transform: rotate(180deg); }

/* Utility: width from CSS variable (e.g., style="--w:50%") */
.w-var { width: var(--w); }

/* Layout structure moved from header.php */
body { display: flex; min-height: 100vh; flex-direction: column; }
#content-wrapper { flex: 1; display: flex; }
#main-content { flex: 1; display: flex; flex-direction: column; }

/* Sidebar scrollbar styling */
nav::-webkit-scrollbar { width: 6px; }
nav::-webkit-scrollbar-track { background: #f1f1f1; }
nav::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
nav::-webkit-scrollbar-thumb:hover { background: #a0aec0; }

/* Table scrolling container */
.overflow-x-auto.overflow-y-auto {
  position: relative;
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

/* Sticky table header styles */
thead.sticky { position: -webkit-sticky; position: sticky; top: 0; z-index: 10; }
thead.sticky th {
  background-color: #f9fafb; /* bg-gray-50 */
  position: sticky; top: 0;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

/* Confidence indicator styles (moved from repertoire.php) */
.confidence-icon { font-size: 1.25rem; transition: all 0.2s ease-in-out; }
.confidence-new { color: #D3D3D3; opacity: 0.6; }
.confidence-learning { background: linear-gradient(to right, #FFA500 50%, #D3D3D3 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@supports not (-webkit-background-clip: text) {
  .confidence-learning { color: #FFA500; background: none; }
}
.confidence-adequate { color: #4CAF50; }
.confidence-mastered { color: #4CAF50; position: relative; }
.confidence-mastered::after { content: '\f005'; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; top: -5px; right: -7px; font-size: 0.7rem; color: #FFD700; -webkit-text-stroke: 0.5px #a67c00; text-stroke: 0.5px #a67c00; }

/* Force-hide desktop table on < lg as safeguard */
@media (max-width: 1023px) { #repertoire-table-wrapper { display: none; } }
