/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

/* --- VARIÁVEIS DE CORES E ESTILOS GLOBAIS --- */
:root {
    --primary-color: #0a2342;
    --secondary-color: #ff8c00;
    --background-light: #f8f9fa;
    --text-light: #f1f1f1;
    --text-dark: #333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --border-radius: 8px;
}

/* --- RESET E ESTILOS GERAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

section {
    padding: 100px 20px;
    text-align: center;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.btn i {
    margin-left: 8px;
}

/* --- BARRA DE PROGRESSO --- */
.progress-bar {
    height: 4px;
    background: var(--secondary-color);
    width: 0%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    transition: width 0.1s linear;
}

/* --- HEADER INTELIGENTE --- */
.header {
    background-color: transparent;
    padding: 25px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header .logo {
    text-decoration: none;
}

.header .logo img {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.header .logo:hover img {
    transform: scale(1.05);
}

.header .navbar a {
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.4s ease;
    color: var(--text-light);
}

.header.scrolled .navbar a {
    color: var(--primary-color);
}

.header .navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.header .navbar a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
}

/* --- SEÇÃO HERO PROFISSIONAL --- */
#home {
    background: linear-gradient(135deg, #051426, var(--primary-color));
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

#home .container {
    position: relative;
    z-index: 2;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#typing-animation {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.2rem;
    height: 2rem;
    margin-bottom: 15px;
}

#typing-animation::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--secondary-color);
}

@keyframes blink {
    50% { opacity: 0; }
}

#home h1 {
    font-size: 3.2rem;
    color: var(--text-light);
    font-weight: 900;
    line-height: 1.2;
}

.highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin: 20px 0 30px;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-skills {
    margin-top: 30px;
    display: flex;
    gap: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-skills i {
    color: var(--secondary-color);
    margin-right: 8px;
}

#home .illustration {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* --- SEÇÃO SOBRE PROFISSIONAL --- */
#sobre {
    background-color: var(--background-light);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.about-text h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
    margin-top: 15px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: none;
    transform: translateY(-2px);
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.value-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.value-card h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.value-card p {
    line-height: 1.6;
    font-size: 1rem;
    color: #555;
}

/* --- SEÇÃO DE EXPERIÊNCIA INTERATIVA --- */
#experiencia {
    background-color: #fff;
}

.experience-wrapper {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    margin-top: 50px;
    min-height: 400px;
}

.experience-tabs {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.exp-tab {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: transparent;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    border-radius: var(--border-radius);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.exp-tab:hover {
    background-color: var(--background-light);
}

.exp-tab.active {
    background-color: var(--background-light);
    border-left-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.exp-tab strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-color);
    display: block;
    pointer-events: none;
}

.exp-tab span {
    font-size: 0.9rem;
    color: #6c757d;
    pointer-events: none;
}

.experience-content {
    position: relative;
}

.exp-panel {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.exp-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.exp-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.exp-company {
    color: var(--secondary-color);
    font-weight: 700;
}

.exp-date {
    color: #6c757d;
    margin-bottom: 20px;
    font-weight: 600;
}

.exp-date i {
    margin-right: 8px;
}

.exp-panel ul {
    list-style: none;
    padding: 0;
}

.exp-panel li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.exp-panel li i {
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
    font-size: 0.8rem;
}

/* --- SEÇÃO DE SERVIÇOS COM SLIDER --- */
#servicos {
    background-color: var(--background-light);
    position: relative;
}

.section-subtitle {
    max-width: 600px;
    margin: -15px auto 40px;
    font-size: 1.1rem;
    color: #555;
}

.service-slider {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
}

.service-slider .swiper-slide {
    width: 350px;
    height: auto;
    opacity: 0.5;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-slider .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.service-slide-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    height: 100%;
    border-top: 4px solid var(--secondary-color);
}

.service-slide-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-slide-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-slide-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.service-slider .swiper-pagination-bullet-active {
    background-color: var(--secondary-color);
}

#servicos .swiper-button-prev,
#servicos .swiper-button-next {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

#servicos .swiper-button-prev:hover,
#servicos .swiper-button-next:hover {
    background-color: var(--primary-color);
    color: #fff;
}

#servicos .swiper-button-prev::after,
#servicos .swiper-button-next::after {
    font-size: 1.2rem;
    font-weight: 900;
}

/* --- SEÇÃO DE QUALIFICAÇÕES PROFISSIONAL --- */
#qualificacoes {
    background-color: #fff;
}

