/* =========================================================
   PORTAL BRITO COMUNICAÇÃO - CSS GLOBAL
   ========================================================= */

/* =========================================================
   VARIÁVEIS
   ========================================================= */
:root {
    --color-primary: #2e8b57;
    --color-primary-hover: #256f47;
    --color-primary-dark: #1e6b3e;
    --color-primary-bg: #f0f7f2;
    --color-primary-light: rgba(46, 139, 87, 0.1);
    --color-white: #ffffff;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;
    --color-error: #dc2626;
    --color-error-bg: #fef2f2;
    --color-error-border: #fecaca;
    --font-primary: "Plus Jakarta Sans", sans-serif;
    --font-heading: "Outfit", sans-serif;
    --text-xs: 12px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-lg: 16px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 40px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    --sidebar-width: 240px;
    --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.06);
    --shadow-sidebar: 1px 0 0 rgba(0, 0, 0, 0.08);
    --shadow-button: 0 4px 12px rgba(46, 139, 87, 0.25);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.08);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

/* =========================================================
   RESET
   ========================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--color-gray-50);
    color: var(--color-gray-800);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* =========================================================
   LOGIN
   ========================================================= */
body:not(:has(.portal-sidebar)) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
}

.portal-login {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.portal-login__container {
    width: 100%;
}

.portal-login__card {
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.portal-login__card-body {
    padding: var(--space-2xl);
}

.portal-login__card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-gray-200);
}

.portal-login__card-logo a {
    display: inline-flex;
    transition: opacity var(--transition-fast);
}

.portal-login__card-logo a:hover {
    opacity: 0.85;
}

.portal-login__card-logo img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.portal-login__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.portal-login__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-bg);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    font-size: 24px;
}

.portal-login__header h1 {
    margin-bottom: var(--space-sm);
    color: var(--color-gray-900);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
}

.portal-login__header p {
    color: var(--color-gray-500);
    font-size: var(--text-sm);
}

.portal-login__field {
    margin-bottom: var(--space-lg);
}

.portal-login__field label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--color-gray-700);
    font-size: var(--text-sm);
    font-weight: 500;
}

.portal-login__input .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.portal-login__input .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0 var(--space-md);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.portal-login__input .form-control {
    flex: 1;
    min-width: 0;
    padding: 13px var(--space-md);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--color-gray-800);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    outline: none;
    transition: all var(--transition-fast);
}

.portal-login__input .form-control::placeholder {
    color: var(--color-gray-400);
}

.portal-login__input .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.portal-login__input:focus-within .input-group-text {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.portal-login__error {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    border-radius: var(--radius-md);
    color: var(--color-error);
    font-size: var(--text-sm);
}

.portal-login__error i {
    flex-shrink: 0;
    margin-top: 2px;
}

.portal-login__submit {
    width: 100%;
    min-height: 48px;
    padding: 12px var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.portal-login__submit:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-button);
}

.portal-login__submit:active {
    background: var(--color-primary-dark);
}

.portal-login__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.portal-login__footer {
    text-align: center;
    margin-top: var(--space-xl);
}

.portal-login__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-gray-600);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.portal-login__back:hover {
    color: var(--color-primary);
}

.portal-login__copyright {
    margin-top: var(--space-md);
    color: var(--color-gray-400);
    font-size: var(--text-xs);
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-right: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sidebar);
}

.sidebar-header {
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--color-gray-200);
}

.sidebar-header h2 {
    color: var(--color-gray-900);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.sidebar-header small {
    margin-top: 3px;
    color: var(--color-gray-500);
    font-size: 11px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 8px;
    gap: 4px;
    overflow-y: auto;
}

.sidebar-link {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    color: var(--color-gray-700);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 400;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-link i {
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-500);
    font-size: 16px;
    transition: color var(--transition-fast);
}

.sidebar-link:hover {
    background: var(--color-gray-50);
    color: var(--color-primary);
}

.sidebar-link:hover i {
    color: var(--color-primary);
}

.sidebar-link.active {
    background: var(--color-primary-bg);
    color: var(--color-primary);
    font-weight: 500;
}

.sidebar-link.active i {
    color: var(--color-primary);
}

.sidebar-footer {
    padding: 18px 8px 20px;
    border-top: 1px solid var(--color-gray-200);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 16px;
}

.sidebar-user > i {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--color-primary);
    font-size: 28px;
}

