.corok { color: #03ba5f; }
.cornot { color: #dc2c57; }
.corparc { color: #e98c12; }
.corVatsimIndigo { color: #2b3990; }
.corVatsimBlue { color: #2483c5; }
.corVatsimGreen {  color: #29b473; }
.corVatbrzIndigo { color: #182061; }
.corVatbrzVermelho { color: #e36f6f; }
.corVatbrzAmarelo { color: #ffd816; }
.corVatbrzVerde { color: #5cbd9e; }
.corVatbrzCiano { color: #3db2ff; }
.corVatbrzVerdeMusgo { color: #52a77e; }

/* Estilo personalizado para Nota Importante - Fundo vermelho e texto branco */
.md-typeset .admonition.danger {
    background-color: #d32f2f !important;
    border-color: #b71c1c !important;
    color: #ffffff !important;
}

.md-typeset .admonition.danger .admonition-title {
    background-color: #b71c1c !important;
    color: #ffffff !important;
    border-color: #b71c1c !important;
}

.md-typeset .admonition.danger .admonition-title::before {
    color: #ffffff !important;
}

.md-typeset .admonition.danger p,
.md-typeset .admonition.danger li,
.md-typeset .admonition.danger code,
.md-typeset .admonition.danger strong,
.md-typeset .admonition.danger em {
    color: #ffffff !important;
}

/* Garantir que links dentro do admonition também sejam brancos */
.md-typeset .admonition.danger a {
    color: #ffffff !important;
    text-decoration: underline;
}

.md-typeset .admonition.danger a:hover {
    color: #f5f5f5 !important;
}

/* Estilos para tabelas - linhas visíveis entre colunas */
.md-typeset table {
    border-collapse: collapse;
}

.md-typeset table th,
.md-typeset table td {
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
}

/* Tabelas maiores para melhor legibilidade - target tables after h3 headings */
.md-typeset h3 + table {
    width: 100%;
}

.md-typeset h3 + table th,
.md-typeset h3 + table td {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
}

.md-typeset h3 + table th {
    font-size: 1.0625rem !important;
    font-weight: 600;
}

.md-typeset table th:first-child,
.md-typeset table td:first-child {
    border-left: none;
}

.md-typeset table th:last-child,
.md-typeset table td:last-child {
    border-right: none;
}

/* Para modo escuro */
[data-md-color-scheme="slate"] .md-typeset table th,
[data-md-color-scheme="slate"] .md-typeset table td {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

/* Linhas alternadas (zebra striping) para tabelas */
.md-typeset table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.03);
}

[data-md-color-scheme="slate"] .md-typeset table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Estilo para sublinhado nas tabelas */
.md-typeset table u {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

/* Estilos para blocos de comunicação */
.comms-block {
    margin: 1.5rem 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comms-pilot {
    background-color: #e8f5e9;
    padding: 1rem 1.25rem;
    border-left: 4px solid #4caf50;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.comms-atc {
    background-color: #e3f2fd;
    padding: 1rem 1.25rem;
    border-left: 4px solid #2196f3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.comms-pilot strong,
.comms-atc strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.comms-pilot br + strong {
    margin-top: 1rem;
}

.comms-atc br + strong {
    margin-top: 1rem;
}

/* Para modo escuro */
[data-md-color-scheme="slate"] .comms-pilot {
    background-color: rgba(76, 175, 80, 0.15);
    border-left-color: #4caf50;
}

[data-md-color-scheme="slate"] .comms-atc {
    background-color: rgba(33, 150, 243, 0.15);
    border-left-color: #2196f3;
}

[data-md-color-scheme="slate"] .comms-pilot strong,
[data-md-color-scheme="slate"] .comms-atc strong {
    color: #e0e0e0;
}

/* Estilos para navegação de páginas */
.page-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
}

.nav-prev,
.nav-next {
    flex: 1;
    min-width: 150px;
}

.nav-prev a,
.nav-next a {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    background-color: #f5f5f5;
    color: #333 !important;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 40px;
    font-size: 0.875rem;
}

.nav-prev a {
    justify-content: flex-start;
    flex-direction: row;
}

.nav-next a {
    justify-content: flex-end;
    flex-direction: row;
}

.nav-prev a .nav-label {
    margin-right: 0.5rem;
}

.nav-prev a .nav-separator {
    margin: 0 0.5rem;
}

.nav-next a .nav-label {
    margin-right: 0;
}

.nav-next a .nav-separator {
    margin: 0 0.5rem;
}

.nav-next a .nav-arrow {
    margin-left: 0.5rem;
    margin-right: 0;
}

.nav-prev a:hover,
.nav-next a:hover {
    background-color: #2196f3;
    color: #ffffff !important;
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.nav-prev a:active,
.nav-next a:active {
    transform: translateY(0);
}

.nav-arrow {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0.5rem;
    color: inherit;
    flex-shrink: 0;
}

.nav-label {
    display: inline;
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: 0.02em;
    word-spacing: 0.1em;
    margin-right: 0.5rem;
}

.nav-separator {
    display: inline;
    margin: 0 0.5rem;
    opacity: 0.4;
    color: inherit;
    font-weight: normal;
}

.nav-title {
    display: inline;
    font-size: 0.8125rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
}

.nav-prev a:hover .nav-label,
.nav-next a:hover .nav-label {
    opacity: 0.9;
}

/* Para modo escuro */
[data-md-color-scheme="slate"] .page-navigation {
    border-top-color: rgba(255, 255, 255, 0.12);
}

[data-md-color-scheme="slate"] .nav-prev a,
[data-md-color-scheme="slate"] .nav-next a {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e0e0e0 !important;
}

[data-md-color-scheme="slate"] .nav-prev a:hover,
[data-md-color-scheme="slate"] .nav-next a:hover {
    background-color: #1976d2;
    border-color: #1976d2;
    color: #ffffff !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .page-navigation {
        flex-direction: column;
    }
    
    .nav-prev,
    .nav-next {
        width: 100%;
    }
    
    .nav-prev a,
    .nav-next a {
        width: 100%;
        justify-content: space-between;
    }
}