/* ═════════════════════════════════════════════════════════════════════════════ */
/*                    NAVIGATION COMPONENTS — STYLES                            */
/*              Navbar, Dropdown, Breadcrumb, Tabs, Accordion                   */
/* ═════════════════════════════════════════════════════════════════════════════ */

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                          NAVBAR                                              */
/* ═════════════════════════════════════════════════════════════════════════════ */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  gap: 1rem;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
}

.navbar-brand:hover {
  color: #3caa6e;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  flex: 1;
  align-items: center;
  font-family: Verdana, sans-serif;
}

.navbar-link {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.navbar-link:hover,
.navbar-link.active {
  color: #3caa6e;
  border-bottom-color: #3caa6e;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  border-radius: 12px;
  font-size: 1.5rem;
  color: #1f2937;
  cursor: pointer;
  padding: 0.5rem;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                          DROPDOWN                                            */
/* ═════════════════════════════════════════════════════════════════════════════ */

.dropdown {
  position: fixed;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  overflow: hidden;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
}

.dropdown.dropdown-open {
  opacity: 1;
  pointer-events: all;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: #f9fafb;
  color: #3caa6e;
  padding-left: 1.5rem;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                          BREADCRUMB                                          */
/* ═════════════════════════════════════════════════════════════════════════════ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 6px;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
  list-style: none;
  margin: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #6b7280;
}

.breadcrumb-item.active {
  color: #1f2937;
  font-weight: 600;
}

.breadcrumb-link {
  color: #3caa6e;
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
}

.breadcrumb-link:hover {
  color: #2d8659;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #d1d5db;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                          TABS                                                */
/* ═════════════════════════════════════════════════════════════════════════════ */

.tabs-container {
  border-bottom: 1px solid #e5e7eb;
}

.tab-buttons {
  display: flex;
  gap: 0;
  overflow-x: auto;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
  -webkit-overflow-scrolling: touch;
}

.tab-button {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-radius: 12px;
  border-bottom: 3px solid transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  white-space: nowrap;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
}

.tab-button:hover {
  color: #1f2937;
  border-bottom-color: #d1d5db;
}

.tab-button.active {
  color: #3caa6e;
  border-bottom-color: #3caa6e;
}

.tab-content {
  padding: 1.5rem;
  animation: none;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
}

.tab-content:not(.active) {
  display: none;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                          ACCORDION                                           */
/* ═════════════════════════════════════════════════════════════════════════════ */

.accordion {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
}

.accordion-item {
  border-bottom: 1px solid #e5e7eb;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
}

.accordion-header:hover {
  background: #f3f4f6;
}

.accordion-header.active {
  background: #eff6ff;
  color: #3caa6e;
}

.accordion-header::after {
  content: '▼';
  display: inline-block;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.accordion-header.active::after {
  transform: rotate(-180deg);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-family: Verdana, sans-serif;
  letter-spacing: 1pt;
  color: #374151;
  line-height: 1.6;
}

.accordion-content.animate-fade-in {
  padding: 1.5rem;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                          DARK MODE                                           */
/* ═════════════════════════════════════════════════════════════════════════════ */

:root[data-theme="dark"] .navbar {
  background: #111b3c;
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

:root[data-theme="dark"] .navbar-brand {
  color: #e8ecf1;
}

:root[data-theme="dark"] .navbar-brand:hover {
  color: #34d399;
}

:root[data-theme="dark"] .navbar-link {
  color: #a0aec0;
}

:root[data-theme="dark"] .navbar-link:hover,
:root[data-theme="dark"] .navbar-link.active {
  color: #34d399;
  border-bottom-color: #34d399;
}

:root[data-theme="dark"] .navbar-toggle {
  color: #e8ecf1;
}

:root[data-theme="dark"] .dropdown {
  background: #1a2548;
  border-color: rgba(148, 163, 184, 0.1);
}

:root[data-theme="dark"] .dropdown-item {
  color: #a0aec0;
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

:root[data-theme="dark"] .dropdown-item:hover {
  background: #111b3c;
  color: #34d399;
}

:root[data-theme="dark"] .breadcrumb {
  background: #111b3c;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

:root[data-theme="dark"] .breadcrumb-item {
  color: #64748b;
}

:root[data-theme="dark"] .breadcrumb-item.active {
  color: #e8ecf1;
}

:root[data-theme="dark"] .breadcrumb-link {
  color: #34d399;
}

:root[data-theme="dark"] .breadcrumb-link:hover {
  color: #10b981;
}

:root[data-theme="dark"] .breadcrumb-separator {
  color: #475569;
}

:root[data-theme="dark"] .tabs-container {
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

:root[data-theme="dark"] .tab-button {
  color: #64748b;
}

:root[data-theme="dark"] .tab-button:hover {
  color: #e8ecf1;
  border-bottom-color: #475569;
}

:root[data-theme="dark"] .tab-button.active {
  color: #34d399;
  border-bottom-color: #34d399;
}

:root[data-theme="dark"] .tab-content {
  color: #a0aec0;
}

:root[data-theme="dark"] .accordion {
  border-color: rgba(148, 163, 184, 0.1);
}

:root[data-theme="dark"] .accordion-item {
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

:root[data-theme="dark"] .accordion-header {
  background: #111b3c;
  color: #e8ecf1;
}

:root[data-theme="dark"] .accordion-header:hover {
  background: #1a2548;
}

:root[data-theme="dark"] .accordion-header.active {
  background: #0f1729;
  color: #34d399;
}

:root[data-theme="dark"] .accordion-content {
  color: #a0aec0;
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                          RESPONSIVE                                          */
/* ═════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
  }

  .navbar-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .navbar-menu.navbar-menu-open {
    max-height: 500px;
  }

  .navbar-link {
    padding: 0.75rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
  }

  .navbar-link.active {
    border-bottom: 1px solid #3caa6e;
  }

  .tab-buttons {
    gap: 0;
  }

  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .accordion-header {
    padding: 0.75rem 1rem;
  }

  .accordion-content {
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .breadcrumb {
    font-size: 0.85rem;
    padding: 0.75rem;
    gap: 0.25rem;
  }

  .tab-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .tab-content {
    padding: 1rem;
  }

  .accordion-header {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .accordion-content {
    padding: 0 0.75rem;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════ */
/*                          ACESSIBILIDADE                                      */
/* ═════════════════════════════════════════════════════════════════════════════ */

.navbar-link:focus,
.dropdown-item:focus,
.breadcrumb-link:focus,
.tab-button:focus,
.accordion-header:focus {
  outline: 2px solid #3caa6e;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .navbar-link,
  .dropdown-item,
  .tab-button,
  .accordion-header,
  .accordion-content {
    transition: none;
  }
}