.sidebar-user > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-user strong {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-gray-800);
    font-size: 12px;
    font-weight: 600;
}

.sidebar-user small {
    margin-top: 2px;
    color: var(--color-gray-500);
    font-size: 10px;
}

.sidebar-logout {
    color: var(--color-error);
}

.sidebar-logout i {
    color: var(--color-error);
}

.sidebar-logout:hover {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.sidebar-logout:hover i {
    color: var(--color-error);
}

/* =========================================================
   ÁREA PRINCIPAL DO PORTAL
   ========================================================= */
body:has(.portal-sidebar) {
    display: block;
    min-height: 100vh;
    padding: 0;
}

body:has(.portal-sidebar) > main,
body:has(.portal-sidebar) main.container {
    width: calc(100% - var(--sidebar-width));
    max-width: none;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding: 42px 54px;
}

body:has(.portal-sidebar) main > .d-flex {
    margin-bottom: 30px;
}

body:has(.portal-sidebar) main h1 {
    color: var(--color-gray-900);
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.25;
}

body:has(.portal-sidebar) main h1 + p {
    margin-top: 5px;
    color: var(--color-gray-500);
    font-size: 13px;
}

body:has(.portal-sidebar) main .btn-outline-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13px;
    transition: all var(--transition-fast);
}

body:has(.portal-sidebar) main .btn-outline-danger:hover {
    color: var(--color-white);
    background: var(--color-error);
    border-color: var(--color-error);
}

/* =========================================================
   CARDS DO DASHBOARD
   ========================================================= */
body:has(.portal-sidebar) main .card {
    min-height: 168px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

body:has(.portal-sidebar) main .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

body:has(.portal-sidebar) main .card-body {
    padding: 22px 20px;
}

body:has(.portal-sidebar) main .card-body > i {
    display: block;
    margin-bottom: 18px;
    color: var(--color-primary);
    font-size: 27px;
}

body:has(.portal-sidebar) main .card h2 {
    margin-bottom: 6px;
    color: var(--color-gray-900);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
}

body:has(.portal-sidebar) main .card p {
    margin-bottom: 14px;
    color: var(--color-gray-600);
    font-size: 12px;
}

body:has(.portal-sidebar) main .card .badge {
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 600;
}

/* =========================================================
   GRID
   ========================================================= */
body:has(.portal-sidebar) main .row {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 20px;
}

/* =========================================================
   TABELAS / PÁGINAS CMS
   ========================================================= */
body:has(.portal-sidebar) .table {
    background: var(--color-white);
    font-size: 13px;
}

body:has(.portal-sidebar) .table thead th {
    color: var(--color-gray-700);
    font-weight: 600;
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-200);
}

body:has(.portal-sidebar) .table td {
    vertical-align: middle;
    color: var(--color-gray-700);
    border-color: var(--color-gray-200);
}

/* =========================================================
   FORMULÁRIOS DO CMS
   ========================================================= */
body:has(.portal-sidebar) .form-label {
    color: var(--color-gray-700);
    font-size: 13px;
    font-weight: 500;
}

body:has(.portal-sidebar) .form-control,
body:has(.portal-sidebar) .form-select {
    min-height: 42px;
    border-color: var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 13px;
}

body:has(.portal-sidebar) .form-control:focus,
body:has(.portal-sidebar) .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* =========================================================
   BOTÕES GERAIS
   ========================================================= */
.btn-success {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.btn-success:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-white);
}

