/* NeoCargo Custom Colors */
:root {
  --md-primary-fg-color: #1D3557;        /* Azul Petróleo */
  --md-primary-fg-color--light: #2A4A6B;
  --md-primary-fg-color--dark: #0F1F2F;
  --md-accent-fg-color: #06B6D4;         /* Teal Vibrante */
  --md-accent-fg-color--transparent: #06B6D41A;
}

/* Light mode custom colors */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #1D3557;
  --md-primary-fg-color--light: #2A4A6B;
  --md-primary-fg-color--dark: #0F1F2F;
  --md-accent-fg-color: #06B6D4;
  --md-accent-fg-color--transparent: #06B6D41A;
}

/* Dark mode custom colors */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #1D3557;
  --md-primary-fg-color--light: #2A4A6B;
  --md-primary-fg-color--dark: #0F1F2F;
  --md-accent-fg-color: #06B6D4;
  --md-accent-fg-color--transparent: #06B6D41A;
}

/* Header styling - Nova cor de fundo */
.md-header {
  background-color: rgba(228,242,241,255);
  box-shadow: 0 0 .2rem rgba(29, 53, 87, .1), 0 .2rem .4rem rgba(29, 53, 87, .2);
  border-bottom: 1px solid #e2e8f0;
}

/* Texto e ícones da navbar em azul petróleo */
.md-header__title {
  color: #1D3557 !important;
  font-weight: 600;
}

.md-header__button {
  color: #1D3557 !important;
}

/* Hover mais claro e suave para melhor visibilidade */
.md-header__button:hover {
  color: #06B6D4 !important;
  background-color: rgba(6, 182, 212, 0.1);
  border-radius: 4px;
}

/* Ícones da navbar */
.md-header .md-icon {
  color: #1D3557 !important;
}

/* Logo original sem alterações */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.5rem;
  width: auto;
}

/* Navigation tabs - mesma cor do header */
.md-tabs {
  background-color: rgba(228,242,241,255);
  border-bottom: 1px solid #e2e8f0;
}

.md-tabs__item {
  color: #1D3557;
  opacity: 0.7;
}

/* Hover melhorado para tabs */
.md-tabs__link--active,
.md-tabs__item:hover {
  color: #06B6D4;
  opacity: 1;
  background-color: rgba(6, 182, 212, 0.1);
}

/* Nome do repositório em azul petróleo */
.md-source__repository {
  color: #1D3557 !important;
  font-weight: 500;
}

/* Hover melhorado para repositório */
.md-source:hover .md-source__repository {
  color: #06B6D4 !important;
}

/* Campo de busca melhorado */
.md-search__input {
  background-color: white !important;
  border: 2px solid #1D3557 !important;
  border-radius: 6px !important;
  color: #1D3557 !important;
  font-weight: 500;
}

.md-search__input::placeholder {
  color: rgba(29, 53, 87, 0.6) !important;
}

.md-search__input:focus {
  border-color: #06B6D4 !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2) !important;
  outline: none !important;
}

/* Ícone de busca */
.md-search__icon {
  color: #1D3557 !important;
}

/* Botão de limpar busca */
.md-search__icon[for="__search"]:hover {
  color: #06B6D4 !important;
}

/* Links and accents */
.md-content a {
  color: var(--md-accent-fg-color);
}

.md-content a:hover {
  color: #0891B2;
}

/* Search highlighting */
.md-search-result__teaser mark {
  background-color: var(--md-accent-fg-color--transparent);
  color: var(--md-accent-fg-color);
}

/* Code blocks */
.md-typeset .highlight .gp {
  color: var(--md-accent-fg-color);
}

/* Admonitions */
.md-typeset .admonition.note,
.md-typeset .admonition.info {
  border-color: var(--md-accent-fg-color);
}

.md-typeset .admonition.note > .admonition-title,
.md-typeset .admonition.info > .admonition-title {
  background-color: var(--md-accent-fg-color--transparent);
  border-color: var(--md-accent-fg-color);
}

/* Buttons */
.md-button {
  background-color: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
  color: #ffffff;
}

.md-button:hover,
.md-button:focus {
  background-color: var(--md-accent-fg-color);
  border-color: var(--md-accent-fg-color);
  color: #ffffff;
}

