/* File: src/css/auditor-nav.css */
/* Auditor navigation header - appears on ALL pages when auditor is logged in */

/* ========================================
   AUDITOR HEADER - Base Styles
   ======================================== */
.auditor-header {
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 60px; /* Below main nav */
  z-index: 999;
  animation: slideDown 0.3s ease-out;
}

.auditor-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ========================================
   AUDITOR BRAND
   ======================================== */
.auditor-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

.auditor-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.auditor-label {
  font-size: 0.95rem;
}

/* ========================================
   AUDITOR NAV LINKS
   ======================================== */
.auditor-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.auditor-nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.auditor-nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.auditor-nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.auditor-nav-icon {
  font-size: 1rem;
  line-height: 1;
}

.auditor-nav-label {
  font-size: 0.9rem;
}

/* ========================================
   AUDITOR ACTIONS (Switch Button)
   ======================================== */
.auditor-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auditor-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.auditor-switch-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auditor-switch-btn-primary {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.auditor-switch-btn-primary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.auditor-switch-icon {
  font-size: 1rem;
  line-height: 1;
}

.auditor-switch-label {
  font-size: 0.875rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 968px) {
  .auditor-brand {
    gap: 0.35rem;
  }

  .auditor-icon {
    font-size: 1.1rem;
  }

  .auditor-label {
    font-size: 0.875rem;
  }

  .auditor-nav-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .auditor-nav-icon {
    font-size: 0.95rem;
  }

  .auditor-nav-label {
    font-size: 0.85rem;
  }

  .auditor-switch-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .auditor-switch-icon {
    font-size: 0.95rem;
  }

  .auditor-switch-label {
    font-size: 0.8rem;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
  .auditor-header {
    top: 60px; /* Below mobile nav */
  }

  .auditor-header-container {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .auditor-brand {
    flex-shrink: 0;
  }

  .auditor-nav {
    flex: 1 1 100%;
    gap: 0.25rem;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  .auditor-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .auditor-nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .auditor-nav-icon {
    font-size: 0.9rem;
  }

  .auditor-nav-label {
    font-size: 0.8rem;
  }

  .auditor-actions {
    margin-left: auto;
  }

  .auditor-switch-btn {
    padding: 0.35rem 0.6rem;
  }

  .auditor-switch-label {
    display: none; /* Hide text on mobile, show only icon */
  }

  .auditor-switch-icon {
    font-size: 1.1rem;
  }
}

/* ========================================
   RESPONSIVE - VERY SMALL MOBILE
   ======================================== */
@media (max-width: 480px) {
  .auditor-label {
    display: none; /* Hide "מצב רואה חשבון" text on tiny screens */
  }

  .auditor-nav-label {
    display: none; /* Show only icons */
  }

  .auditor-nav-link {
    padding: 0.4rem;
  }

  .auditor-nav-icon {
    font-size: 1.1rem;
  }
}

/* ========================================
   RTL SUPPORT
   ======================================== */
[dir="rtl"] .auditor-header-container {
  direction: rtl;
}

[dir="rtl"] .auditor-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .auditor-actions {
  margin-left: 0;
  margin-right: auto;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.auditor-nav-link:focus,
.auditor-switch-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* ========================================
   PRINT - Hide auditor header when printing
   ======================================== */
@media print {
  .auditor-header {
    display: none !important;
  }
}
