/* Tutorial Page - CSS Dedicado com Alta Especificidade */

/* Container principal - Compacto e centralizado */
.tutorial-page {
    padding: 0 !important;
    max-width: 1200px;
    margin: 0 auto !important;
}

.tutorial-page .container {
    max-width: 100% !important;
    padding: 0.5rem 1rem !important;
}

/* Layout em Grid - Compacto */
.tutorial-page .row {
    margin: 0 -0.5rem !important;
}

.tutorial-page .row.g-2 {
    margin: 0 -0.5rem !important;
}

.tutorial-page [class*="col-"] {
    padding: 0 0.5rem !important;
}

/* Cards - Muito mais compactos */
.tutorial-page .card {
    margin-bottom: 0.6rem !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.tutorial-page .card.mb-2 {
    margin-bottom: 0.6rem !important;
}

.tutorial-page .card-header {
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px 8px 0 0 !important;
    border-bottom: none !important;
}

.tutorial-page .card-header.py-1 {
    padding: 0.5rem 0.75rem !important;
}

.tutorial-page .card-header h2,
.tutorial-page .card-header h6,
.tutorial-page .card-header .h6 {
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

.tutorial-page .card-body {
    padding: 0.75rem !important;
}

.tutorial-page .card-body.py-2 {
    padding: 0.75rem !important;
}

/* Menu lateral - Compacto */
.tutorial-page .sticky-top {
    top: 70px !important;
    position: sticky !important;
}

.tutorial-page .list-group-item {
    padding: 0.4rem 0.6rem !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease;
    font-size: 0.85rem !important;
}

.tutorial-page .list-group-item.py-1 {
    padding: 0.4rem 0.6rem !important;
}

.tutorial-page .list-group-item:hover {
    background-color: rgba(66, 133, 244, 0.1) !important;
    padding-left: 0.8rem !important;
}

.tutorial-page .list-group-item:last-child {
    border-bottom: none !important;
}

/* Alertas - Super compactos */
.tutorial-page .alert {
    padding: 0.4rem 0.6rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
}

.tutorial-page .alert.py-1 {
    padding: 0.4rem 0.6rem !important;
}

.tutorial-page .alert.mb-2 {
    margin-bottom: 0.5rem !important;
}

.tutorial-page .alert.mb-1 {
    margin-bottom: 0.4rem !important;
}

.tutorial-page .alert-info {
    background-color: #e3f2fd !important;
    border-color: #90caf9 !important;
    color: #1976d2 !important;
}

.tutorial-page .alert-warning {
    background-color: #fff3e0 !important;
    border-color: #ffb74d !important;
    color: #f57c00 !important;
}

.tutorial-page .alert-success {
    background-color: #e8f5e9 !important;
    border-color: #81c784 !important;
    color: #388e3c !important;
}

.tutorial-page .alert-light {
    background-color: #fafafa !important;
    border-color: #e0e0e0 !important;
    color: #616161 !important;
}

/* Textos e tipografia - Compactos */
.tutorial-page h3.small {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.4rem !important;
    margin-top: 0 !important;
}

.tutorial-page h3.small strong {
    font-weight: 600 !important;
}

.tutorial-page h4.small {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.3rem !important;
}

.tutorial-page p.small {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

/* Listas - Compactas */
.tutorial-page ol,
.tutorial-page ul {
    margin-bottom: 0.5rem !important;
    padding-left: 1.2rem !important;
}

.tutorial-page ol.mb-2,
.tutorial-page ul.mb-2 {
    margin-bottom: 0.5rem !important;
}

.tutorial-page ol.mb-1,
.tutorial-page ul.mb-1 {
    margin-bottom: 0.4rem !important;
}

.tutorial-page ol.mb-0,
.tutorial-page ul.mb-0 {
    margin-bottom: 0.3rem !important;
}

.tutorial-page li {
    margin-bottom: 0.15rem !important;
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
}

/* Ícones de formato de arquivo */
.tutorial-page .border.rounded {
    padding: 0.4rem 0.3rem !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background-color: #fafafa !important;
}

.tutorial-page .border.rounded.p-1 {
    padding: 0.4rem 0.3rem !important;
}

.tutorial-page .border.rounded:hover {
    background-color: #f5f5f5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Background light sections */
.tutorial-page .bg-light {
    background-color: #fafafa !important;
    padding: 0.5rem !important;
    border-radius: 6px !important;
    margin-bottom: 0.5rem !important;
}

.tutorial-page .bg-light.p-1 {
    padding: 0.5rem !important;
}

.tutorial-page .bg-light.rounded {
    border-radius: 6px !important;
}

.tutorial-page .bg-light.mb-1 {
    margin-bottom: 0.4rem !important;
}

/* Badge */
.tutorial-page .badge {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* Botões de ação finais */
.tutorial-page .text-center {
    padding: 0.75rem 0 0.5rem 0 !important;
    margin-bottom: 0.75rem !important;
}

.tutorial-page .text-center.py-2 {
    padding: 0.75rem 0 0.5rem 0 !important;
}

.tutorial-page .text-center.mb-3 {
    margin-bottom: 0.75rem !important;
}

.tutorial-page .btn-sm {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
}

/* Espaçamentos entre seções */
.tutorial-page .row.g-1 {
    margin: 0 -0.25rem !important;
}

.tutorial-page .row.g-1 > [class*="col-"] {
    padding: 0 0.25rem !important;
}

.tutorial-page .row.g-2 > [class*="col-"] {
    padding: 0 0.5rem !important;
}

/* Colunas específicas */
.tutorial-page .col-md-6,
.tutorial-page .col-md-4,
.tutorial-page .col-md-8,
.tutorial-page .col-md-3 {
    margin-bottom: 0.5rem !important;
}

/* Border warning para seções premium */
.tutorial-page .border-warning {
    border: 2px solid #ffc107 !important;
    background-color: #fff9e6 !important;
}

.tutorial-page .bg-warning.bg-opacity-10 {
    background-color: #fff9e6 !important;
}

/* Dividers entre seções */
.tutorial-page .card + .card {
    margin-top: 0.6rem !important;
}

/* Remover espaços excessivos */
.tutorial-page .py-2 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.tutorial-page .py-1 {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}

.tutorial-page .mb-2 {
    margin-bottom: 0.5rem !important;
}

.tutorial-page .mb-1 {
    margin-bottom: 0.4rem !important;
}

.tutorial-page .mt-1 {
    margin-top: 0.4rem !important;
}

.tutorial-page .mt-2 {
    margin-top: 0.5rem !important;
}

/* Header compacto */
.tutorial-page .py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Responsividade */
@media (max-width: 991px) {
    .tutorial-page .col-lg-3 {
        margin-bottom: 1rem !important;
    }
    
    .tutorial-page .sticky-top {
        position: relative !important;
        top: auto !important;
    }
    
    .tutorial-page .container {
        padding: 0.5rem 0.75rem !important;
    }
}

@media (max-width: 768px) {
    .tutorial-page {
        padding: 0 !important;
    }
    
    .tutorial-page .container {
        padding: 0.5rem !important;
    }
    
    .tutorial-page .card {
        margin-bottom: 0.5rem !important;
    }
    
    .tutorial-page .card-header {
        padding: 0.4rem 0.6rem !important;
    }
    
    .tutorial-page .card-body {
        padding: 0.6rem !important;
    }
    
    .tutorial-page .alert {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    .tutorial-page h3.small {
        font-size: 0.85rem !important;
    }
    
    .tutorial-page li,
    .tutorial-page p.small {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    .tutorial-page .container {
        padding: 0.4rem !important;
    }
    
    .tutorial-page .card {
        margin-bottom: 0.4rem !important;
    }
    
    .tutorial-page .card-header {
        padding: 0.35rem 0.5rem !important;
    }
    
    .tutorial-page .card-body {
        padding: 0.5rem !important;
    }
    
    .tutorial-page .row.g-1 > .col-3 {
        margin-bottom: 0.4rem !important;
    }
    
    .tutorial-page .btn-sm {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    
    .tutorial-page [class*="col-"] {
        padding: 0 0.4rem !important;
    }
}

/* Otimizações para impressão */
@media print {
    .tutorial-page .sticky-top {
        position: relative !important;
    }
    
    .tutorial-page .card {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}