/* Estilos para o widget de aulas do módulo */

/* Container principal */
.module-lessons-container {
    margin-top: 1rem;
}

/* Card principal */
.module-lessons-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Cabeçalho do card */
.module-lessons-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.module-lessons-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Container da tabela */
.module-lessons-table-container {
    overflow-x: auto;
}

/* Tabela */
.module-lessons-table {
    min-width: 100%;
    border-collapse: collapse;
}

/* Cabeçalho da tabela */
.module-lessons-thead {
    background: #f9fafb;
}

.module-lessons-th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

/* Alinhamento centralizado para coluna vídeo */
.module-lessons-th:nth-child(3) {
    text-align: center;
}

/* Alinhamento centralizado para coluna ações */
.module-lessons-th:nth-child(4) {
    text-align: center;
}

.module-lessons-th.sortable {
    cursor: pointer;
}

.module-lessons-th.sortable:hover {
    background: #f3f4f6;
}

.module-lessons-th-content {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.module-lessons-sort-icon {
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
}

/* Corpo da tabela */
.module-lessons-tbody {
    background: #ffffff;
}

.module-lessons-tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.module-lessons-tr:hover {
    background: #f9fafb;
}

.module-lessons-td {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    vertical-align: middle;
}

/* Alinhamento centralizado para célula vídeo */
.module-lessons-td:nth-child(3) {
    text-align: center;
}

/* Alinhamento centralizado para célula ações */
.module-lessons-td:nth-child(4) {
    text-align: center;
}

/* Células específicas */
.module-lessons-title-cell {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.module-lessons-order-cell {
    font-size: 0.875rem;
    color: #111827;
}

/* Badge de status */
.module-lessons-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 500;
}

.module-lessons-status-badge.status-active {
    background: #dcfce7;
    color: #166534;
}

.module-lessons-status-badge.status-inactive {
    background: #fef2f2;
    color: #dc2626;
}

/* Célula de vídeo */
.module-lessons-video-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge de vídeo seguindo o padrão da listagem de aulas */
.module-lessons-video-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    min-width: 2.5rem;
}

.module-lessons-video-badge.video-yes {
    background: #dcfce7;
    color: #166534;
}

.module-lessons-video-badge.video-no {
    background: #f3f4f6;
    color: #6b7280;
}

/* Célula de ações */
.module-lessons-actions-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botão Ver Aula */
.module-lessons-view-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #dcfce7;
    color: #166534;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.module-lessons-view-button:hover {
    background: #bbf7d0;
    color: #166534;
    border-color: #86efac;
    transform: translateY(-1px);
}

.module-lessons-view-icon {
    width: 0.875rem;
    height: 0.875rem;
}

/* Rodapé da tabela */
.module-lessons-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
}

.module-lessons-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
}

.module-lessons-results {
    color: #6b7280;
}

.module-lessons-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Select customizado para parecer com o Filament */
.module-lessons-select {
    appearance: none;
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.5rem center;
    background-size: 1.5em 1.5em;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    min-width: 4rem;
}

.module-lessons-select:hover {
    border-color: #9ca3af;
}

.module-lessons-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.module-lessons-select option {
    background: #ffffff;
    color: #374151;
    padding: 0.25rem;
}

/* Estado vazio */
.module-lessons-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.module-lessons-empty-content {
    color: #6b7280;
}

.module-lessons-empty-icon {
    width: 3rem;
    height: 3rem;
    color: #9ca3af;
    margin: 0 auto 1rem;
}

.module-lessons-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.module-lessons-empty-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .module-lessons-header {
        padding: 0.75rem 1rem;
    }
    
    .module-lessons-th,
    .module-lessons-td {
        padding: 0.5rem 0.75rem;
    }
    
    .module-lessons-footer {
        padding: 0.5rem 1rem;
    }
    
    .module-lessons-pagination {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
} 