.qualificacoes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.qualificacoes-panel {
    background: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: left;
    border-top: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.panel-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 50%;
    min-width: 70px;
    text-align: center;
}

.panel-header h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background-color: #fff;
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: default;
}

/* --- SEÇÃO DE CONTATO --- */
#contato {
    background-color: var(--background-light);
}

#contato h2 {
    font-size: 2.5rem;
}

#contact-wrapper {
    max-width: 700px;
    margin: 40px auto 0;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
    border-top: 4px solid var(--secondary-color);
}

#contact-form h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

#contact-form h4:first-of-type {
    margin-top: 0;
}

.service-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.service-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    background-color: transparent;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.service-btn.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #aaa;
    transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: none;
    border-bottom: 2px solid #ddd;
    background-color: transparent;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 50px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 50px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.form-group input:focus ~ i,
.form-group input:not(:placeholder-shown) ~ i,
.form-group textarea:focus ~ i,
.form-group textarea:not(:placeholder-shown) ~ i {
    color: var(--secondary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--secondary-color);
}

#submit-btn {
    width: 100%;
}

#form-result {
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

#form-result.success {
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

#form-result.error {
    background-color: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

#form-result h3 {
    color: inherit;
    margin-bottom: 10px;
}

/* --- BOTÃO VOLTAR AO TOPO --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* --- BOTÃO FLUTUANTE DO WHATSAPP --- */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.whatsapp-float-btn i {
    background-color: #25D366;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-text {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    margin-left: 10px;
    background-color: #fff;
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.4s ease;
}

.whatsapp-float-btn:hover i {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-float-btn:hover .whatsapp-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- FOOTER --- */
footer {
    background-color: #051426;
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
}

/* --- ANIMAÇÃO FADE-IN --- */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    #home h1 {
        font-size: 2.8rem;
    }
    #home .illustration {
        width: 280px;
        height: 280px;
    }
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-text {
        text-align: center;
    }
    .qualificacoes-grid {
        gap: 30px;
    }
    .panel-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 20px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        margin-bottom: 40px;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-skills {
        justify-content: center;
    }

    .experience-wrapper {
        grid-template-columns: 1fr;
    }
    .experience-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    .exp-tab {
        border-bottom: 4px solid transparent;
        border-left: none;
        white-space: nowrap;
    }
    .exp-tab.active {
        border-left: none;
        border-bottom-color: var(--secondary-color);
    }
    .exp-panel {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .exp-panel.active {
        display: block;
    }
    
    .qualificacoes-grid {
        grid-template-columns: 1fr;
    }
    
    .header,
    .header.scrolled {
        background-color: #fff;
        padding: 15px 5%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .header .logo img,
    .header.scrolled .logo img {
        /* Se o seu logo PNG for muito claro, pode ser necessário criar uma versão escura para mobile. */
    }
    
    .header.scrolled .navbar a,
    .header .navbar a.mobile-visible {
        color: var(--primary-color);
    }
    
    .menu-btn {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        color: var(--primary-color);
    }
    
    .header.scrolled .menu-btn {
        color: var(--primary-color);
    }
    
    .header:not(.scrolled) .menu-btn {
        color: var(--text-light);
    }
    
    .header .navbar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
    }

    .header .navbar.active {
        display: flex;
        transform: translateX(0);
    }

    .header .navbar a {
        color: var(--text-light);
        margin: 20px 0;
        font-size: 1.5rem;
    }

    .menu-btn.active i::before {
        content: '\f00d';
    }
}

/* =================== ESTILOS DA PÁGINA GERADOR DE QR CODE =================== */
#qrcode-generator {
    padding-top: 150px; /* Mais espaço no topo por causa do header fixo */
    padding-bottom: 150px;
    background-color: var(--background-light);
}

.generator-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.generator-wrapper h2 {
    font-size: 2.5rem;
}

.generator-wrapper p {
    margin-bottom: 30px;
    color: #555;
}

#qrcode-form .form-group {
    margin-bottom: 20px;
}

#qrcode-container {
    margin: 30px auto;
    width: 330px;
    height: 330px;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border-color 0.3s ease;
}

#qrcode-container.active {
    border-color: var(--secondary-color);
}

#qrcode-container img,
#qrcode-container canvas {
    max-width: 100%;
    height: auto;
    border-radius: 4px; /* Pequeno arredondamento no QR code */
}

#download-btn {
    display: none; /* Começa escondido */
    margin-top: 20px;
    background-color: var(--primary-color);
}

