/* ========================================
   CSS ALUNO - Layout Específico do Aluno
   ======================================== */

/* ========================================
   HEADER DO ALUNO
   ======================================== */

.main-header {
    background-color: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

button#senha-tab, button#perfil-tab {
    color: var(--second-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.user-profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========================================
   BUSCA NO HEADER
   ======================================== */

.search-form .form-control {
    border-radius: 1.5rem 0 0 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    font-size: 0.9rem;
}

.search-form .btn {
    border-radius: 0 1.5rem 1.5rem 0;
    padding: 0.5rem 1rem;
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

.main-wrapper {
    display: flex;
    min-height: calc(100vh - var(--topbar-height));
}

.content-wrapper {
    width: 100%;
    padding: 1.5rem;
}

/* ========================================
   SIDEBAR DO CURSO
   ======================================== */

.course-sidebar {
    width: var(--sidebar-width);
    background-color: #fff;
    border-right: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: fixed;
    height: calc(100vh - var(--topbar-height));
    overflow-y: auto;
}

.course-content-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

/* ========================================
   CABEÇALHO DO CURSO
   ======================================== */

.course-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.course-header h5 {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-size: 1.1rem;
}

.course-progress {
    margin-bottom: 0.5rem;
}

.progress {
    height: 8px;
    border-radius: 1rem;
}

.progress-bar {
    background-color: #D54148 !important;
}

/* ========================================
   MÓDULOS E AULAS
   ======================================== */

.course-modules {
    padding: 0;
    list-style: none;
}

.module-item {
    border-bottom: 1px solid #e2e8f0;
}

.module-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.module-header:hover {
    background-color: #f8fafc;
}

.module-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 0;
}

.module-lessons {
    padding: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.module-lessons.show {
    max-height: 1000px;
}

.lesson-item {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.lesson-item:hover {
    background-color: #f8fafc;
}

.lesson-item.active {
    background-color: #edf2ff;
    border-left: 3px solid var(--primary-color);
}

.lesson-status {
    margin-right: 0.75rem;
}

.lesson-title {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
    flex: 1;
    text-decoration: none;
}

.lesson-item.active .lesson-title {
    color: var(--primary-color);
    font-weight: 500;
}

.lesson-duration {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ========================================
   ÁREA DE CONTEÚDO
   ======================================== */

.content-header {
    margin-bottom: 1.5rem;
}

.content-header h4 {
    margin-bottom: 0.5rem;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.video-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* ========================================
   CARDS DE CURSO
   ======================================== */

.course-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    height: 180px;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.5rem;
    background-color: var(--primary-color);
    color: #fff;
}

.course-progress-sm {
    height: 6px;
    width: 100%;
    border-radius: 0.5rem;
    margin-top: 0.75rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.course-meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
}

.course-meta span {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.course-meta i {
    margin-right: 0.35rem;
}

/* ========================================
   WIDGETS DO DASHBOARD
   ======================================== */

.stats-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.stats-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.stats-title {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.stats-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* ========================================
   PERFIL DO USUÁRIO
   ======================================== */

.profile-header {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
}

.profile-image {
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 2rem;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-details {
    color: #64748b;
    margin-bottom: 1rem;
}

.profile-bio {
    color: #334155;
    margin-bottom: 0;
}

/* ========================================
   CERTIFICADOS
   ======================================== */

.certificate-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.certificate-preview {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* ========================================
   FOOTER
   ======================================== */

.main-footer {
    background-color: #fff;
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ========================================
   RESPONSIVE DO ALUNO
   ======================================== */

@media (max-width: 992px) {
    .course-sidebar {
        position: fixed;
        left: -280px;
        z-index: 1050;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .course-sidebar.show {
        left: 0;
    }

    .course-content-wrapper {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }

    .sidebar-toggle {
        display: block;
    }

    .course-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .course-overlay.show {
        display: block;
    }
}

@media (max-width: 768px) {
    .content-wrapper,
    .course-content-wrapper {
        padding: 1rem;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .course-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-meta span {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .card-header, .card-body,
    .stats-card, .profile-header {
        padding: 1rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .topbar-right {
        gap: 0.5rem;
    }
}

/*page cursos*/
/* Banner do curso */
.course-banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Lista de recursos */
.feature-list {
    padding-left: 0;
    list-style: none;
}

.feature-list li {
    margin-bottom: 10px;
}

/* Navegação por abas */
.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: #D54148;
    border-bottom: none;
}

/* Accordion de conteúdo */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #D54148;
}

.accordion-button:focus {
    box-shadow: none;
}

/* Imagens de cursos relacionados */
.related-course-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

/* Botões de compartilhamento */
.copy-link:focus {
    outline: none;
    box-shadow: none;
}

.list-group-item.active {
    z-index: 2;
    color: #ffffff;
    background-color: #d54148cf;
    border-color: #D54148;
}
.list-group.list-group-flush.aulas-sidebar {
    font-size: 13px;
}
h5.mb-0 {
    font-size: 1.0rem;
}
.progress.flex-grow-1.me-2 {
    background: #d541486b;
}
/* Responsividade */
@media (max-width: 991.98px) {
    .course-banner img {
        height: 200px;
    }
}

/* Estilo para order bump */
.bg-success-soft {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Efeitos hover nos itens */
.payment-item .bg-light:hover,
.payment-item .bg-success-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Ícones com cores consistentes */
.fa-graduation-cap { color: #007bff !important; }
.fa-box { color: #28a745 !important; }
.fa-tools { color: #17a2b8 !important; }
.fa-gift { color: #28a745 !important; }

/* ============================================
   CORES PERSONALIZADAS PARA SISTEMA DE PAGAMENTOS
   ============================================ */

/* 🔒 AGUARDANDO PAGAMENTO - Laranja escuro */
.bg-payment-pending {
    background-color: #ff8c00 !important;
    color: white !important;
    border: 1px solid #e67e00;
}

.bg-payment-pending-soft {
    background-color: rgba(255, 140, 0, 0.1) !important;
    color: #cc6f00 !important;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

/* 🚫 PAGAMENTO RECUSADO - Vermelho personalizado */
.bg-payment-refused {
    background-color: #D54148 !important;
    color: white !important;
    border: 1px solid #D54148;
}

.bg-payment-refused-soft {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #D54148 !important;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ⏳ PROCESSANDO - Azul claro */
.bg-payment-processing {
    background-color: #17a2b8 !important;
    color: white !important;
    border: 1px solid #138496;
}

.bg-payment-processing-soft {
    background-color: rgba(23, 162, 184, 0.1) !important;
    color: #0f6674 !important;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* 🔍 EM ANÁLISE - Roxo */
.bg-payment-analyzing {
    background-color: #6f42c1 !important;
    color: white !important;
    border: 1px solid #5a359a;
}

.bg-payment-analyzing-soft {
    background-color: rgba(111, 66, 193, 0.1) !important;
    color: #4c2c85 !important;
    border: 1px solid rgba(111, 66, 193, 0.3);
}

/* ❌ CANCELADO - Cinza escuro */
.bg-payment-canceled {
    background-color: #6c757d !important;
    color: white !important;
    border: 1px solid #5a6268;
}

.bg-payment-canceled-soft {
    background-color: rgba(108, 117, 125, 0.1) !important;
    color: #495057 !important;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* 💰 REEMBOLSADO - Verde oliva */
.bg-payment-refunded {
    background-color: #6c9a3f !important;
    color: white !important;
    border: 1px solid #5a7f35;
}

.bg-payment-refunded-soft {
    background-color: rgba(108, 154, 63, 0.1) !important;
    color: #486530 !important;
    border: 1px solid rgba(108, 154, 63, 0.3);
}

/* 🎯 AGUARDANDO ACESSO - Gradiente laranja para vermelho */
.bg-payment-locked {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    color: white !important;
    border: 1px solid #e55a2b;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.bg-payment-locked-soft {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%) !important;
    color: #d1481f !important;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.btn-outline-info {
    --bs-btn-color: #D54148 !important;
    --bs-btn-border-color: #D54148 !important;
    --bs-btn-hover-color: #D54148 !important;
    --bs-btn-hover-bg: #D541 4;
    --bs-btn-hover-border-color: #D54148 !important;
    --bs-btn-focus-shadow-rgb: 13, 202, 240;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #D54148 !important;
    --bs-btn-active-border-color: #D54148 !important;
    --bs-btn-disabled-color: #D54148 !important;
    --bs-btn-disabled-border-color: #D54148 !important;
}
/* ============================================
   UTILITÁRIOS E EFEITOS
   ============================================ */

/* Hover effects para badges */
.badge:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Efeito pulsante para status pendente */
.payment-pulse {
    animation: payment-pulse 2s infinite;
}

@keyframes payment-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 140, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}

/* ============================================
   CLASSES PARA DIFERENTES TAMANHOS
   ============================================ */

/* Badge pequeno */
.badge-payment-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Badge médio */
.badge-payment-md {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Badge grande */
.badge-payment-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================
   ÍCONES PERSONALIZADOS
   ============================================ */

.payment-icon-pending::before {
    content: "🔒";
    margin-right: 0.25rem;
}

.payment-icon-processing::before {
    content: "⏳";
    margin-right: 0.25rem;
}

.payment-icon-analyzing::before {
    content: "🔍";
    margin-right: 0.25rem;
}

.payment-icon-canceled::before {
    content: "❌";
    margin-right: 0.25rem;
}

.payment-icon-refunded::before {
    content: "💰";
    margin-right: 0.25rem;
}