/* ==========================================================================
   RIG OWNERS ASSOCIATION - TAILWIND EXTENSIONS & CUSTOM STYLES
   ========================================================================== */

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom focus styles */
*:focus-visible {
  outline: 2px solid #0B54BA;
  outline-offset: 2px;
}

/* Modal backdrop blur */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Character counter */
.char-counter {
  transition: color 0.2s ease;
}

/* File list items */
.file-item {
  font-size: 0.875rem;
  color: #475569;
  padding: 0.25rem 0.5rem;
  background-color: #f1f5f9;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION - Professional Animated Menu
   ========================================================================== */

/* --- Animated Hamburger Button (3 bars → X) --- */
.roa-hamburger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease;
  z-index: 10;
}

.roa-hamburger:hover {
  background: #f1f5f9;
}

.roa-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              width 0.25s ease;
  position: absolute;
}

.roa-hamburger span:nth-child(1) {
  transform: translateY(-7px);
}

.roa-hamburger span:nth-child(2) {
  transform: translateY(0);
}

.roa-hamburger span:nth-child(3) {
  transform: translateY(7px);
  width: 16px;
}

/* Active state → X */
.roa-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(0);
}

.roa-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.roa-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(0);
  width: 22px;
}

.roa-hamburger.active:hover {
  background: #fee2e2;
}

.roa-hamburger.active span {
  background: #dc2626;
}

/* --- Mobile Menu Panel --- */
.roa-mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  border-top: 1px solid transparent;
}

.roa-mobile-menu.open {
  max-height: 700px;
  opacity: 1;
  border-top-color: #e2e8f0;
}

.roa-mobile-menu-inner {
  padding: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* --- Mobile Menu Links (staggered entrance) --- */
.roa-mobile-link {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-12px);
  transition: background 0.2s ease,
              color 0.2s ease,
              transform 0.2s ease;
  border-left: 3px solid transparent;
}

.roa-mobile-menu.open .roa-mobile-link {
  animation: roa-slideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.04s);
}

.roa-mobile-link:hover {
  background: #f1f5f9;
  color: #0B54BA;
  transform: translateX(4px);
}

.roa-mobile-link:active {
  background: #e2e8f0;
  transform: translateX(2px);
}

/* Active page link */
.roa-mobile-link.active {
  color: #0B54BA;
  background: #eff6ff;
  font-weight: 600;
  border-left-color: #0B54BA;
}

/* Stagger animation keyframe */
@keyframes roa-slideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Reset animation when menu closes (so it replays on reopen) */
.roa-mobile-menu:not(.open) .roa-mobile-link {
  opacity: 0;
  transform: translateX(-12px);
  animation: none;
}

/* --- Top Bar mobile polish --- */
@media (max-width: 640px) {
  .roa-topbar-text {
    font-size: 0.8rem;
  }
}