/* --- TELA DE LOGIN --- */
.login-body {
    background: linear-gradient(135deg, #051426, var(--primary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Open Sans', sans-serif;
}

.login-container {
    max-width: 400px;
    width: 100%;
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    text-align: center;
}

.login-logo {
    margin-bottom: 20px;
}

.login-logo img {
    height: 50px;
    width: auto;
}

.login-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-box p {
    color: #6c757d;
    margin-bottom: 30px;
}

.login-box .form-group {
    text-align: left;
}

.login-box .btn {
    width: 100%;
    margin-top: 15px;
}

.login-error-message {
    color: #c62828;
    background-color: #ffebee;
    border: 1px solid #f44336;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    display: none; /* Oculto por padrão */
}

.login-footer {
    margin-top: 25px;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- PAINEL ADMIN/CLIENTE --- */
.panel-body {
    background-color: var(--background-light);
}

.panel-container {
    display: flex;
    min-height: 100vh;
}

.panel-sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: fixed;
    height: 100%;
}

.sidebar-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    height: 45px;
    margin-bottom: 10px;
}

.sidebar-header h3 {
    color: var(--text-light);
    margin: 0;
}

.sidebar-nav {
    flex-grow: 1;
    margin-top: 30px;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: #ccc;
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-nav .nav-item .badge {
    margin-left: auto;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 50px;
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.panel-main {
    flex-grow: 1;
    margin-left: 260px; /* Mesma largura da sidebar */
    padding: 40px;
}

/* ATUALIZAÇÃO: Estilos do cabeçalho do painel foram completamente remodelados */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff; /* Fundo branco para destacar */
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Sombra mais sutil */
    border-left: 5px solid var(--primary-color);
    flex-wrap: wrap; /* Para telas menores */
    gap: 15px;
}

.panel-header .header-content h1 {
    font-size: 2.2rem;
    margin: 0 0 5px 0; /* Espaço abaixo do título */
    color: var(--primary-color);
}

.panel-header .header-content p {
    color: #555;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.panel-header .header-meta {
    text-align: right;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.95rem;
}

.panel-content {
    display: none; /* Oculto por padrão */
}

.panel-content.active {
    display: block; /* Exibe a aba ativa */
}

.table-container {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

th, td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}


th {
    font-family: 'Montserrat', sans-serif;
    color: #555;
}

td.actions {
    display: flex;
    gap: 15px;
}

td.actions a {
    color: var(--primary-color);
    font-size: 1.2rem;
}

td.actions a:hover {
    color: var(--secondary-color);
}
/* --- ESTILOS PARA O PAINEL DE CONTATOS (ADMIN) --- */
.contact-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.contact-card .card-header strong {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

.contact-card .card-date {
    font-size: 0.9rem;
    color: #6c757d;
}

.contact-card .card-body p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-card .card-body p:last-child {
    margin-bottom: 0;
}
/* ================================================= */
/* --- ESTILOS PARA O BOTÃO DE LOGIN NA NAVBAR --- */
/* ================================================= */

.btn-login {
    padding: 8px 20px;
    border: 2px solid rgba(255, 255, 255, 0.8); /* Borda branca para o header transparente */
    border-radius: 50px;
    margin-left: 20px; /* Espaço extra para separar dos outros links */
    transition: all 0.3s ease;
}

.btn-login i {
    margin-right: 8px; /* Ícone antes do texto */
}

/* Remove o efeito de sublinhado que os outros links têm */
.btn-login::after {
    display: none !important;
}

/* Efeito ao passar o mouse */
.header .navbar a.btn-login:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Estilo do botão quando o header tem o fundo branco (após rolar a página) */
.header.scrolled .navbar a.btn-login {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Efeito do hover para o header com fundo branco */
.header.scrolled .navbar a.btn-login:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Ajuste para o menu mobile, onde o botão deve se comportar como um link normal */
@media (max-width: 768px) {
    .btn-login {
        border: none; /* Remove a borda no menu mobile */
        padding: 10px 20px; /* Mantém um padding similar aos outros */
        margin-left: 0;
    }

    .header .navbar a.btn-login:hover {
        background-color: transparent; /* Remove o fundo no hover do mobile */
        color: var(--secondary-color);
        transform: none;
    }
}
/* ================================================= */
/* --- ESTILOS PARA O MODAL (POP-UP) --- */
/* ================================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.modal-body .form-group {
    margin-bottom: 25px;
    text-align: left;
}

.modal-body .btn {
    width: 100%;
    margin-top: 15px;
}
/* --- ESTILOS PARA LISTA DE DOCUMENTOS NO MODAL --- */
.docs-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: var(--border-radius);
}
.docs-list .doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.docs-list .doc-item:last-child {
    border-bottom: none;
}
.docs-list .doc-item span {
    color: var(--text-dark);
}
.docs-list .doc-item a {
    color: var(--primary-color);
    text-decoration: none;
}
.docs-list .doc-item a:hover {
    color: var(--secondary-color);
}
/* Altera o input de file para um estilo mais limpo */
input[type="file"] {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
}
/* --- ESTILOS PARA LISTA DE NOTIFICAÇÕES --- */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.notification {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid #ccc; /* Padrão para lidas */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
}
.notification.unread {
    border-left-color: var(--secondary-color); /* Destaque para não lidas */
    background-color: #fffaf0; /* Fundo levemente amarelado */
}
.notification p {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    color: #333;
}
.notification .timestamp {
    font-size: 0.9rem;
    color: #6c757d;
}
/* --- ESTILOS PARA O DASHBOARD (STATS) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-card {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.stat-card:nth-child(2) {
    border-left-color: var(--secondary-color);
}

.stat-card:nth-child(3) {
    border-left-color: #28a745; /* Cor verde para contatos */
}

.stat-icon {
    font-size: 2.5rem;
    color: #fff;
    background-color: var(--primary-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.stat-card:nth-child(2) .stat-icon {
    background-color: var(--secondary-color);
}

.stat-card:nth-child(3) .stat-icon {
    background-color: #28a745;
}

.stat-info {
    text-align: left;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
}
/* --- ESTILOS PARA NOTIFICAÇÃO TOAST --- */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease-out;
}
.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-notification.success {
    background-color: #28a745; /* Verde */
}
.toast-notification.error {
    background-color: #c62828; /* Vermelho */
}
/* ================================================= */
/* --- MELHORIAS DE UI PARA O PAINEL ADMIN (NOVO) --- */
/* ================================================= */

/* --- Estilo para o cabeçalho das seções --- */
.panel-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Para responsividade */
    gap: 15px;
}

/* --- Estilo para a Barra de Pesquisa --- */
.search-bar-container {
    position: relative;
    margin-bottom: 20px;
}

.search-bar-container input[type="search"] {
    width: 100%;
    padding: 12px 20px 12px 45px; /* Espaço para o ícone à esquerda */
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar-container input[type="search"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.1); /* Efeito de anel ao focar */
}

.search-bar-container .fa-search {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: color 0.3s ease;
}

.search-bar-container input[type="search"]:focus + .fa-search {
    color: var(--primary-color);
}

/* --- Estilos para Células Especiais da Tabela (Loading, Empty, Error) --- */
.loading-cell,
.empty-cell,
.error-cell {
    text-align: center;
    padding: 50px 20px;
    color: #777;
}

.empty-cell i {
    font-size: 3rem;
    color: #ccc;
    display: block;
    margin-bottom: 15px;
}

.empty-cell h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.error-cell {
    color: #c62828;
    font-weight: 500;
}

/* --- Estilo para o botão de confirmação de perigo --- */
.btn-danger {
    background-color: #c82333; /* Cor vermelha para perigo */
    box-shadow: 0 4px 15px rgba(200, 35, 51, 0.3);
}

.btn-danger:hover {
    background-color: #a81c2b;
    box-shadow: 0 8px 25px rgba(200, 35, 51, 0.4);
}

/* --- Estilo para o botão secundário (Cancelar) --- */
.btn-secondary {
    background: #6c757d; /* Cinza */
    box-shadow: none;
}
.btn-secondary:hover {
    background: #5a6268;
}

/* --- Adicionando Toast Notification (se ainda não tiver) --- */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease-out;
}
.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-notification.success {
    background-color: #28a745; /* Verde */
}
.toast-notification.error {
    background-color: #c62828; /* Vermelho */
}
/* ================================================= */
/* --- ESTILO DO INPUT DE ARQUIVO CUSTOMIZADO (V2 - CORREÇÃO DE SOBREPOSIÇÃO) --- */
/* ================================================= */

