:root {
    --neo-primary: #1BAAB2;
    --neo-secondary: #555AD8;
    --neo-dark: #071835;
    --neo-surface: #F4F4F4;
    --neo-primary-dark: #159299;
}

/* General background */
.content-wrapper {
    background-color: var(--neo-surface);
}

/* Content header title */
.content-header h1 {
    color: var(--neo-dark);
    font-weight: 700;
    font-size: 1.8rem;
    border-left: 4px solid var(--neo-primary);
    padding-left: 15px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    min-height: 40px;
}

/* Sidebar */
.main-sidebar {
    background-color: var(--neo-dark) !important;
}

.main-sidebar .brand-link,
.main-sidebar .brand-link .brand-text,
.main-sidebar .nav-sidebar>.nav-item>.nav-link,
.main-sidebar .nav-sidebar>.nav-item>.nav-link p,
.main-sidebar .nav-sidebar>.nav-item>.nav-link i {
    color: #ffffff;
}

.main-sidebar .nav-sidebar>.nav-item>.nav-link.active,
.main-sidebar .nav-sidebar>.nav-item>.nav-link.active:focus,
.main-sidebar .nav-sidebar>.nav-item>.nav-link.active:hover {
    background-color: var(--neo-secondary) !important;
    color: #ffffff !important;
}

.main-sidebar .nav-treeview>.nav-item>.nav-link.active {
    background-color: rgba(85, 90, 216, 0.25) !important;
    color: #ffffff !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--neo-primary);
    border-color: var(--neo-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--neo-primary-dark);
    border-color: var(--neo-primary-dark);
}

/* Cards */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(7, 24, 53, 0.06);
}

/* Card footer com botões alinhados - apenas para formulários */
.neolearn-form .card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.neolearn-form .card-footer .btn {
    flex: 0 1 auto !important;
    width: auto !important;
}

.neolearn-form .card-footer .btn:first-child {
    margin-right: auto !important;
}

.neolearn-form .card-footer .btn:last-child {
    margin-left: auto !important;
}

/* Remover as regras gerais de card-footer que afetavam a paginação */
.card-footer {
    display: block !important;
}

.card-footer.d-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
}

/* Card header (icon + action aligned) */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0;
}

.card-header .card-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.card-header .card-tools {
    margin-left: auto;
}

.card-header .card-title i {
    background-color: rgba(85, 90, 216, 0.1);
    color: var(--neo-secondary);
    border-radius: 8px;
    padding: 6px 8px;
    box-shadow: none;
}

/* Table */
.table thead th {
    color: var(--neo-dark);
    background-color: #ffffff;
    border-bottom: 1px solid rgba(7, 24, 53, 0.08);
}

.table tbody tr:hover {
    background-color: rgba(7, 24, 53, 0.04);
}

/* Pagination */
.pagination .page-link {
    color: var(--neo-secondary);
}

.pagination .page-link:hover {
    color: #ffffff;
    background-color: var(--neo-secondary);
    border-color: var(--neo-secondary);
}

.pagination .page-item.active .page-link {
    background-color: var(--neo-secondary);
    border-color: var(--neo-secondary);
    color: #ffffff;
}

/* Action buttons inside tables */
.table .btn.btn-default,
.table .btn.btn-danger {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}

.table .btn.btn-default i {
    color: var(--neo-secondary);
}

.table .btn.btn-danger i {
    color: #C53030;
}

.table .btn.btn-default:hover,
.table .btn.btn-danger:hover {
    border-color: transparent;
}

.table .btn.btn-default:hover {
    background-color: rgba(85, 90, 216, 0.12);
}

.table .btn.btn-danger:hover {
    background-color: rgba(197, 48, 48, 0.12);
}

/* Badge vertical alignment */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0.35em 0.6em;
}

/* Footer text contrast */
.card-footer .text-muted {
    color: rgba(7, 24, 53, 0.6) !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(7, 24, 53, 0.6);
}

.breadcrumb-item a {
    color: var(--neo-secondary);
}

.breadcrumb-item a:hover {
    color: var(--neo-primary);
}

.breadcrumb-item.active {
    color: rgba(7, 24, 53, 0.6);
}

/* Soft badges */
.badge-soft-admin {
    color: var(--neo-secondary);
    background-color: rgba(85, 90, 216, 0.15);
}

.badge-soft-manager {
    color: var(--neo-dark);
    background-color: rgba(7, 24, 53, 0.15);
}

.badge-soft-student {
    color: var(--neo-primary);
    background-color: rgba(27, 170, 178, 0.15);
}

.badge-soft-active {
    color: var(--neo-primary);
    background-color: rgba(27, 170, 178, 0.15);
}

.badge-soft-inactive {
    color: #C53030;
    background-color: rgba(197, 48, 48, 0.12);
}

.nav-header-white {
    color: #FFFFFF !important;
}

