/* Estilo customizado para o sistema NonConformity - Gestão de não conformidades */

/* Espaçamento entre os elementos */
.container {
    max-width: 1600px;
    text-align: center;
    border-radius: 8px;
}

/* Estilo de notificações */
.notification-counter {
    font-size: 0.65rem;
    position: relative;
    top: -1px;
}

/* Estados vazios */
.empty-state {
    text-align: center;
    padding: 2rem 0;
    color: var(--bs-gray-600);
}

/* Grupo de botões */
.btn-group-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 50px;
}

/* Ajuste responsivo para botões */
@media (max-width: 768px) {
    .card-header h1, .card-header h2, .card-header h3 {
        font-size: 1.25rem;
    }
}

/* CSS para animação suave dos modais */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(-20px);
    opacity: 0;
}

.modal.fade.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.modal-backdrop.show {
    opacity: 0.75 !important;
    /* Mantendo um backdrop escuro para contraste com modais claros ou escuros */
    background: linear-gradient(135deg, #000000, #1a1a1a); 
}


/* === Footer Styles === */
.footer {
    background-color: rgb(7, 70, 78);
    background-image: linear-gradient(135deg, #07505a, #1887a3);
    height: auto;
    padding:0; 
    margin-top: 3px; 
    color: white;
    font-size: 13px;
    border-top: 5px solid #000000;
}

.footer__content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    flex-wrap: wrap;
}

.left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

.footer__text {
    margin: 0;
    line-height: 1.5;
}

.footer__item {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
}

.footer__item:hover {
    color: #fff;
    text-decoration: underline;
}

.footer__version {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #aaa;
}

.footer__info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.logo { 
    height: auto;
    max-height: 50px; 
    max-width: 100%;
    transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out;
}

.logo:hover {
    transform: scale(1.1); 
    filter: brightness(1.2); 
}

/* === Navbar Customizada === */
.custom-navbar {
    background-color: rgb(7, 70, 78);
    background-image: linear-gradient(135deg, #07505a, #1887a3);
    border-bottom: 5px solid #000000; 
    transition: box-shadow 0.3s ease;
    z-index: 1030; 
}


.navbar .nav-link {
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
    padding-top: 0.5rem; 
    padding-bottom: 0.5rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus { 
    color: #4285f4; 
    transform: scale(1.05);
}

.navbar .nav-link.active,
.navbar .nav-item.show .nav-link { 
    color: #4285f4 !important; 
}

.navbar .navbar-brand {
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-right: 30px;
    font-weight: bold; 
}

.navbar .navbar-brand:hover {
    transform: scale(1.05);
    color: #4285f4; 
}

.navbar-brand i {
    margin-right: 8px;
}

.nav-link i {
    margin-right: 5px;
}

.shadow-on-scroll { 
    box-shadow: none;
}

.scrolled .shadow-on-scroll { 
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.3); 
}

/* === Estilos Gerais do Corpo e Conteúdo === */
body {
    background-color: #ffffff !important; 
    color: #212529 !important; 
    font-family: -Rubik, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 0px; 
}

/* Conteúdo principal com tema claro */
.main-content-light-theme {
    background-color: #ffffff; 
    color: #212529; 
    padding: 20px; 
    border-radius: 0.375rem; 
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); 
}

/* Ajuste fino para elementos comuns dentro do tema claro */
.main-content-light-theme .card {
    background-color: #f8f9fa; 
    border: 2px solid #000000; 
    color: #212529;
    border-radius: 10px;
}

.th__left{
    border-top-left-radius: 7px;
}

.th__right{
    border-top-right-radius: 7px;
}

.td__left{
    border-bottom-left-radius: 10px;
}

.td__right{
    border-bottom-right-radius: 10px;
}

.form__ncr {
    background-color: rgb(7, 70, 78);
    border: 1px solid black;
    border-bottom: 3px solid black;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

.main-content-light-theme .card-header {
    background-color: #e9ecef; 
    color: #212529;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem 1.25rem;
}

.main-content-light-theme .card-title {
    color: #007bff; 
}

.main-content-light-theme h1, 
.main-content-light-theme h2, 
.main-content-light-theme h3, 
.main-content-light-theme h4, 
.main-content-light-theme h5, 
.main-content-light-theme h6,
.main-content-light-theme p,
.main-content-light-theme label,
.main-content-light-theme td,
.main-content-light-theme th,
.main-content-light-theme .form-label,
.main-content-light-theme .text-muted { /* Certificar que text-muted também seja legível */
    color: #212529; 
}
.main-content-light-theme .text-muted {
    color: #6c757d !important; /* Cor padrão do Bootstrap para text-muted */
}


.main-content-light-theme .form-control,
.main-content-light-theme .form-select {
    background-color: #fff;
    color: #212529;
    border: 1px solid #ced4da;
}

.main-content-light-theme .form-control:focus,
.main-content-light-theme .form-select:focus {
    border-color: #86b7fe; /* Cor de foco padrão do Bootstrap */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Sombra de foco padrão */
}

.main-content-light-theme .form-control::placeholder {
    color: #6c757d;
}
.main-content-light-theme .form-select {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); /* Seta padrão Bootstrap */
}


.main-content-light-theme .btn-close {
    filter: none; 
}

.main-content-light-theme hr {
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Tabelas no tema claro */
.main-content-light-theme .table {
    --bs-table-color: #212529;
    --bs-table-bg: #ffffff;
    --bs-table-border-color: #000000;
    --bs-table-striped-bg: #f8f9fa;
    --bs-table-striped-color: #212529;
    --bs-table-hover-bg: #e9ecef;
    --bs-table-hover-color: #212529;
}

.main-content-light-theme .table th {
    color: #ffffff;
    background-color: rgb(7, 70, 78);
    border-color: #000000;
}

/* Paginação no tema claro */
.main-content-light-theme .page-item.active .page-link {
    background-color: #007bff; 
    border-color: #007bff; 
    color: #fff;
}

.main-content-light-theme .page-link {
    background-color: #fff;
    color: #007bff; /* Links de paginação azuis */
    border: 1px solid #dee2e6; /* Borda padrão */
}

.main-content-light-theme .page-link:hover {
    background-color: #e9ecef; /* Fundo levemente cinza no hover */
    color: #0056b3;
    border-color: #dee2e6;
}
.main-content-light-theme .pagination {
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* Badges de Status NCR */
.status-em-tratativa {
    background-color: #ffc107; 
    color: #000;
}
.status-concluido {
    background-color: #198754; 
    color: #fff;
}
.status-cancelado {
    background-color: #6c757d; 
    color: #fff;
}
.status-pendente-comprador {
    background-color: #0dcaf0; 
    color: #000;
}

/* Botões */
.main-content-light-theme .btn-primary {
    text-align: center;
    background-color: #02264c; 
    border-color: #007bff; 
    color: whitesmoke;
    font-weight: 600;
    border-radius: 50px;    
}
.main-content-light-theme .btn-primary:hover, .main-content-light-theme .btn-primary:focus {
    background-color: #0dcaf0; 
    border-color: #0056b3; 
    color:#000000;
    font-weight: 600; 
    text-align: center;
}

.main-content-light-theme .btn-secondary {
    background-color: #f31212;
    border-color: #6c757d;
    color: #fff;
}
.main-content-light-theme .btn-secondary:hover, .main-content-light-theme .btn-secondary:focus {
    background-color: #5a6268;
    border-color: #545b62;
    color: #fff;
}

.main-content-light-theme .btn-danger { 
    background-color: #dc3545; /* Cor padrão Bootstrap danger */
    border-color: #dc3545; 
    color: #fff;
}
.main-content-light-theme .btn-danger:hover, .main-content-light-theme .btn-danger:focus {
    background-color: #bb2d3b; 
    border-color: #b02a37; 
    color: #fff;
}

/* Scrollbar customizada (WebKit)*/
body::-webkit-scrollbar {
    width: 10px;
}
body::-webkit-scrollbar-track {
    background: #222; /* Fundo da trilha da scrollbar */
}
body::-webkit-scrollbar-thumb {
    background: #555; /* Cor do polegar da scrollbar */
    border-radius: 5px;
}
body::-webkit-scrollbar-thumb:hover {
    background: #007bff; 
}

/* Ajustes finos de responsividade */
@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
        text-align: center;
    }
    .left, .right {
        justify-content: center;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    .right {
        margin-top: 10px;
    }
    .footer__info {
        align-items: center;
    }
    .logo {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1rem; 
    }
} 

/* === Responsividade para Mobile === */
@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .left, .right {
        justify-content: center;
        margin-bottom: 10px;
    }

    .right {
        text-align: center;
        flex-direction: column;
    }

    .logo {
        max-width: 90%; /* ajustado para mobile */
    }

    /* Navbar mobile */
    .custom-navbar {
        padding: 0.3rem 0.1rem;
    }
    
    .navbar-brand {
        margin-right: 0;
        font-size: 1rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    .navbar-collapse {
        padding: 1rem;
        background-color: rgba(0, 0, 0, 0.9);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .right {
        font-size: 0.85rem; /* Tamanho menor para mobile */
    }
}

@media (max-width: 480px) {
    .right {
        font-size: 0.75rem; /* Ainda menor em telas muito pequenas */
    }
}

@media (max-width: 768px) {
    .container, main.container {
        border-radius: 0.5rem;
        padding: 1rem;
    }
}