.file-input-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border: 2px dashed #ccc;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    background-color: #f9f9f9;
    overflow: hidden; 
}

.file-input-wrapper:hover {
    border-color: var(--secondary-color);
    background-color: #fff8f0;
}

.file-input-wrapper.has-file {
    border-color: #28a745;
    border-style: solid;
    background-color: #e8f5e9;
}

.file-input-hidden {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    height: 100%;
}

.file-input-label i {
    /* CORREÇÃO PRINCIPAL AQUI */
    display: block; /* Força o ícone a ser um bloco */
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    margin-bottom: 10px; /* Cria o espaço entre o ícone e o texto */
    line-height: 1;
}

.file-input-wrapper:hover .file-input-label i {
    transform: scale(1.1);
}

.file-input-label .file-label-text {
    /* CORREÇÃO PRINCIPAL AQUI */
    display: block; /* Força o texto a ser um bloco */
    width: 100%; /* Garante que o texto ocupe o espaço horizontal */
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.file-name-display {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
    text-align: center;
    display: block;
}
/* ================================================= */
/* --- MELHORIAS DE UI PARA FORMULÁRIOS (ADMIN) --- */
/* ================================================= */

/* Estilo para destacar contatos não lidos */
.contact-card.unread {
    background-color: #fffaf0; /* Fundo levemente amarelado */
    border-left-color: var(--secondary-color); /* Laranja, para chamar atenção */
    border-width: 2px;
}

/* Contêiner para os botões de ação do card */
.contact-card .card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end; /* Alinha os botões à direita */
    gap: 10px;
}