/* Login page - NeoLearn premium */
.login-page {
    background: linear-gradient(135deg, #071835 0%, #555AD8 100%) !important;
    min-height: 100vh;
}

.login-page .login-box .card {
    border-radius: 12px;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(7, 24, 53, 0.18);
}

.login-page .login-logo {
    margin-bottom: 24px;
}

.login-page .btn-primary {
    background-color: #1BAAB2;
    border-color: #1BAAB2;
    font-weight: 700;
}

.login-page .btn-primary:hover,
.login-page .btn-primary:focus,
.login-page .btn-primary:active,
.login-page .btn-primary:not(:disabled):not(.disabled):active {
    background-color: #159299;
    border-color: #159299;
    box-shadow: 0 6px 16px rgba(27, 170, 178, 0.35);
}

.login-page .form-control {
    border-radius: 8px;
}

.login-page .form-control:focus {
    border-color: #555AD8;
    box-shadow: 0 0 0 0.2rem rgba(85, 90, 216, 0.25);
}

.login-page .input-group-text {
    border-radius: 8px;
}

.login-page .input-group-text .fas {
    color: rgba(7, 24, 53, 0.5);
}

/* User create form (AdminLTE) */
.neolearn-form label {
    color: var(--neo-dark);
    font-weight: 600;
}

.neolearn-form .form-control {
    border-radius: 8px;
}

.neolearn-form .form-control:focus,
.neolearn-form select.form-control:focus {
    border-color: var(--neo-secondary);
    box-shadow: 0 0 0 0.2rem rgba(85, 90, 216, 0.2);
}

.neolearn-form .form-control.is-invalid,
.neolearn-form select.form-control.is-invalid {
    border-color: #DC2626;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.neolearn-form .validation-error-message {
    display: none;
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 4px;
}

.neolearn-form .btn-primary {
    background-color: var(--neo-primary);
    border-color: var(--neo-primary);
    border-radius: 8px;
    font-weight: 600;
}

.neolearn-form .btn-default {
    background-color: #E5E7EB;
    border-color: #E5E7EB;
    color: #374151;
    border-radius: 8px;
}

/* 1. Ajuste do Título da Página */
.content-header h1 {
    color: #071835 !important;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* 2. Modernização do Ícone do Card Header */
.card-header .fa-users {
    background-color: rgba(85, 90, 216, 0.1);
    /* Azul Médio Soft */
    color: #555AD8;
    /* Azul Médio */
    padding: 10px;
    border-radius: 8px;
    /* Cantos levemente arredondados em vez de caixa bruta */
    border: none !important;
}

/* 3. Ajuste de espaçamento do Header do Card */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

/* ============================================ */
/* Soft Design Alerts - NeoLearn Brand Colors  */
/* ============================================ */

/* Alert Success - Verde Água Soft */
.alert-success {
    background-color: rgba(27, 170, 178, 0.1);
    border: none;
    border-left: 5px solid #1BAAB2;
    color: #1BAAB2;
    font-weight: 500;
    padding: 1rem 1.25rem;
    border-radius: 0.25rem;
}

.alert-success .close,
.alert-success .btn-close {
    color: #1BAAB2;
    opacity: 0.6;
    background: none;
    border: none;
    box-shadow: none;
}

.alert-success .close:hover,
.alert-success .btn-close:hover {
    opacity: 1;
}

.alert-success .alert-heading {
    color: #1BAAB2;
    font-weight: 600;
}

/* Alert Danger - Vermelho Suave */
.alert-danger {
    background-color: rgba(220, 38, 38, 0.1);
    border: none;
    border-left: 5px solid #DC2626;
    color: #DC2626;
    font-weight: 500;
    padding: 1rem 1.25rem;
    border-radius: 0.25rem;
}

.alert-danger .close,
.alert-danger .btn-close {
    color: #DC2626;
    opacity: 0.6;
    background: none;
    border: none;
    box-shadow: none;
}

.alert-danger .close:hover,
.alert-danger .btn-close:hover {
    opacity: 1;
}

.alert-danger .alert-heading {
    color: #DC2626;
    font-weight: 600;
}

/* Alert Info - Azul Médio Soft */
.alert-info {
    background-color: rgba(85, 90, 216, 0.1);
    border: none;
    border-left: 5px solid #555AD8;
    color: #555AD8;
    font-weight: 500;
    padding: 1rem 1.25rem;
    border-radius: 0.25rem;
}

.alert-info .close,
.alert-info .btn-close {
    color: #555AD8;
    opacity: 0.6;
    background: none;
    border: none;
    box-shadow: none;
}

.alert-info .close:hover,
.alert-info .btn-close:hover {
    opacity: 1;
}

.alert-info .alert-heading {
    color: #555AD8;
    font-weight: 600;
}

/* Alert Warning - Cor Suave (Laranja Suave) */
.alert-warning {
    background-color: rgba(217, 119, 6, 0.1);
    border: none;
    border-left: 5px solid #D97706;
    color: #D97706;
    font-weight: 500;
    padding: 1rem 1.25rem;
    border-radius: 0.25rem;
}

.alert-warning .close,
.alert-warning .btn-close {
    color: #D97706;
    opacity: 0.6;
    background: none;
    border: none;
    box-shadow: none;
}

.alert-warning .close:hover,
.alert-warning .btn-close:hover {
    opacity: 1;
}

.alert-warning .alert-heading {
    color: #D97706;
    font-weight: 600;
}

/* Container do Toastr - Ajuste de sombra para destacar do fundo */
#toast-container>div {
    opacity: 1 !important;
    box-shadow: 0 10px 30px rgba(7, 24, 53, 0.2) !important;
    background-image: none !important;
    border-radius: 8px !important;
}

/* Ajuste Global de Cores para Leitura */
#toast-container .toast-title {
    color: #071835 !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    margin-bottom: 4px;
}

#toast-container .toast-message {
    color: #071835 !important;
    font-weight: 500 !important;
    line-height: 1.4;
}