.md-button--primary {
  background-color: var(--md-accent-fg-color);
  border-color: var(--md-accent-fg-color);
  color: #ffffff;
}

.md-button--primary:hover,
.md-button--primary:focus {
  background-color: #0891B2;
  border-color: #0891B2;
}

/* Table of contents */
.md-nav__item--active > .md-nav__link {
  color: var(--md-accent-fg-color);
}

.md-nav__item .md-nav__link--active {
  color: var(--md-accent-fg-color);
}

/* Logo sizing */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.5rem;
  width: auto;
}

/* Custom styling for hero section */
.hero {
  background: transparent;
  color: #1D3557;
  padding: 4rem 2rem;
  text-align: center;
  margin: -1.5rem -1.5rem 2rem -1.5rem;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: #1D3557;
}

.hero-logo {
  width: 600px;
  height: 600px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: #1D3557;
  margin: 0;
}

.hero p {
  font-size: 1.4rem;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
  font-weight: 400;
}

/* Cards styling */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--md-accent-fg-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: var(--md-neocargo-blue);
  margin-bottom: 1rem;
}

[data-md-color-scheme="slate"] .card {
  background: var(--md-code-bg-color);
  color: var(--md-default-fg-color);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Novos estilos para o conteúdo da homepage */

/* Grid de objetivos */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.objective-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #06B6D4;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.objective-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.objective-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.objective-card h3 {
  color: #1D3557;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.objective-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Lista de funcionalidades */
.features-list {
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #06B6D4;
  transition: background-color 0.2s;
}

.feature-item:hover {
  background: #f1f5f9;
}

.feature-check {
  font-size: 1.2rem;
  color: #10b981;
  font-weight: bold;
  margin-top: 0.2rem;
}

.feature-item strong {
  color: #1D3557;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Grid de navegação */
.navigation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.nav-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  border-color: #06B6D4;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1D3557, #06B6D4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-card:hover::before {
  transform: scaleX(1);
}

.nav-number {
  display: inline-block;
  background: linear-gradient(135deg, #1D3557, #06B6D4);
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.nav-card h3 {
  color: #1D3557;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Footer hero */
.footer-hero {
  background: linear-gradient(135deg, #1D3557 0%, #06B6D4 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem -1.5rem -1.5rem -1.5rem;
  border-radius: 12px 12px 0 0;
}

.footer-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.footer-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

/* Dark mode adaptations */
[data-md-color-scheme="slate"] .objective-card,
[data-md-color-scheme="slate"] .nav-card {
  background: var(--md-code-bg-color);
  color: var(--md-default-fg-color);
  border-color: #374151;
}

[data-md-color-scheme="slate"] .feature-item {
  background: #1e293b;
  border-color: #06B6D4;
}

[data-md-color-scheme="slate"] .feature-item:hover {
  background: #334155;
}

/* Responsive para novos elementos */
@media screen and (max-width: 768px) {
  .objectives-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .navigation-grid {
    grid-template-columns: 1fr;
  }
  
  .objective-card,
  .nav-card {
    padding: 1.5rem;
  }
  
  .footer-hero h2 {
    font-size: 2rem;
  }
  
  .footer-hero p {
    font-size: 1rem;
  }
}

/* Estilos específicos para o novo conteúdo */

/* System objectives */
.system-objectives {
  margin: 2rem 0;
}

.system-goal {
  background: linear-gradient(135deg, #1D3557 0%, #06B6D4 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 2rem;
}

.system-goal h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.system-goal p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

/* Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tech-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #1D3557;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-top-color: #06B6D4;
}

.tech-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.tech-card h3 {
  color: #1D3557;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.tech-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Dark mode adaptations para novos elementos */
[data-md-color-scheme="slate"] .tech-card {
  background: var(--md-code-bg-color);
  color: var(--md-default-fg-color);
  border-color: #374151;
}

/* Responsive para tech grid */
@media screen and (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .tech-card {
    padding: 1.5rem;
  }
  
  .system-goal {
    padding: 1.5rem;
  }
  
  .system-goal h3 {
    font-size: 1.3rem;
  }
  
  .system-goal p {
    font-size: 1rem;
  }
}

/* Estilos para User Stories */
.user-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.story-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 6px solid #06B6D4;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.story-number {
  position: absolute;
  top: -10px;
  right: 15px;
  background: linear-gradient(135deg, #1D3557, #06B6D4);
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  min-width: 40px;
  text-align: center;
}

.story-card h3 {
  color: #1D3557;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1rem;
}

.story-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* Cores específicas por perfil */
.story-card.cliente {
  border-left-color: #3b82f6; /* Azul */
}

.story-card.cliente .story-number {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.story-card.gerente {
  border-left-color: #f59e0b; /* Amarelo/Laranja */
}

.story-card.gerente .story-number {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.story-card.motorista {
  border-left-color: #10b981; /* Verde */
}

.story-card.motorista .story-number {
  background: linear-gradient(135deg, #10b981, #059669);
}

.story-card.sistema {
  border-left-color: #8b5cf6; /* Roxo */
}

.story-card.sistema .story-number {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Dark mode para user stories */
[data-md-color-scheme="slate"] .story-card {
  background: var(--md-code-bg-color);
  color: var(--md-default-fg-color);
}

[data-md-color-scheme="slate"] .story-card h3 {
  color: var(--md-default-fg-color);
}

/* Responsive para user stories */
@media screen and (max-width: 768px) {
  .user-stories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .story-card {
    padding: 1.5rem;
  }
  
  .story-number {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    right: 10px;
  }
}

/* Estilos para links de navegação */
.nav-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.nav-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.nav-card-link .nav-card {
  cursor: pointer;
}

.nav-card-link .nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  border-color: #06B6D4;
}

/* Estilos para Backlog */
.backlog-section {
  margin: 2rem 0;
}

.backlog-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 6px solid #06B6D4;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.backlog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.story-id {
  position: absolute;
  top: -10px;
  right: 15px;
  background: linear-gradient(135deg, #1D3557, #06B6D4);
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  min-width: 60px;
  text-align: center;
}

.backlog-card h3 {
  color: #1D3557;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1rem;
}

.user-story {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #e2e8f0;
}

.user-story p {
  margin: 0;
  line-height: 1.6;
  color: #374151;
}

.user-story strong {
  color: #1D3557;
  font-weight: 600;
}

.acceptance-criteria {
  margin-bottom: 1.5rem;
}

.acceptance-criteria h4 {
  color: #1D3557;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.acceptance-criteria ul {
  margin: 0;
  padding-left: 1.5rem;
}

.acceptance-criteria li {
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.story-metadata {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.priority {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.priority.p1 {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
}

.priority.p2 {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
}

.priority.p3 {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
}

.dependencies {
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
}

/* Cores específicas por perfil no backlog */
.backlog-card.cliente {
  border-left-color: #3b82f6;
}

.backlog-card.cliente .story-id {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.backlog-card.cliente .user-story {
  border-left-color: #3b82f6;
}

.backlog-card.gerente {
  border-left-color: #f59e0b;
}

.backlog-card.gerente .story-id {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.backlog-card.gerente .user-story {
  border-left-color: #f59e0b;
}

.backlog-card.motorista {
  border-left-color: #10b981;
}

.backlog-card.motorista .story-id {
  background: linear-gradient(135deg, #10b981, #059669);
}

.backlog-card.motorista .user-story {
  border-left-color: #10b981;
}

.backlog-card.sistema {
  border-left-color: #8b5cf6;
}

.backlog-card.sistema .story-id {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.backlog-card.sistema .user-story {
  border-left-color: #8b5cf6;
}

/* Dark mode para backlog */
[data-md-color-scheme="slate"] .backlog-card {
  background: var(--md-code-bg-color);
  color: var(--md-default-fg-color);
}

[data-md-color-scheme="slate"] .backlog-card h3 {
  color: var(--md-default-fg-color);
}

[data-md-color-scheme="slate"] .user-story {
  background: #1e293b;
  color: var(--md-default-fg-color);
}

/* Responsive para backlog */
@media screen and (max-width: 768px) {
  .backlog-card {
    padding: 1.5rem;
  }
  
  .story-id {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    right: 10px;
  }
  
  .story-metadata {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}