/* Estilo para os botões de ação dentro do card */
.card-action-btn {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #555;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-action-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.card-action-btn.archive-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.card-action-btn.archive-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

/* Links de ação para email e telefone */
.actionable-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.actionable-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}
/* ================================================= */
/* --- MELHORIAS DE UI PARA GERADOR QR (ADMIN) --- */
/* ================================================= */

#qrcode .generator-wrapper,
#qrcode .qrcode-display-area {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

#qrcode .generator-wrapper {
    margin-bottom: 30px;
}

#qrcode .qrcode-display-area {
    text-align: center;
}

#qrcode .form-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

#qrcode .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

#qrcode .form-group select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

#qrcode .form-group {
    position: relative;
}

#qrcode .form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    z-index: 1; /* Para ficar sobre o select */
}

#qrcode .form-group::after { /* Seta para o select */
    content: '\f078';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

#qrcode .form-group input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
}

#qrcode .form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

#qrcode #qrcode-container {
    border: none;
    padding: 0;
    margin-bottom: 20px;
}
/* ================================================= */
/* --- UI DE CUSTOMIZAÇÃO DO QR CODE (ADMIN) --- */
/* ================================================= */

.customization-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: flex-start;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: var(--border-radius);
}

.color-pickers-column, .presets-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.customization-grid label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

.color-swatch-wrapper {
    position: relative;
    width: 100%;
    height: 45px;
}

.color-swatch {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.03);
}

.color-swatch-wrapper input[type="color"] {
    /* Oculta o input, mas o mantém funcional */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preset-themes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    background-color: #fff;
    font-size: 1.2rem;
    color: #888;
    transition: all 0.2s ease;
    padding: 0;
}

.preset-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.preset-btn:nth-child(1) { background-image: linear-gradient(45deg, #0a2342 50%, #ffffff 50%); }
.preset-btn:nth-child(2) { background-image: linear-gradient(45deg, #ffffff 50%, #0a2342 50%); }
.preset-btn:nth-child(3) { background-image: linear-gradient(45deg, #ff8c00 50%, #ffffff 50%); }
.preset-btn:nth-child(4) { background-image: linear-gradient(45deg, #000000 50%, #ffffff 50%); }

.preset-btn i {
    opacity: 0;
    transition: opacity 0.2s ease;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.preset-btn:hover i {
    opacity: 1;
    color: #fff;
}

.btn-reset-colors {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
    font-size: 0.9rem;
    text-align: right;
}

.btn-reset-colors:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .customization-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================================= */
/* --- ESTILO DO BOTÃO DE SAIR (ADMIN PANEL) --- */
/* ================================================= */

.panel-sidebar .sidebar-footer {
    margin-top: auto; /* Truque de flexbox para empurrar o rodapé para o fundo */
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-logout {
    text-align: center;
    justify-content: center; /* Centraliza o conteúdo (ícone e texto) */
    background-color: transparent !important; /* Garante que não tenha fundo por padrão */
    border: 2px solid rgba(255, 255, 255, 0.4); /* Borda "ghost" */
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: var(--secondary-color) !important; /* Cor laranja da sua marca no hover */
    border-color: var(--secondary-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