/* Sucesso - Fundo claro com borda verde */
#toast-container>.toast-success {
    background-color: #e8f7f7 !important;
    border-left: 6px solid #1BAAB2 !important;
}

/* Erro - Fundo rosado com borda vermelha */
#toast-container>.toast-error {
    background-color: #fdeeee !important;
    border-left: 6px solid #e74c3c !important;
}

/* Info - Fundo azul claro com borda azul */
#toast-container>.toast-info {
    background-color: #eef4fd !important;
    border-left: 6px solid #555AD8 !important;
}

/* Warning - Fundo amarelo claro com borda laranja */
#toast-container>.toast-warning {
    background-color: #fef9e7 !important;
    border-left: 6px solid #D97706 !important;
}

/* Botão de Fechar (X) - Garantir que seja visível */
.toast-close-button {
    color: #071835 !important;
    text-shadow: none !important;
    opacity: 0.5 !important;
}

.toast-close-button:hover {
    opacity: 1 !important;
}

/* ============================================
   SOFT UI MODAL - Delete Confirmation
   ============================================ */

/* Estrutura Geral do Modal */
.modal-soft .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(7, 24, 53, 0.15);
    overflow: hidden;
}

/* Cabeçalho do Modal */
.modal-soft .modal-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(7, 24, 53, 0.08);
    border-top: 5px solid #e74c3c;
    padding: 1.25rem 1.5rem;
}