.btn-success:active {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* =========================================================
   RESPONSIVIDADE GERAL
   ========================================================= */
@media (max-width: 1100px) {
    :root {
        --sidebar-width: 220px;
    }

    body:has(.portal-sidebar) main.container,
    body:has(.portal-sidebar) > main {
        padding: 36px 32px;
    }

    body:has(.portal-sidebar) main .card h2 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    .portal-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-gray-200);
        box-shadow: none;
    }

    .sidebar-header {
        height: auto;
        padding: 18px 20px;
    }

    .sidebar-nav {
        padding: 10px 12px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sidebar-link {
        flex-shrink: 0;
    }

    .sidebar-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
    }

    .sidebar-user {
        padding: 0;
    }

    .sidebar-footer .sidebar-logout {
        width: auto;
    }

    body:has(.portal-sidebar) main.container,
    body:has(.portal-sidebar) > main {
        width: 100%;
        margin-left: 0;
        padding: 28px 20px;
    }

    body:has(.portal-sidebar) main > .d-flex {
        align-items: flex-start;
        gap: 20px;
    }

    body:has(.portal-sidebar) main h1 {
        font-size: 23px;
    }
}

@media (max-width: 576px) {
    body:not(:has(.portal-sidebar)) {
        padding: 16px 12px;
    }

    .portal-login__card-body {
        padding: 28px 20px;
    }

    .portal-login__card-logo {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .portal-login__card-logo img {
        width: 160px;
    }

    .portal-login__header h1 {
        font-size: var(--text-xl);
    }

    .portal-login__icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
        font-size: 22px;
    }

    .portal-login__input .input-group-text {
        min-width: 44px;
        padding: 0 12px;
    }

    .portal-login__input .form-control {
        padding: 12px;
    }

    body:has(.portal-sidebar) main.container,
    body:has(.portal-sidebar) > main {
        padding: 24px 16px;
    }

    body:has(.portal-sidebar) main > .d-flex {
        flex-direction: column;
        align-items: stretch;
    }

    body:has(.portal-sidebar) main > .d-flex > div:last-child {
        display: flex;
    }

    body:has(.portal-sidebar) main .btn-outline-danger {
        width: 100%;
    }

    body:has(.portal-sidebar) main h1 {
        font-size: 21px;
    }

    body:has(.portal-sidebar) main .card {
        min-height: auto;
    }
}

/* =========================================================
   ACESSIBILIDADE
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
}

/* =========================================================
   CMS - CURSOS
   ========================================================= */

/* Tabela */
.cursos-tabela-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 0 0 12px 12px;
    -webkit-overflow-scrolling: touch;
}

#tabelaCursos {
    width: 100%;
    min-width: 1280px;
    table-layout: fixed;
    margin: 0;
}

#tabelaCursos th,
#tabelaCursos td {
    vertical-align: middle;
    padding: 14px 12px;
}

#tabelaCursos thead th {
    white-space: nowrap;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #5f6368;
    font-weight: 600;
}

/* Larguras das colunas */
#tabelaCursos th:nth-child(1),
#tabelaCursos td:nth-child(1) {
    width: 65px;
}

#tabelaCursos th:nth-child(2),
#tabelaCursos td:nth-child(2) {
    width: 300px;
}

#tabelaCursos th:nth-child(3),
#tabelaCursos td:nth-child(3) {
    width: 155px;
}

#tabelaCursos th:nth-child(4),
#tabelaCursos td:nth-child(4) {
    width: 180px;
}

#tabelaCursos th:nth-child(5),
#tabelaCursos td:nth-child(5) {
    width: 145px;
}

#tabelaCursos th:nth-child(6),
#tabelaCursos td:nth-child(6) {
    width: 145px;
}

#tabelaCursos th:nth-child(7),
#tabelaCursos td:nth-child(7) {
    width: 125px;
}

#tabelaCursos th:nth-child(8),
#tabelaCursos td:nth-child(8) {
    width: 110px;
}

#tabelaCursos th:nth-child(9),
#tabelaCursos td:nth-child(9) {
    width: 145px;
}

/* Imagem do curso */
.curso-imagem {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f8f9fa;
    flex: 0 0 auto;
}

.curso-imagem-placeholder {
    width: 64px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f3f5;
    color: #6c757d;
    border: 1px solid #e5e7eb;
    flex: 0 0 auto;
}

