/* Importação da fonte Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Layout principal */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.sidebar ul.components {
    padding: 20px 0;
}

.sidebar ul li a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar ul li a:hover,
.sidebar ul li.active > a {
    background: #f8f9fa;
    color: #333;
}

/* Ajuste para sidebar recolhida no desktop */
.sidebar.collapsed {
    width: 1px;
 }
 
 .sidebar.collapsed .sidebar-header h3 {
    display: none;
 }
 
 .sidebar.collapsed ul li a {
    padding: 1px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    height: auto;
}
 
 .sidebar.collapsed ul li a span {
    display: none;
 }

.sidebar.collapsed ul li a i {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Estilos para o módulo de Conteúdos */
.conteudo-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e0e0e0;
}

.conteudo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.conteudo-preview {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-pdf,
.preview-default {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: #f8f9fa;
    color: #6c757d;
}

.conteudo-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.conteudo-stats {
    font-size: 0.8rem;
}

.conteudo-author {
    font-size: 0.8rem;
}

/* Estilos para comentários */
.comentario-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comentario-item:last-child {
    margin-bottom: 0;
}

/* Responsividade para galeria */
@media (max-width: 768px) {
    .conteudo-preview {
        height: 150px;
    }
    
    .conteudo-card .card-body {
        padding: 0.75rem;
    }
    
    .conteudo-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}
    font-size: 1rem;
 }
 
 #content.sidebar-collapsed {
    width: calc(100% - 1px);
    margin-left: 1px;
 }

 .top-navbar.sidebar-collapsed {
    width: calc(100% - 1px);
 }
 
 /* Ícone toggle no desktop */
 .navbar-toggler-desktop {
    display: block;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
 }

/* Conteúdo principal */
#content {
    width: calc(100% - 250px);
    margin-left: 250px;
    transition: all 0.3s ease;
}

/* Navbar superior */
.top-navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - 250px);
    background: #fff;
    padding: 9px 25px;
    z-index: 999;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

/* Área de conteúdo */
.content-wrapper {
    padding: 90px 25px 25px;
    background: transparent;
}

/* Cards e elementos de conteúdo */
.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 20px;
}

/* Botões e elementos de ação */
.btn-primary {
    background: #666;
    border-color: #666;
}

.btn-primary:hover {
    background: #555;
    border-color: #555;
}

/* Page Header */
.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* DataTables Customização */
.dataTables_wrapper {
    padding: 20px;
    font-size: 0.875rem;
    overflow-x: auto;
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
}

.table {
    width: 100% !important;
}

/* Cabeçalho e células da tabela */
.table thead th {
    font-size: 0.875rem;
    font-weight: 600;
}

.table tbody td {
    font-size: 0.875rem;
}

/* Filtro e Busca */
.dataTables_filter {
    float: right;
    margin-bottom: 1rem;
}

.dataTables_filter input {
    margin-left: 0.5em;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* Botões de Exportação */
.dt-buttons {
    float: left;
    margin-bottom: 1rem;
}

.dt-buttons .btn {
    font-size: 0.875rem !important;
    margin-right: 0.5rem;
}

.dt-button-collection {
    padding: 0.5rem;
}

.dt-button-collection .dt-button {
    display: block;
    width: 100%;
    margin-bottom: 0.25rem;
    font-size: 0.875rem !important;
}

/* Paginação */
.dataTables_info {
    padding-top: 0.85em;
    font-size: 0.8125rem;
}

.dataTables_paginate {
    padding-top: 0.5em;
    font-size: 0.8125rem;
}

.dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin-left: 2px;
    border: 1px solid #dee2e6;
    background: #fff;
}

.dataTables_paginate .paginate_button.current {
    background: #666;
    color: #fff !important;
    border-color: #666;
}

.dataTables_paginate .paginate_button:hover {
    background: #e9ecef;
    color: #333 !important;
}

/* Modal Responsivo */
div.dtr-modal {
    max-width: 90%;
    margin: 2rem auto;
}

div.dtr-modal-content {
    padding: 1rem;
}

.dtr-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* Utilitários */
.min-w-100 {
    min-width: 100px;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
        margin-left: 0;
    }
    
    .top-navbar {
        width: 100%;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    #content.active {
        margin-left: 250px;
    }
    
    .top-navbar.active {
        width: calc(100% - 250px);
    }

    /* DataTables ajustes para mobile */
    .dataTables_wrapper {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .dataTables_filter,
    .dataTables_length,
    .dt-buttons {
        float: none;
        display: block;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .dataTables_filter input {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .dt-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Estilos para Formulários */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #e0e0e0;
}

.form-control,
.form-select {
    border-color: #e0e0e0;
    padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #666;
    box-shadow: 0 0 0 0.2rem rgba(102, 102, 102, 0.25);
}

.invalid-feedback {
    font-size: 0.875rem;
}

/* Estilos para o Card do Formulário */
.card-body {
    padding: 2rem;
}

/* Breadcrumb customizado */
.breadcrumb {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #333;
}

/* Alertas customizados */
.alert {
    border: none;
    border-radius: 4px;
}

.alert-danger {
    background-color: #fff2f2;
    color: #dc3545;
}

/* Botões */
.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #666;
    border-color: #666;
}

.btn-primary:hover {
    background-color: #555;
    border-color: #555;
}

.btn-outline-secondary {
    color: #666;
    border-color: #e0e0e0;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #333;
    border-color: #e0e0e0;
}

/* Adicione ao seu style.css */
.alert {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 4px;
    border: none;
}

.alert-success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border-left: 4px solid #43a047;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #e53935;
}