.modal-soft .modal-title {
    color: var(--neo-dark);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-soft .modal-title i {
    color: #e74c3c;
    font-size: 1rem;
}

.modal-soft .modal-header .close {
    color: #6c757d;
    opacity: 0.6;
    text-shadow: none;
    font-size: 1.5rem;
    font-weight: 400;
    padding: 0;
    margin: -0.5rem -0.5rem -0.5rem auto;
    background: transparent;
    border: none;
}

.modal-soft .modal-header .close:hover {
    color: var(--neo-dark);
    opacity: 1;
}

/* Corpo do Modal */
.modal-soft .modal-body {
    padding: 1.5rem;
    background-color: #ffffff;
}

.modal-soft .modal-body p {
    color: var(--neo-dark);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.modal-soft .modal-body .text-muted {
    color: #6c757d !important;
}

.modal-soft .modal-body .user-highlight {
    color: var(--neo-secondary);
    font-weight: 600;
}

/* Rodapé do Modal */
.modal-soft .modal-footer {
    background-color: var(--neo-surface);
    border-top: 1px solid rgba(7, 24, 53, 0.08);
    padding: 1rem 1.5rem;
    justify-content: space-between;
}

/* Botão Cancelar - Estilo Outline Suave */
.modal-soft .btn-cancel {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #6c757d;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.modal-soft .btn-cancel:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: var(--neo-dark);
}

/* Botão Confirmar - Vermelho com Sombra */
.modal-soft .btn-confirm-delete {
    background-color: #e74c3c;
    border: none;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
    transition: all 0.2s ease;
}

.modal-soft .btn-confirm-delete:hover {
    background-color: #c0392b;
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.45);
    transform: translateY(-1px);
}

.modal-soft .btn-confirm-delete:disabled {
    background-color: #e74c3c;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.modal-soft .btn-confirm-delete i.fa-spinner {
    margin-right: 6px;
}

.btn-save {
    margin-right: -10px;
}

/* Customização do botão Adicionar Novo (NeoLearn Style) */
.btn-add {
    background-color: #1BAAB2 !important;
    /* Verde Água da marca */
    border-color: #1BAAB2 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    /* Arredondamento padrão do sistema */
    font-weight: 600 !important;
    padding: 6px 16px !important;
    /* Ajuste para o tamanho btn-sm */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Espaço entre o ícone e o texto */
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    margin-right: 10px;
}

/* Efeito de Hover (Passar o mouse) */
.btn-add:hover {
    background-color: #168a91 !important;
    /* Tom sutilmente mais escuro */
    border-color: #168a91 !important;
    transform: translateY(-1px);
    /* Leve elevação */
    box-shadow: 0 4px 8px rgba(27, 170, 178, 0.3) !important;
    /* Sombra na cor da marca */
    color: #ffffff !important;
}

/* Efeito de Clique */
.btn-add:active {
    transform: translateY(0);
    box-shadow: none !important;
}

/* Ajuste do ícone interno */
.btn-add i {
    font-size: 0.85rem;
}

/* ============================================
   SOFT ACTION BUTTONS - Table Actions
   ============================================ */
.actions-container {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.btn-action-soft {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(7, 24, 53, 0.08);
    color: var(--neo-dark);
    transition: all 0.2s ease;
    box-shadow: none;
    padding: 0;
}

.btn-action-soft i {
    font-size: 0.85rem;
    line-height: 1;
}

.btn-action-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(7, 24, 53, 0.12);
}

/* Variações por ação */
.btn-action-soft.btn-students {
    background-color: rgba(27, 170, 178, 0.10);
    color: #1BAAB2;
}

.btn-action-soft.btn-students:hover {
    background-color: rgba(27, 170, 178, 0.20);
}

.btn-action-soft.btn-exams {
    background-color: rgba(85, 90, 216, 0.10);
    color: #555AD8;
}

.btn-action-soft.btn-exams:hover {
    background-color: rgba(85, 90, 216, 0.20);
}

.btn-action-soft.btn-edit {
    background-color: rgba(7, 24, 53, 0.08);
    color: var(--neo-dark);
}

.btn-action-soft.btn-edit:hover {
    background-color: rgba(7, 24, 53, 0.16);
}

.btn-action-soft.btn-delete {
    background-color: rgba(231, 76, 60, 0.10);
    color: #e74c3c;
}

.btn-action-soft.btn-delete:hover {
    background-color: rgba(231, 76, 60, 0.20);
}

.btn-action-soft.btn-lessons {
    background-color: rgba(217, 119, 6, 0.10);
    color: #D97706;
}

.btn-action-soft.btn-lessons:hover {
    background-color: rgba(217, 119, 6, 0.20);
}

/* ============================================
   SOFT RESOURCE BUTTONS - Quiz & Flashcards
   NeoLearn Brand Colors
   ============================================ */

/* Base class for resource buttons */
.btn-resource-soft {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.btn-resource-soft i {
    font-size: 0.85rem;
    line-height: 1;
}

/* Hover state for all resource buttons */
.btn-resource-soft:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Quiz Button - Azul Médio (Tecnologia/Avaliação) */
.btn-resource-soft.btn-quiz {
    background-color: rgba(85, 90, 216, 0.1);
    color: #555AD8;
}

.btn-resource-soft.btn-quiz:hover {
    background-color: rgba(85, 90, 216, 0.2);
    box-shadow: 0 6px 14px rgba(85, 90, 216, 0.2);
    color: #555AD8;
}

/* Materiais Didáticos Button - Azul Médio (Tecnologia/Avaliação) */
.btn-resource-soft.btn-materials {
    background-color: rgba(85, 90, 216, 0.1) !important;
    color: #548ee6 !important;
}

.btn-resource-soft.btn-materials:hover {
    background-color: rgba(85, 90, 216, 0.2) !important;
    box-shadow: 0 6px 14px rgba(85, 90, 216, 0.2) !important;
    color: #548ee6 !important;
}

/* Flashcards Button - Verde Água (Educação/Estudo) */
.btn-resource-soft.btn-flashcards {
    background-color: rgba(27, 170, 178, 0.1);
    color: #1BAAB2;
}

.btn-resource-soft.btn-flashcards:hover {
    background-color: rgba(27, 170, 178, 0.2);
    box-shadow: 0 6px 14px rgba(27, 170, 178, 0.2);
    color: #1BAAB2;
}

/* Lesson Plan Button - Laranja (Roteiro de Aula) */
.btn-resource-soft.btn-lesson-plan {
    background-color: rgba(217, 119, 6, 0.15) !important;
    color: #D97706 !important;
}

.btn-resource-soft.btn-lesson-plan:hover {
    background-color: rgba(217, 119, 6, 0.25) !important;
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.25) !important;
    color: #D97706 !important;
}

/* Class Outline Button - Azul Escuro (Plano de Aula) */
.btn-resource-soft.btn-class-outline {
    background-color: rgba(7, 24, 53, 0.12) !important;
    color: #071835 !important;
}

.btn-resource-soft.btn-class-outline:hover {
    background-color: rgba(7, 24, 53, 0.22) !important;
    box-shadow: 0 6px 14px rgba(7, 24, 53, 0.2) !important;
    color: #071835 !important;
}

/* ============================================
   RESOURCE STATUS BADGES - Quiz & Flashcard
   NeoLearn Soft UI Design
   ============================================ */

/* Not Created - Cinza suave (neutro) */
.badge-resource-not-created {
    background-color: rgba(108, 117, 125, 0.12);
    color: #6c757d;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Draft / Não Publicado - Laranja Suave (aviso) */
.badge-resource-draft {
    background-color: rgba(217, 119, 6, 0.12);
    color: #D97706;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Published / Publicado - Verde Água (sucesso) */
.badge-resource-published {
    background-color: rgba(27, 170, 178, 0.15);
    color: #1BAAB2;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* ============================================
   QUIZ MANAGEMENT - Soft UI Tabs
   NeoLearn Brand Colors
   ============================================ */

/* Container principal do Quiz */
.quiz-manage-container {
    position: relative;
    min-height: calc(100vh - 200px);
}

/* Header fixo com título e botão publicar */
.quiz-header-sticky {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(7, 24, 53, 0.06);
}

.quiz-header-sticky .quiz-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--neo-dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.quiz-header-sticky .quiz-title i {
    background-color: rgba(85, 90, 216, 0.1);
    color: var(--neo-secondary);
    border-radius: 10px;
    padding: 10px 12px;
}

/* Badge de Rascunho discreto */
.badge-draft-soft {
    background-color: rgba(217, 119, 6, 0.12);
    color: #D97706;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botão Publicar */
.btn-publish-quiz {
    background-color: var(--neo-secondary);
    border: none;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    box-shadow: 0 4px 14px rgba(85, 90, 216, 0.3);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-publish-quiz:hover {
    background-color: #4448ae;
    box-shadow: 0 6px 18px rgba(85, 90, 216, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-publish-quiz:disabled {
    background-color: #9ca3af;
    color: #ffffff;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

/* Container das Tabs */
.quiz-tabs-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(7, 24, 53, 0.06);
    overflow: hidden;
}

/* Nav Tabs customizadas */
.nav-tabs-quiz {
    border-bottom: 1px solid rgba(7, 24, 53, 0.08);
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 0 8px;
}

.nav-tabs-quiz .nav-item {
    margin-bottom: 0;
}

.nav-tabs-quiz .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: rgba(7, 24, 53, 0.6);
    font-weight: 600;
    padding: 16px 24px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-tabs-quiz .nav-link:hover {
    color: var(--neo-dark);
    background-color: rgba(7, 24, 53, 0.03);
}

.nav-tabs-quiz .nav-link.active {
    background-color: transparent;
    border-bottom: none;
    color: var(--neo-dark);
}

.nav-tabs-quiz .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--neo-primary);
    border-radius: 3px 3px 0 0;
}

.nav-tabs-quiz .nav-link i {
    font-size: 1rem;
}

.nav-tabs-quiz .nav-link.active i {
    color: var(--neo-primary);
}

.nav-tabs .nav-link.active {
    border-top: 3px solid #fbfcfc !important;
    border-bottom: none;
}

/* Tab Content */
.quiz-tab-content {
    padding: 24px;
    /* min-height: 400px; */
}

.quiz-tab-content .tab-pane {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card de Configurações */
.quiz-settings-card {
    border-radius: 8px;
    border: 1px solid rgba(7, 24, 53, 0.08);
    padding: 24px;
    background: #fafafa;
}

.quiz-settings-card .form-group label {
    color: var(--neo-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.quiz-settings-card .form-control {
    border-radius: 8px;
    border: 1px solid rgba(7, 24, 53, 0.12);
    padding: 12px 16px;
}

.quiz-settings-card .form-control:focus {
    border-color: var(--neo-secondary);
    box-shadow: 0 0 0 3px rgba(85, 90, 216, 0.15);
}

/* Checkbox customizado */
.quiz-checkbox-soft {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(7, 24, 53, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-checkbox-soft:hover {
    border-color: var(--neo-secondary);
    background: rgba(85, 90, 216, 0.02);
}

.quiz-checkbox-soft input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--neo-primary);
}

.quiz-checkbox-soft span {
    color: var(--neo-dark);
    font-weight: 500;
}

/* Card de Geração com IA */
.card-ai-generator {
    background: linear-gradient(135deg, rgba(85, 90, 216, 0.05) 0%, rgba(85, 90, 216, 0.02) 100%);
    border: 1px dashed rgba(85, 90, 216, 0.3);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.card-ai-generator .ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-ai-generator .ai-header i {
    background: linear-gradient(135deg, var(--neo-secondary) 0%, #7c80e8 100%);
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 1.1rem;
}

.card-ai-generator .ai-header h6 {
    color: var(--neo-secondary);
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.card-ai-generator .ai-description {
    color: rgba(7, 24, 53, 0.7);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-ai-generate {
    background: linear-gradient(135deg, var(--neo-secondary) 0%, #7c80e8 100%);
    border: none;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    box-shadow: 0 4px 14px rgba(85, 90, 216, 0.3);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ai-generate:hover {
    box-shadow: 0 6px 20px rgba(85, 90, 216, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-ai-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Card de Adicionar Pergunta Manual */
.card-manual-question {
    border-radius: 8px;
    border: 1px solid rgba(7, 24, 53, 0.1);
    padding: 24px;
    background: #ffffff;
}

.card-manual-question h6 {
    color: var(--neo-dark);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-manual-question h6 i {
    color: var(--neo-primary);
}

/* Grid de Opções melhorado */
.options-grid {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 50px;
    gap: 12px;
    align-items: center;
}

@media (max-width: 992px) {
    .options-grid {
        grid-template-columns: 50px 1fr 40px;
    }

    .options-grid .option-explanation {
        grid-column: 1 / -1;
    }
}

.options-grid .option-row {
    display: contents;
}

.options-grid .option-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-grid .option-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--neo-primary);
}

.option-input {
    border-radius: 8px;
    border: 1px solid rgba(7, 24, 53, 0.12);
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.option-input:focus {
    border-color: var(--neo-secondary);
    box-shadow: 0 0 0 3px rgba(85, 90, 216, 0.1);
}

.btn-remove-option {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-remove-option:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.05);
}

/* Accordion de Questões */
.questions-accordion {
    margin-top: 0;
}

.question-accordion-item {
    border-radius: 8px !important;
    border: 1px solid rgba(7, 24, 53, 0.1) !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
}

.question-accordion-header {
    padding: 0;
    background: transparent;
    border: none;
}

.question-accordion-btn {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.question-accordion-btn:hover {
    background: rgba(7, 24, 53, 0.02);
}

.question-accordion-btn .question-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--neo-secondary);
    flex-shrink: 0;
}

.question-accordion-btn .question-order {
    background: var(--neo-secondary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.question-accordion-btn .question-text {
    flex: 1;
    color: var(--neo-dark);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.question-accordion-btn .question-points {
    background: rgba(27, 170, 178, 0.12);
    color: var(--neo-primary);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
}

.question-accordion-btn .question-toggle {
    color: rgba(7, 24, 53, 0.4);
    transition: transform 0.2s ease;
}

.question-accordion-btn:not(.collapsed) .question-toggle {
    transform: rotate(180deg);
}

.question-accordion-body {
    padding: 0 20px 20px 64px;
    background: #fafafa;
    border-top: 1px solid rgba(7, 24, 53, 0.06);
}

.question-options-list {
    list-style: none;
    padding: 16px 0 0 0;
    margin: 0;
}

.question-options-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: var(--neo-dark);
    font-size: 0.9rem;
}

.question-options-list li.correct {
    color: var(--neo-primary);
    font-weight: 500;
}

.question-options-list li.correct::before {
    content: "✓";
    color: var(--neo-primary);
    font-weight: 700;
}

.question-options-list li:not(.correct)::before {
    content: "○";
    color: rgba(7, 24, 53, 0.3);
}

.question-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(7, 24, 53, 0.08);
}

.btn-question-action {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-question-edit {
    background: rgba(7, 24, 53, 0.08);
    color: var(--neo-dark);
}

.btn-question-edit:hover {
    background: rgba(7, 24, 53, 0.15);
}

.btn-question-delete {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.btn-question-delete:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* Barra de ações em lote */
.bulk-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(85, 90, 216, 0.08) 0%, rgba(85, 90, 216, 0.03) 100%);
    border-radius: 8px;
    margin-bottom: 20px;
}

.bulk-actions-bar .select-all-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bulk-actions-bar .select-all-container input {
    width: 18px;
    height: 18px;
    accent-color: var(--neo-secondary);
}

.bulk-actions-bar .select-all-container label {
    color: var(--neo-dark);
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

.bulk-actions-bar .selected-count {
    color: var(--neo-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-bulk-delete {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-bulk-delete:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
}

.btn-bulk-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty state */
.questions-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: rgba(7, 24, 53, 0.5);
}

.questions-empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: rgba(7, 24, 53, 0.2);
}

.questions-empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Botão salvar configurações */
.btn-save-settings {
    background-color: var(--neo-primary);
    border: none;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 28px;
    box-shadow: 0 4px 12px rgba(27, 170, 178, 0.25);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-save-settings:hover {
    background-color: var(--neo-primary-dark);
    box-shadow: 0 6px 16px rgba(27, 170, 178, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Options table melhorada */
.options-table-soft {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.options-table-soft thead th {
    color: rgba(7, 24, 53, 0.6);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border: none;
    background: transparent;
}

.options-table-soft tbody tr {
    background: #f8f9fa;
    border-radius: 8px;
}

.options-table-soft tbody td {
    padding: 10px 12px;
    border: none;
    vertical-align: middle;
}

.options-table-soft tbody td:first-child {
    border-radius: 8px 0 0 8px;
}

.options-table-soft tbody td:last-child {
    border-radius: 0 8px 8px 0;
}

.options-table-soft .form-control {
    border-radius: 8px;
    border: 1px solid rgba(7, 24, 53, 0.1);
}

.options-table-soft .form-control:focus {
    border-color: var(--neo-secondary);
    box-shadow: 0 0 0 2px rgba(85, 90, 216, 0.1);
}

/* Responsividade para a tabela de opções */
@media (max-width: 768px) {
    .options-table-soft thead {
        display: none;
    }

    .options-table-soft tbody tr {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .options-table-soft tbody td {
        padding: 0;
    }

    .options-table-soft tbody td:first-child {
        width: auto;
    }

    .options-table-soft tbody td:nth-child(2) {
        flex: 1;
        min-width: 200px;
    }

    .options-table-soft tbody td:nth-child(3) {
        width: 100%;
    }

    .options-table-soft tbody td:last-child {
        width: auto;
    }
}

/* ============================================
   FLASHCARD MANAGEMENT - Soft UI Design
   NeoLearn Brand Colors
   ============================================ */

/* Container principal do Flashcard */
.flashcard-manage-container {
    position: relative;
    min-height: calc(100vh - 200px);
}

/* Header fixo com título e botão publicar */
.flashcard-header-sticky {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(7, 24, 53, 0.06);
}

.flashcard-header-sticky .flashcard-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--neo-dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.flashcard-header-sticky .flashcard-title i {
    background-color: rgba(27, 170, 178, 0.1);
    color: var(--neo-primary);
    border-radius: 10px;
    padding: 10px 12px;
}

/* Badge de Rascunho discreto */
.badge-draft-soft {
    background-color: rgba(217, 119, 6, 0.12);
    color: #D97706;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge de Publicado */
.badge-published-soft {
    background-color: rgba(27, 170, 178, 0.12);
    color: var(--neo-primary);
    font-weight: 500;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge de Contagem de Cartas - Soft Style */
.badge-count-soft {
    background-color: rgba(85, 90, 216, 0.1);
    color: var(--neo-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-count-soft i {
    font-size: 0.9rem;
}

/* Botão Publicar Flashcard - Verde Água com elevação */
.btn-publish-flashcard {
    background-color: var(--neo-secondary);
    border: none;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    box-shadow: 0 4px 14px rgba(85, 90, 216, 0.3);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-publish-flashcard:hover {
    background-color: #4448ae;
    box-shadow: 0 6px 18px rgba(85, 90, 216, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-publish-flashcard:disabled {
    background-color: #9ca3af;
    color: #ffffff;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 1;
}

/* Container das Tabs */
.flashcard-tabs-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(7, 24, 53, 0.06);
    overflow: hidden;
}

/* Nav Tabs customizadas */
.nav-tabs-flashcard {
    border-bottom: 1px solid rgba(7, 24, 53, 0.08);
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 0 8px;
}

.nav-tabs-flashcard .nav-item {
    margin-bottom: 0;
}

.nav-tabs-flashcard .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: rgba(7, 24, 53, 0.6);
    font-weight: 600;
    padding: 16px 24px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-tabs-flashcard .nav-link:hover {
    color: var(--neo-dark);
    background-color: rgba(7, 24, 53, 0.03);
}

.nav-tabs-flashcard .nav-link.active {
    background-color: transparent;
    border-bottom: 3px solid var(--neo-primary);
    color: var(--neo-dark);
}

.nav-tabs-flashcard .nav-link i {
    font-size: 1rem;
}

.nav-tabs-flashcard .nav-link.active i {
    color: var(--neo-primary);
}

/* Badge de contagem na Tab */
.badge-tab-count {
    background-color: var(--neo-secondary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 4px;
}

/* Tab Content */
.flashcard-tab-content {
    padding: 24px;
    min-height: 400px;
}

.flashcard-tab-content .tab-pane {
    animation: fadeIn 0.2s ease-out;
}

/* Card de Criação Inicial */
.flashcard-create-card {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(27, 170, 178, 0.05) 0%, rgba(27, 170, 178, 0.02) 100%);
    border: 2px dashed rgba(27, 170, 178, 0.3);
    border-radius: 16px;
}

.flashcard-create-card .create-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--neo-primary) 0%, #34c3cc 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashcard-create-card .create-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.flashcard-create-card h5 {
    color: var(--neo-dark);
    font-weight: 700;
    margin-bottom: 8px;
}

.flashcard-create-form {
    text-align: left;
    margin-top: 24px;
}

.flashcard-create-form .form-group label {
    color: var(--neo-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.flashcard-create-form .form-control {
    border-radius: 10px;
    border: 1px solid rgba(7, 24, 53, 0.12);
    padding: 12px 16px;
}

.flashcard-create-form .form-control:focus {
    border-color: var(--neo-primary);
    box-shadow: 0 0 0 3px rgba(27, 170, 178, 0.15);
}

.btn-create-flashcard {
    background: linear-gradient(135deg, var(--neo-primary) 0%, #34c3cc 100%);
    border: none;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 24px;
    box-shadow: 0 4px 14px rgba(27, 170, 178, 0.3);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}

.btn-create-flashcard:hover {
    box-shadow: 0 6px 20px rgba(27, 170, 178, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Card de Configurações */
.flashcard-settings-card {
    border-radius: 12px;
    border: 1px solid rgba(7, 24, 53, 0.08);
    padding: 24px;
    background: #fafafa;
}

.flashcard-settings-card h6 {
    color: var(--neo-dark);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flashcard-settings-card h6 i {
    color: var(--neo-secondary);
}

.flashcard-settings-card .form-group label {
    color: var(--neo-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.flashcard-settings-card .form-control {
    border-radius: 10px;
    border: 1px solid rgba(7, 24, 53, 0.12);
    padding: 12px 16px;
}

/* Checkbox customizado */
.flashcard-checkbox-soft {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(7, 24, 53, 0.08);
}

.flashcard-checkbox-soft input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--neo-primary);
}

.flashcard-checkbox-soft span {
    color: var(--neo-dark);
    font-weight: 500;
}

/* Display de Tempo */
.flashcard-time-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(7, 24, 53, 0.08);
    color: var(--neo-dark);
    font-weight: 500;
}

.flashcard-time-display i {
    color: var(--neo-secondary);
}

/* Resumo das Configurações */
.settings-summary {
    padding: 16px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(7, 24, 53, 0.08);
}

.summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-label {
    color: rgba(7, 24, 53, 0.6);
    font-weight: 500;
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 600;
}

/* Card de IA para Flashcard - Destaque Azul Médio */
.card-ai-flashcard {
    background: linear-gradient(135deg, rgba(85, 90, 216, 0.08) 0%, rgba(85, 90, 216, 0.03) 100%);
    border: 2px solid rgba(85, 90, 216, 0.25);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.card-ai-flashcard::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(85, 90, 216, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.card-ai-flashcard .ai-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.card-ai-flashcard .ai-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--neo-secondary) 0%, #7c80e8 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(85, 90, 216, 0.35);
    flex-shrink: 0;
}

.card-ai-flashcard .ai-icon-wrapper i {
    font-size: 1.5rem;
    color: #ffffff;
}

.card-ai-flashcard .ai-text h6 {
    color: var(--neo-secondary);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 4px 0;
}

.card-ai-flashcard .ai-description {
    color: rgba(7, 24, 53, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.btn-ai-flashcard {
    background: linear-gradient(135deg, var(--neo-secondary) 0%, #7c80e8 100%);
    border: none;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    padding: 14px 28px;
    box-shadow: 0 4px 14px rgba(85, 90, 216, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.btn-ai-flashcard:hover {
    box-shadow: 0 8px 24px rgba(85, 90, 216, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-ai-flashcard:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Divisor "ou" */
.divider-or {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 32px 0;
    color: rgba(7, 24, 53, 0.4);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(7, 24, 53, 0.1);
}

/* Card de Adicionar Manual */
.card-manual-flashcard {
    border-radius: 12px;
    border: 1px solid rgba(7, 24, 53, 0.1);
    padding: 24px;
    background: #ffffff;
}

.card-manual-flashcard h6 {
    color: var(--neo-dark);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-manual-flashcard h6 i {
    color: var(--neo-primary);
}

.card-manual-flashcard .form-group label {
    color: var(--neo-dark);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-manual-flashcard .form-control {
    border-radius: 10px;
    border: 1px solid rgba(7, 24, 53, 0.12);
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.card-manual-flashcard .form-control:focus {
    border-color: var(--neo-secondary);
    box-shadow: 0 0 0 3px rgba(85, 90, 216, 0.12);
}

.card-manual-flashcard textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-add-card {
    background-color: var(--neo-primary);
    border: none;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 24px;
    box-shadow: 0 4px 14px rgba(27, 170, 178, 0.3);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-card:hover {
    background-color: var(--neo-primary-dark);
    box-shadow: 0 6px 18px rgba(27, 170, 178, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Alert Publicado */
.alert-published-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(27, 170, 178, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(27, 170, 178, 0.2);
}

.alert-published-info>i {
    font-size: 1.5rem;
    color: var(--neo-primary);
    margin-top: 2px;
}

.alert-published-info strong {
    color: var(--neo-primary);
    display: block;
    margin-bottom: 4px;
}

.alert-published-info p {
    color: rgba(7, 24, 53, 0.7);
    font-size: 0.9rem;
}

/* ============================================
   FLASHCARD PREVIEW CARDS - Meu Baralho
   ============================================ */

/* Grid de Cards */
.deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Card de Preview Individual */
.flashcard-preview-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(7, 24, 53, 0.08);
    box-shadow: 0 2px 8px rgba(7, 24, 53, 0.04);
    overflow: hidden;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flashcard-preview-card:hover {
    box-shadow: 0 8px 24px rgba(7, 24, 53, 0.1);
    transform: translateY(-4px);
}

.flashcard-preview-card .card-order {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    background: var(--neo-secondary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashcard-preview-card .card-content {
    padding: 20px;
    padding-left: 52px;
    flex: 1;
}

.flashcard-preview-card .card-front,
.flashcard-preview-card .card-back {
    margin-bottom: 12px;
}

.flashcard-preview-card .card-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 4px;
}

.flashcard-preview-card .card-front .card-label {
    background: rgba(85, 90, 216, 0.1);
    color: var(--neo-secondary);
}

.flashcard-preview-card .card-back .card-label {
    background: rgba(27, 170, 178, 0.1);
    color: var(--neo-primary);
}

.flashcard-preview-card .card-front p,
.flashcard-preview-card .card-back p {
    color: var(--neo-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.flashcard-preview-card .card-front p {
    font-weight: 600;
}

.flashcard-preview-card .card-explanation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: rgba(7, 24, 53, 0.03);
    border-radius: 8px;
    margin-top: 12px;
}

.flashcard-preview-card .card-explanation i {
    color: rgba(7, 24, 53, 0.4);
    margin-top: 2px;
}

.flashcard-preview-card .card-explanation small {
    color: rgba(7, 24, 53, 0.6);
    font-size: 0.85rem;
    line-height: 1.4;
}

.flashcard-preview-card .card-footer-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fafafa;
    border-top: 1px solid rgba(7, 24, 53, 0.06);
}

.flashcard-preview-card .card-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(7, 24, 53, 0.5);
    font-size: 0.85rem;
    font-weight: 500;
}

.flashcard-preview-card .card-time i {
    font-size: 0.8rem;
}

.btn-delete-card {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-delete-card:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.08);
}

/* Estado vazio do Baralho */
.empty-deck-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-deck-state .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(7, 24, 53, 0.06);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-deck-state .empty-icon i {
    font-size: 2rem;
    color: rgba(7, 24, 53, 0.3);
}

.empty-deck-state h5 {
    color: var(--neo-dark);
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-deck-state p {
    max-width: 300px;
    margin: 0 auto 20px;
}

.btn-go-to-factory {
    background: var(--neo-secondary);
    border: none;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 24px;
    box-shadow: 0 4px 14px rgba(85, 90, 216, 0.25);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-go-to-factory:hover {
    box-shadow: 0 6px 18px rgba(85, 90, 216, 0.35);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .flashcard-header-sticky {
        flex-direction: column;
        align-items: flex-start;
    }

    .flashcard-header-sticky .flashcard-title {
        font-size: 1.2rem;
    }

    .nav-tabs-flashcard .nav-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .nav-tabs-flashcard .nav-link span {
        display: none;
    }

    .deck-grid {
        grid-template-columns: 1fr;
    }

    .card-ai-flashcard .ai-header {
        flex-direction: column;
        text-align: center;
    }

    .card-ai-flashcard .ai-icon-wrapper {
        margin: 0 auto;
    }

    .card-ai-flashcard .ai-text {
        text-align: center;
    }

    .btn-ai-flashcard {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   USER PROFILE DROPDOWN - Premium Design
   ============================================ */

.user-menu .dropdown-menu {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(7, 24, 53, 0.15) !important;
    padding: 0 !important;
    overflow: hidden;
    margin-top: 10px !important;
}

.user-menu .profile-dropdown-header {
    background: #ffffff;
    padding: 30px 20px;
    text-align: center;
}

.user-menu .profile-dropdown-header img {
    width: 90px;
    height: 90px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(7, 24, 53, 0.12);
    margin-bottom: 15px;
}

.user-menu .profile-name {
    color: var(--neo-dark);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 4px;
    display: block;
}

.user-menu .profile-email {
    color: rgba(7, 24, 53, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-menu .profile-dropdown-footer {
    background-color: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(7, 24, 53, 0.05);
}

.user-menu .btn-profile-action {
    flex: 1;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.user-menu .btn-profile-view {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: var(--neo-dark);
}

.user-menu .btn-profile-view:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: var(--neo-secondary);
}

.user-menu .btn-profile-logout {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid transparent;
    color: #e74c3c;
}

.user-menu .btn-profile-logout:hover {
    background-color: #e74c3c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.25);
}