/* Título e resumo */
.curso-titulo {
    display: block;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

.curso-resumo {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: .78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Indicadores de conteúdo */
.conteudo-indicadores {
    display: flex;
    flex-direction: column;
    gap: 5px;
    white-space: nowrap;
}

.conteudo-indicador {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
}

.conteudo-indicador i {
    width: 16px;
    text-align: center;
}

/* Preços */
.preco-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

.preco-antigo {
    font-size: .78rem;
    color: #8a8f98;
    text-decoration: line-through;
}

.preco-atual {
    font-size: .95rem;
    font-weight: 700;
}

.preco-promocional {
    color: #198754;
}

/* Ações */
.curso-acoes {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.curso-acoes .btn {
    width: 36px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Modais */
.modal-xl {
    --bs-modal-width: 1050px;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e9ecef;
    font-size: .88rem;
    font-weight: 700;
    color: #172b4d;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.campo-obrigatorio::after {
    content: " *";
    color: #dc3545;
}

.modal .form-label {
    font-size: .86rem;
    font-weight: 600;
    color: #343a40;
}

.modal .form-control,
.modal .form-select {
    min-height: 42px;
}

.modal textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

/* Stepper numérico */
.numero-stepper {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.numero-stepper .btn-step {
    width: 44px;
    min-width: 44px;
    border: 1px solid #ced4da;
    background: #f8f9fa;
    color: #343a40;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
    z-index: 1;
}

.numero-stepper .btn-step:hover {
    background: #e9ecef;
}

.numero-stepper .btn-step:active {
    transform: scale(.97);
}

.numero-stepper .btn-step:first-child {
    border-radius: 7px 0 0 7px;
}

.numero-stepper .btn-step:last-child {
    border-radius: 0 7px 7px 0;
}

.numero-stepper .form-control {
    border-radius: 0;
    text-align: center;
    font-weight: 600;
    min-width: 0;
}

.numero-stepper.preco-stepper .form-control {
    font-variant-numeric: tabular-nums;
}

.numero-stepper .form-control:focus {
    box-shadow: none;
    border-color: #86b7fe;
}

/* Preview de vídeo */
.video-preview {
    display: none;
    margin-top: 12px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}

.video-preview.ativo {
    display: block;
}

.video-preview iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

.video-preview-erro {
    display: none;
    margin-top: 10px;
    font-size: .82rem;
    color: #dc3545;
}

/* Preview da imagem */
.imagem-preview {
    margin-top: 12px;
    display: none;
}

.imagem-preview.ativo {
    display: block;
}

.imagem-preview img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Estatísticas */
.card-estatistica {
    border-radius: 12px;
}

/* Modal de exclusão */
.modal-excluir .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-excluir .modal-footer {
    border-top: none;
    padding-top: 0;
}

.modal-excluir .modal-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc3545;
    font-size: 28px;
    margin: 0 auto 16px;
}

.modal-excluir .modal-body {
    padding-top: 8px;
}

/* Scroll dos modais */
.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    max-height: 70vh;
}

.modal-dialog-scrollable .modal-content {
    max-height: 90vh;
}

/* Responsivo - Cursos */
@media (max-width: 1100px) {
    #tabelaCursos {
        min-width: 1200px;
    }

    #tabelaCursos th:nth-child(2),
    #tabelaCursos td:nth-child(2) {
        width: 270px;
    }

    #tabelaCursos th:nth-child(4),
    #tabelaCursos td:nth-child(4) {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .modal-xl {
        --bs-modal-width: 100%;
    }

    #tabelaCursos {
        min-width: 1180px;
    }

    .video-preview iframe {
        height: 220px;
    }

    .numero-stepper .btn-step {
        width: 42px;
        min-width: 42px;
    }
}

@media (max-width: 576px) {
    .modal-section-title {
        font-size: .82rem;
    }

    .modal .form-control,
    .modal .form-select {
        min-height: 44px;
    }

    .numero-stepper .btn-step {
        width: 44px;
        min-width: 44px;
    }
}