/* Navegação entre módulos */

.module-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.15);
}

/* Esconder navegação padrão do Sphinx que causa duplicação */
.prev-next-footer,
.prev-next-area {
    display: none !important;
}

.nav-prev, .nav-next {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e2e8f0;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.15);
    min-width: 200px;
}

.nav-prev a, .nav-next a {
    color: inherit; /* Inherit color from parent div */
    text-decoration: none; /* Remove underline */
    display: block; /* Make the link fill the whole div area */
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex; /* Use flexbox to center content */
    align-items: center;
    justify-content: inherit; /* Inherit justify-content from parent (.nav-prev / .nav-next) */
}

.nav-prev a strong, .nav-next a strong {
    color: inherit; /* Ensure strong tags also inherit color */
}


.nav-prev:hover, .nav-next:hover {
    background: rgba(59, 130, 246, 0.18);
    color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(59, 130, 246, 0.25);
}

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

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

.nav-arrow {
    font-size: 1.2em;
    margin: 0 10px;
}

.nav-title {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 3px;
}

.nav-subtitle {
    font-size: 0.8em;
    opacity: 0.8;
}

.nav-center {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9em;
    font-weight: 500;
}

/* Progress indicator */
.module-progress {
    background: #e9ecef;
    height: 4px;
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

/* Breadcrumb */
.module-breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #6c757d;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #adb5bd;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .module-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-prev, .nav-next {
        width: 100%;
        justify-content: center;
    }
    
    .nav-center {
        order: -1;
    }
}

/* Feature integration cards */
.feature-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card h3 {
    color: #007bff;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 1.5em;
}

.feature-description {
    color: #6c757d;
    margin-bottom: 15px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border: 1px solid #007bff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.feature-link:hover {
    background: #007bff;
    color: white;
}
