:root {
    --largura-qrcode: 300px;
    --azul-ferrobras: #007bff;
    --cinza-borda: #dee2e6;
}
/*Esqueceu a senha */
    .modern-login-card {
        background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .card-bg-gradient {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
        z-index: 1;
    }

    .modern-login-card > * {
        position: relative;
        z-index: 2;
    }

    .login-logo {
        transition: transform 0.3s ease;
    }

    .login-logo:hover {
        transform: scale(1.05);
    }

    .modern-input {
        border: 1px solid #e1e5e9;
        border-radius: 0.375rem;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

    .modern-input:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    .modern-input-icon {
        background-color: #f8f9fa;
        border: 1px solid #e1e5e9;
        border-right: none;
        border-radius: 0.375rem 0 0 0.375rem;
        color: #6c757d;
    }

    .input-group .modern-input {
        border-left: none;
        border-radius: 0 0.375rem 0.375rem 0;
    }

    .modern-btn {
        background: linear-gradient(45deg, #007bff, #0056b3);
        border: none;
        border-radius: 0.375rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }

    .modern-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    }

    .modern-btn:active {
        transform: translateY(0);
    }

    .login-footer {
        background-color: rgba(248, 249, 250, 0.8);
        border-radius: 0 0 0.5rem 0.5rem;
    }

    .alert {
        border-radius: 0.375rem;
        border: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .animate-in {
        animation: fadeInUp 0.6s ease-out;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
/* Fim esqueceu a senha */
/* Inicio menu */
.modern-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-logo {
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.hamburger-btn {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid #0d6efd;
    padding: 0.3rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background-color: rgba(108, 117, 125, 0.2);
    border-color: #495057;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 4px;
    background-color: #0d6efd;
    margin-bottom: 4px;
    transition: 0.3s;
    border-radius: 2px;
    border: solid 2px;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0056b3;
}

.user-info {
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: rgba(0, 123, 255, 0.1);
}

.company-details {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.mobile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.mobile-menu-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #007bff;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.mobile-nav-link:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

.mobile-company-details .col-6 {
    border-right: 1px solid #e9ecef;
}

.mobile-company-details .col-6:nth-child(even) {
    border-right: none;
}

@media (max-width: 767.98px) {
    .mobile-company-details .row .col-6:nth-child(odd) {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .mobile-company-details .row .col-6:nth-child(even) {
        border-bottom: 1px solid #e9ecef;
    }
}
/* Fim menu */
.table-pos-cliente th {
    font-size: 11.5px !important;
}

.table-pos-cliente td {
    padding: 3px !important;
    font-size: 11.56px;
    line-height: 13px;
}

.tr-analisando td {
    background-color: #f1e4ba;
}

.chat-bubble {
    max-width: 100%;
    position: relative;
}

.chat-bubble::after {
    content: "";
    position: absolute;
    left: 17px;
    bottom: -10px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #f8f9fa transparent transparent transparent;
}

.chat-bubble::before {
    content: "";
    position: absolute;
    left: 15px;
    bottom: -12px;
    border-width: 12px 12px 0;
    border-style: solid;
    border-color: #dee2e6 transparent transparent transparent;
    /* borda cor igual border do balão */
}

.table-chamados td,
.table-chamados th {
    font-size: 13px !important;
}

.logo-header {
    height: 60px;
}

.payment-card {
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
}

.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto;
    max-width: var(--largura-qrcode);
    border: 1px solid var(--cinza-borda);
}

.time-container {
    max-width: var(--largura-qrcode);
    margin: 15px auto 0;
}

.progress-container {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--azul-ferrobras);
    transition: width 1s linear;
}

.pix-data {
    background-color: #f0f7ff;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    position: relative;
}

.pix-copy-code {
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px dashed #ccc;
}

.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    font-size: 0.7rem;
}

.copy-alert,
.shared-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.info-card {
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    border: 1px solid var(--cinza-borda);
}

.pix-timeout {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin: 20px auto;
    animation: fadeIn 0.5s;
}

.timeout-icon {
    margin-bottom: 15px;
}

.timeout-icon i {
    animation: pulse-timout 2s infinite;
}

.pix-timeout h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.pix-timeout p {
    color: #555;
    margin-bottom: 20px;
    font-size: 14px;
}

.renew-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.renew-button:hover {
    background: #2980b9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-timout {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.95;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.badge-tipo {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    margin-bottom: 8px;
}

.value-display {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--azul-ferrobras);
}

/* Última ligação */
.ultima-ligacao {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ultima-ligacao .btn-visita,
.btn-carregar-orcamentos {
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1;
    min-width: auto;
}

.tempo-texto {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-top: 6px;
}

.footer-dark {
    background-color: #343a40;
}

.footer-dark p {
    color: white;
    font-size: 0.85rem;
}

.cursor-pointer {
    cursor: pointer;
}

.borda_laranja {
    border-top: 3px solid #ffa500;
    border-bottom: 3px solid #ffa500;
}

.at-alert-info {
    color: #31708f !important;
    background-color: #d9edf7 !important;
    border-color: #bce8f1 !important;
}

.ic_zap {
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

p {
    color: #808080;
}

.fz-12 {
    font-size: 12px;
}

.fz-13 {
    font-size: 13px;
}

.fz-14 {
    font-size: 14px;
}

.fz-18 {
    font-size: 18px;
}

.fz-20 {
    font-size: 20px;
}

.bg-atraso td {
    background-color: #ed7783 !important;
}

.table-sm>tbody>tr>td {
    padding: 4px 6px !important;
}

.table-small th,
.table-small td {
    padding: 0 3px !important;
}

.navbar ul li .nav-link {
    color: #337ab7 !important;
    font-size: 15px !important;
}

.bg-azul-claro {
    background-color: #ADD8E6 !important;
}

.titulo-principal {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #343a40;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin-bottom: 20px;
    border-bottom: 3px solid #007bff;
    display: inline-block;
}

/* Custom Checkbox Styles */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid #007bff;
    cursor: pointer;
}

.form-check-input:not(:checked) {
    background-color: #f8f9fa;
    border-color: #6c757d;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.downloads_itens h4 {
    font-family: 'Poppins', sans-serif;
    /* Fonte moderna */
    font-size: 1.5rem;
    /* Tamanho adequado */
    font-weight: 400;
    /* Negrito suave */
    color: #4d4d4d;
    /* Cor escura suave */
    letter-spacing: 1px;
    /* Espaçamento entre letras */
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Linha abaixo do título */
.downloads_itens h4::after {
    content: "";
    width: 50px;
    height: 3px;
    background-color: #007bff;
    /* Cor azul Bootstrap */
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

/* Efeito hover */
.downloads_itens h4:hover::after {
    width: 100%;
}

input,
select,
textarea {
    color: #424344 !important;
    /* Texto escuro */
    border-radius: 5px !important;
    /* Borda arredondada */
}

/*PAINEL*/
.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

.panel-primary .panel-heading {
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.panel-primary {
    border-color: #337ab7;
}

/* Estilo para inputs desabilitados ou readonly */
input:disabled,
input[readonly] {
    background-color: #f0f0f0;
    /* Cinza claro */
    color: #a0a0a0;
    /* Cinza escuro para o texto */
    cursor: not-allowed;
    /* Altera o cursor para indicar que não é clicável */
    border: 1px solid #ccc;
    /* Borda cinza */
}

/* Estilo para selects desabilitados */
select:disabled {
    background-color: #f0f0f0;
    /* Cinza claro */
    color: #a0a0a0;
    /* Cinza escuro para o texto */
    cursor: not-allowed;
    /* Altera o cursor para indicar que não é clicável */
    border: 1px solid #ccc;
    /* Borda cinza */
}

/* Estilo para textareas desabilitados ou readonly */
textarea:disabled,
textarea[readonly] {
    background-color: #f0f0f0;
    /* Cinza claro */
    color: #a0a0a0;
    /* Cinza escuro para o texto */
    cursor: not-allowed;
    /* Altera o cursor para indicar que não é clicável */
    border: 1px solid #ccc;
    /* Borda cinza */
    resize: none;
    /* Impede o redimensionamento */
}

.td_base {
    font-size: 12px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.thumbnail {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-transition: border .2s ease-in-out;
    -o-transition: border .2s ease-in-out;
    transition: border .2s ease-in-out;
}

.thumbnail a>img,
.thumbnail>img {
    margin-right: auto;
    margin-left: auto;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Overlay mais claro (30% de opacidade) */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centraliza vertical e horizontalmente */
}

.loading-content {
    background-color: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.Fb_Box {
    border-left: 2px solid #808080;
    border-right: 2px solid #808080;
    border-top: 2px solid #808080;
    border-bottom: 2px solid #808080;
    box-sizing: border-box;
    border-radius: 10px;
}

.btn_enviar_recibo {
    max-width: 300px;
    display: inline;
    margin-right: 10px;
}

.bg-secondary-bg {
    background-color: var(--bs-secondary-bg);
}

/* Animação para PIX pago */
.paid-animation {
    position: relative;
    overflow: hidden;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.checkmark {
    width: 100%;
    height: 100%;
    display: block;
}

.checkmark-circle-bg {
    stroke: #28a745;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: #28a745;
    stroke-width: 2;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.confetti:after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #28a745;
    opacity: 0;
    animation: confetti 3s ease-in-out infinite;
}

/* Cria vários confettis em posições diferentes */
.confetti:after {
    left: 20%;
    top: 10%;
    animation-delay: 0.5s;
}

.confetti:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ffc107;
    opacity: 0;
    animation: confetti 3s ease-in-out infinite;
    left: 40%;
    top: 20%;
    animation-delay: 1s;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Animação para timeout PIX */
.timeout-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.timeout-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.timeout-circle-bg {
    stroke: #e74c3c;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.timeout-exclamation {
    stroke: #e74c3c;
    stroke-width: 2;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Adiciona uma animação sutil no card */
.payment-card {
    transition: all 0.3s ease;
}

.payment-card.border-success {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Modern Login Styles */
.modern-login-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0f2f5 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 123, 255, 0.12);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 15px 25px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}

.card-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 123, 255, 0.12) 0%,
            rgba(40, 167, 69, 0.08) 30%,
            rgba(255, 193, 7, 0.06) 60%,
            rgba(108, 117, 125, 0.04) 100%);
    border-radius: 1rem;
    pointer-events: none;
    z-index: -1;
}

.login-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

.login-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
}

/* Modern Input Styles */
.modern-input {
    border: 1px solid #e0e4e7;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    background: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 60px;
    box-shadow: none;
}

.modern-input:focus {
    border-color: #007bff;
    box-shadow: none;
    outline: none;
}

.input-group:focus-within .modern-input {
    border-color: #007bff;
    z-index: 2;
    position: relative;
    outline: none;
}

/* Input Group Container */
.input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.input-group:focus-within {
    box-shadow:
        0 0 0 3px rgba(0, 123, 255, 0.12),
        0 4px 12px rgba(0, 123, 255, 0.15);
}

.modern-input:focus {
    border-color: #007bff;
    box-shadow:
        0 0 0 4px rgba(0, 123, 255, 0.15),
        0 6px 16px rgba(0, 123, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: #ffffff;
}

.modern-input:hover {
    border-color: #007bff;
    background: #ffffff;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Modern Input Group Styles */
.modern-input-icon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e0e4e7;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #007bff;
    font-size: 1.2rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    min-height: 60px;
}

.input-group:focus-within .modern-input-icon {
    border-color: #007bff;
    color: #007bff;
    opacity: 1;
}

.modern-input:focus~.input-icon {
    color: #007bff;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.password-toggle-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e0e4e7;
    border-left: none;
    border-radius: 0 12px 12px 0;
    color: #007bff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    min-height: 60px;
}

.password-toggle-btn:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    opacity: 1;
}

.input-group:focus-within .password-toggle-btn {
    border-color: #007bff;
    color: #007bff;
    opacity: 1;
}

.password-toggle:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.15);
    opacity: 1;
}

/* Modern Button Styles */
.modern-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(0, 123, 255, 0.35),
        0 6px 12px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 60px;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(0, 123, 255, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:active {
    transform: translateY(-1px);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-danger {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-left: 4px solid #e53e3e;
    color: #c53030;
}

.alert-success {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border-left: 4px solid #38a169;
    color: #276749;
}

/* Login Footer */
.login-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #f8f9fa;
    border-radius: 0 0 1rem 1rem;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form Labels */
.form-label {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    opacity: 0.9;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .modern-login-card {
        margin: 1rem;
        padding: 2rem 1.5rem !important;
    }

    .login-logo {
        max-width: 150px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .modern-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .modern-login-card {
        margin: 0.5rem;
        padding: 1.5rem 1rem !important;
    }

    .login-title {
        font-size: 1.35rem;
    }

    .modern-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Modern Header Styles */
.modern-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
}

/* Garantir comportamento inicial correto */
.nav-menu {
    display: flex !important;
}

@media (max-width: 992px) {
    .nav-menu {
        display: none !important;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Logo Section */
.logo-section {
    flex-shrink: 0;
}

.header-logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Navigation Section */
.nav-section {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.modern-navbar {
    position: relative;
}

.nav-toggle {
    display: none;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 0.375rem;
}

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background-color: #495057;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    position: relative;
    display: flex;
    opacity: 1;
    visibility: visible;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link:focus {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-link i {
    font-size: 1rem;
    opacity: 0.8;
}

/* Dropdown Styles */
.modern-dropdown {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background-color: #ffffff;
}

.modern-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
}

.modern-dropdown .dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: translateX(0.25rem);
}

.modern-dropdown .dropdown-item.disabled {
    color: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Logout Link */
.logout-link {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease !important;
}

.logout-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white !important;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.whatsapp-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-status.connected {
    background-color: #25d366;
    color: white;
}

.whatsapp-status.disconnected {
    background-color: #dc3545;
    color: white;
}

.whatsapp-status:hover {
    transform: scale(1.1);
}

.user-info {
    text-align: right;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.user-name i {
    color: #007bff;
    font-size: 1.1rem;
}

.debug-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #ffc107;
    color: #212529;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Additional Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-link-animate {
    opacity: 1;
}

.modern-header {
    animation: slideInFromTop 0.6s ease;
}

.logo-section {
    animation: fadeInScale 0.8s ease 0.2s both;
}

.user-section {
    animation: slideInLeft 0.6s ease 0.4s both;
}

/* Hover Effects Enhancement */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 100%;
}

/* Loading States */
.nav-link.loading {
    position: relative;
    color: transparent !important;
}

.nav-link.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #007bff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* Enhanced WhatsApp Status */
.whatsapp-status {
    position: relative;
    overflow: hidden;
}

.whatsapp-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-status:hover::before {
    opacity: 1;
}

.whatsapp-status.connected::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeInBackdrop {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mobile-menu-modal.show .mobile-menu-content {
    animation: slideInFromLeft 0.3s ease;
}

.mobile-menu-modal {
    animation: fadeInBackdrop 0.3s ease;
}

/* Mobile Full Screen Menu Modal */
.mobile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-menu-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    background: white;
    width: 100%;
    height: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu-modal.show .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
    padding-left: 2rem;
}

.mobile-nav-link.disabled {
    color: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
}

.mobile-nav-link i {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
    color: #007bff;
}

.mobile-logout {
    margin-top: 2rem;
    border-top: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.mobile-logout-link {
    color: white !important;
    background: transparent !important;
    font-weight: 600;
    justify-content: center;
    padding: 1.5rem;
}

.mobile-logout-link:hover {
    color: white !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
    padding-left: 1.5rem !important;
}

.mobile-logout-link i {
    color: white;
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    display: none;
}

.mobile-nav-item.has-dropdown.active .mobile-dropdown {
    display: block;
}

.mobile-dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 3.5rem;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.mobile-dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
    color: #007bff;
    padding-left: 4rem;
}

.mobile-dropdown-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-nav-item.has-dropdown.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-menu-footer {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.mobile-user-info {
    text-align: center;
}

.mobile-user-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.mobile-user-name i {
    color: #007bff;
    font-size: 1.25rem;
}

.mobile-debug-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #ffc107;
    color: #212529;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-container {
        padding: 0.5rem 1rem;
    }

    .nav-toggle {
        display: block;
    }


    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-radius: 0;
        justify-content: flex-start;
    }

    .user-section {
        gap: 0.75rem;
    }

    .user-name span {
        display: none;
    }

    .header-logo {
        height: 40px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .form-check {
        flex: 0 0 100%;
    }

    .value-display {
        font-size: 1.5rem;
    }

    .header-container {
        padding: 0.5rem 0.75rem;
    }

    .user-info {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-container {
        gap: 0.5rem;
    }

    .header-logo {
        height: 35px;
        max-width: 120px;
    }

    .whatsapp-status {
        width: 2rem;
        height: 2rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Mobile menu adjustments for very small screens */
@media (max-width: 480px) {
    .mobile-menu-content {
        max-width: 100%;
    }

    .mobile-menu-header {
        padding: 1rem;
    }

    .mobile-logo {
        height: 35px;
    }

    .mobile-nav-link {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .mobile-menu-footer {
        padding: 1rem;
    }
}