/* Navigation Bar & Sidebar Styles */
:root {
  --nav-primary: #0F4C45;
  --nav-accent: #0071E3;
  --nav-surface: #FFFFFF;
  --nav-border: rgba(0, 0, 0, 0.08);
  --nav-text: #1D1D1F;
  --nav-text-muted: #6E6E73;
}

/* Floating Top Navigation Bar */
.global-nav-bar {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 52px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--nav-border);
  border-radius: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.global-nav-left, .global-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  color: var(--nav-text);
  background: transparent;
  border: 1px solid var(--nav-border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-btn.primary {
  background: var(--nav-primary);
  color: #FFFFFF;
  border-color: var(--nav-primary);
}

.nav-btn.primary:hover {
  background: #145E56;
}

.nav-btn-highlight {
  background: #0F4C45 !important;
  color: #FFFFFF !important;
  border-color: #0F4C45 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(15, 76, 69, 0.25);
}

.nav-btn-highlight:hover {
  background: #16685F !important;
}

/* Sidebar Drawer */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.global-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 330px;
  max-width: 86vw;
  background: #FFFFFF;
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.global-sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--nav-text);
  letter-spacing: -0.2px;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--nav-text-muted);
  line-height: 1;
  padding: 4px;
}

.sidebar-content {
  padding: 16px 14px;
  overflow-y: auto;
  flex: 1;
}

.sidebar-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--nav-text-muted);
  letter-spacing: 0.8px;
  margin: 18px 8px 8px;
}

.sidebar-group-title:first-child {
  margin-top: 4px;
}

/* Sidebar Links */
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--nav-text);
  text-decoration: none;
  transition: background 0.15s ease;
  margin-bottom: 2px;
}

.sidebar-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.sidebar-link-prominent {
  background: #0F4C45 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 12px;
  padding: 13px 15px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 4px 14px rgba(15, 76, 69, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-link-prominent:hover {
  background: #145E56 !important;
  transform: translateY(-1px);
}

.sidebar-link-badge {
  background: #FF9500;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 980px;
  letter-spacing: 0.3px;
}

/* Accordions inside Sidebar */
.sidebar-accordion {
  margin-bottom: 2px;
}

.sidebar-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--nav-text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.sidebar-accordion-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.sidebar-accordion-chevron {
  font-size: 10px;
  color: var(--nav-text-muted);
  transition: transform 0.2s ease;
}

.sidebar-accordion.open .sidebar-accordion-chevron {
  transform: rotate(90deg);
}

.sidebar-sublinks {
  display: none;
  padding-left: 14px;
  margin-top: 2px;
  margin-bottom: 6px;
  border-left: 2px solid rgba(0, 0, 0, 0.06);
  margin-left: 12px;
}

.sidebar-accordion.open .sidebar-sublinks {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-sublink {
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--nav-text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.sidebar-sublink:hover {
  color: var(--nav-primary);
  background: rgba(0, 0, 0, 0.03);
}

/* Logout link */
.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logout-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: #FF3B30;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ======================================================== */
/* AUTHENTICATION LOCK SCREEN (YaraTeam2026)                */
/* ======================================================== */
#yaraAuthLockScreen {
  position: fixed;
  inset: 0;
  background: rgba(15, 76, 69, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Hanken Grotesk', sans-serif;
}

.auth-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 40px 34px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: authPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E7F3F1;
  color: #0F4C45;
  padding: 5px 14px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: #1D1D1F;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.auth-subtitle {
  font-size: 13.5px;
  color: #6E6E73;
  margin-bottom: 24px;
  line-height: 1.45;
}

.auth-input-group {
  position: relative;
  margin-bottom: 14px;
}

.auth-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  background: #F5F5F7;
  color: #1D1D1F;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: #0F4C45;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(15, 76, 69, 0.12);
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: #0F4C45;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 76, 69, 0.25);
}

.auth-submit-btn:hover {
  background: #145E56;
  transform: translateY(-1px);
}

.auth-error {
  color: #FF3B30;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 10px;
  display: none;
}

.auth-error.show {
  display: block;
}

/* Adjust page padding for global nav */
body.with-global-nav {
  padding-top: 80px !important;
}