.alert .btn-close {
    padding: 1rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
}
/* Adicione ao seu style.css */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-control-plaintext {
    padding: 0.375rem 0;
}

#comentario_aprovador {
    resize: vertical;
    min-height: 100px;
}

.bg-warning {
    color: #000 !important;
}

.bg-success, .bg-danger {
    color: #fff !important;
}

/* Cores das bordas dos cards */
.border-left-primary {
    border-left: 4px solid #4e73df !important; /* Azul principal */
}
.border-left-success {
    border-left: 4px solid #6f42c1 !important; /* Roxo */
}
.border-left-warning {
    border-left: 4px solid #5a5dc9 !important; /* Azul médio */
}
.border-left-info {
    border-left: 4px solid #36b9cc !important; /* Azul claro */
}
.border-left-danger {
    border-left: 4px solid #8540c9 !important; /* Roxo escuro */
}

/* Cores dos textos */
.text-primary {
    color: #4e73df !important;
}
.text-success {
    color: #6f42c1 !important;
}
.text-warning {
    color: #5a5dc9 !important;
}
.text-info {
    color: #36b9cc !important;
}
.text-danger {
    color: #8540c9 !important;
}

/* Cores dos elementos de texto */
.text-gray-300 {
    color: #b3b6ee !important;
}
.text-gray-800 {
    color: #2e3284 !important;
}
.badge.bg-primary {
    background-color: #6f42c1 !important; 
}

.badge.bg-info {
    background-color: #5a5dc9 !important;
}

.badge {
    padding: 0.5em 0.8em;
    font-size: 0.8em;
    font-weight: 500;
}

.input-group .toggle-value {
    z-index: 3;
    border-color: #ced4da;
}

.input-group .toggle-value:hover {
    background-color: #e9ecef;
}

.input-group .toggle-value i {
    width: 16px;
    text-align: center;
}

/* Adicione ao seu arquivo style.css */

/* Estilos para o medidor de força da senha */
.password-strength-meter {
    margin-top: 0.5rem;
}

.password-strength-meter .progress {
    height: 4px;
    border-radius: 2px;
    margin-bottom: 0.25rem;
    background-color: #e9ecef;
}

.password-strength-meter .progress-bar {
    transition: width 0.3s ease;
}

.password-strength-meter .strength-text {
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
}

/* Estilos para o botão de toggle de senha */
.input-group .toggle-value {
    background-color: #fff;
    border-color: #ced4da;
    color: #6c757d;
    transition: all 0.2s ease;
}

.input-group .toggle-value:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.input-group .toggle-value:focus {
    outline: none;
    box-shadow: none;
    border-color: #80bdff;
}

/* Feedback visual para força da senha */
.password-strength-meter .progress-bar.bg-danger {
    background-color: #dc3545;
}

.password-strength-meter .progress-bar.bg-warning {
    background-color: #ffc107;
}

.password-strength-meter .progress-bar.bg-info {
    background-color: #17a2b8;
}

.password-strength-meter .progress-bar.bg-primary {
    background-color: #007bff;
}

.password-strength-meter .progress-bar.bg-success {
    background-color: #28a745;
}
/* Adicione ao seu arquivo style.css */

/* Estilos para botões desabilitados */
.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}

/* Spinner de carregamento */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Animação suave para mudança de estado do botão */
.btn {
    transition: all 0.2s ease-in-out;
}

/* Estilo específico para botão em processamento */
.btn:disabled .spinner-border,
.btn.disabled .spinner-border {
    opacity: 0.8;
}

/* Feedback visual adicional para formulário em submissão */
form[data-submitting="true"] {
    position: relative;
}

form[data-submitting="true"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: wait;
    z-index: 1000;
}
.login-page {
    min-height: 100vh;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.login-header img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.login-body {
    padding: 2rem;
}

.form-floating {
    margin-bottom: 1rem;
}

.form-floating > label {
    color: #666;
}

.form-control:focus {
    border-color: #666;
    box-shadow: 0 0 0 0.2rem rgba(102,102,102,0.25);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 4;
}

.btn-login {
    width: 100%;
    padding: 0.8rem;
    font-weight: 500;
    margin-top: 1rem;
}

.alert {
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .login-box {
        margin: 1rem;
    }
}
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.card-body {
    /* background-color: #f9f9f9;*/
}

.form-label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #555;
}

input, select, textarea {
    border-radius: 6px;
    border-color: #ddd;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}
