/* Variáveis CSS */
:root {
    --primary-color: #495057;
    --secondary-color: #6c757d;
    --accent-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Melhorias globais para mobile */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Permitir seleção de texto em elementos específicos */
p, h1, h2, h3, h4, h5, h6, span, div {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Melhorar scroll no mobile */
html, body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Botão personalizado do header */
.btn-custom-nav {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c3e50 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(73, 80, 87, 0.3);
    color: white;
}

.btn-custom-nav:hover {
    background: linear-gradient(135deg, #2c3e50 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73, 80, 87, 0.4);
    color: white;
}

.btn-custom-nav:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(73, 80, 87, 0.3);
}

.btn-custom-nav:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Melhorias para touch no mobile */
@media (max-width: 991.98px) {
    .btn-custom-nav {
        /* Melhorar área de touch */
        min-height: 44px;
        min-width: 44px;
        
        /* Melhorar feedback visual */
        transition: all 0.2s ease;
        
        /* Prevenir zoom no iOS */
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        
        /* Melhorar tap highlight */
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }
    
    .btn-custom-nav:active {
        transform: scale(0.98);
        background: linear-gradient(135deg, #1a252f 0%, var(--primary-color) 100%);
    }
    
    .btn-custom-nav:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(73, 80, 87, 0.2);
    }
}

/* Responsividade do header */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 15px;
    }
    
    .nav-link {
        margin: 5px 0;
        padding: 10px 0;
    }
    
    .btn-custom-nav {
        margin-top: 10px;
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 12px 20px;
        font-size: 1rem;
        min-height: 44px; /* Melhora área de touch */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Centralizar o botão no mobile */
    .navbar-nav.ms-auto {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 0 !important;
        padding-left: 0;
    }
    
    .navbar-nav.ms-auto .nav-item {
        width: 100%;
        max-width: 320px;
        display: flex;
        justify-content: center;
        margin: 0 auto;
        text-align: center;
    }
    
    .navbar-nav.ms-auto .btn-custom-nav {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%);
    color: white;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 1;
}

/* Responsividade do Hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .btn-custom-hero {
        padding: 10px 16px;
        font-size: 0.88rem;
        width: 100%;
        max-width: 280px;
        margin: 16px auto 0;
        display: block;
        min-height: 44px; /* área de toque */
        white-space: normal; /* permitir quebra automática */
        text-align: center;
        line-height: 1.2;
    }
    
    /* Centralizar logo e garantir respiro entre logo e botão */
    .hero-logo {
        display: block;
        margin: 24px auto 18px;
        max-width: 65vw;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-custom-hero {
        padding: 10px 14px;
        font-size: 0.84rem;
        max-width: 260px;
        margin-top: 18px;
        min-height: 44px; /* área de toque */
        white-space: normal; /* permitir quebra automática */
        text-align: center;
        line-height: 1.25;
    }
    .hero-logo {
        max-width: 70vw;
        margin-top: 24px;
        margin-bottom: 20px;
    }
}

.btn-custom {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-custom-hero {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-custom-hero:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-custom-hero:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--light-color);
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%; /* Força todos os cards a terem a mesma altura */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
    flex-grow: 0; /* Não cresce */
}

.feature-card p {
    color: var(--secondary-color);
    line-height: 1.6;
    flex-grow: 1; /* Cresce para preencher o espaço */
    margin-bottom: 0; /* Remove margem inferior */
}

/* Responsividade dos Cards de Benefícios */
@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .features-section {
        padding: 40px 0;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-card h4 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
}

/* Carrossel */
.carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-indicators button {
    background-color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 10px;
}

/* ===== CARROSSEL DE INDICADORES ===== */
.carousel-item-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.carousel-item-card:hover {
    transform: translateY(-5px);
}

.carousel-image-placeholder {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
    pointer-events: none; /* Impede cliques na imagem */
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none; /* Impede cliques no overlay */
}

.carousel-item-card:hover .carousel-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
}

/* Máscara adicional para garantir que não há cliques */
.carousel-image-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 5; /* Reduzindo o z-index para não bloquear controles */
    cursor: default;
    pointer-events: none; /* NÃO captura cliques - permite que controles funcionem */
}

/* Garantir que os controles do carrossel tenham z-index maior */
.carousel-control-prev,
.carousel-control-next {
    z-index: 15 !important;
}

.carousel-indicators {
    z-index: 15 !important;
}

.carousel-caption {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    padding: 8px 12px;
    background: rgba(0,0,0,0.8);
    border-radius: 8px;
    text-align: center;
}

.carousel-caption h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
}

/* ===== CARROSSEL DE CLIENTES ===== */
#clientesCarousel .carousel-item-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    max-width: 150px;
    margin: 0 auto;
}

#clientesCarousel .carousel-item-card:hover {
    transform: translateY(-3px);
}

#clientesCarousel .carousel-image-placeholder {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

#clientesCarousel .carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 8px;
}

/* Carrossel de clientes - CSS simplificado igual ao de indicadores */

/* Layout do Carrossel - APENAS para indicadores */
#indicadoresCarousel .carousel-item .row {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
}

#indicadoresCarousel .carousel-item .carousel-col {
    flex: 0 0 auto;
    width: calc(100% / 3); /* 3 itens por linha */
    padding: 0 10px;
}

/* Responsividade do Carrossel de INDICADORES */
@media (max-width: 768px) {
    #indicadoresCarousel .carousel-item .carousel-col {
        width: 100% !important; /* 1 item por vez no mobile */
        padding: 0 5px;
    }
    
    /* Ajustar altura das imagens no mobile */
    #indicadoresCarousel .carousel-image-placeholder {
        height: 150px !important;
    }
}

@media (max-width: 480px) {
    #indicadoresCarousel .carousel-item .carousel-col {
        padding: 0 2px;
    }
    
    #indicadoresCarousel .carousel-image-placeholder {
        height: 120px !important;
    }
}

/* Layout específico para carrossel de CLIENTES - IGUAL AO DE INDICADORES */
#clientesCarousel .carousel-item .row {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
}

#clientesCarousel .carousel-item .carousel-col {
    flex: 0 0 auto;
    width: calc(100% / 3); /* 3 itens por linha no PC */
    padding: 0 10px;
}

/* Responsividade do Carrossel de CLIENTES - IGUAL AO DE INDICADORES */
@media (max-width: 768px) {
    #clientesCarousel .carousel-item .carousel-col {
        width: 100% !important; /* 1 item por vez no mobile */
        padding: 0 5px;
    }
    
    /* Ajustar altura das imagens no mobile */
    #clientesCarousel .carousel-image-placeholder {
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    #clientesCarousel .carousel-item .carousel-col {
        padding: 0 2px;
    }
    
    #clientesCarousel .carousel-image-placeholder {
        height: 80px !important;
    }
}

/* Garantir que os controles do carrossel de CLIENTES funcionem */
#clientesCarousel .carousel-control-prev,
#clientesCarousel .carousel-control-next {
    z-index: 15 !important;
    pointer-events: auto !important;
}

#clientesCarousel .carousel-indicators {
    z-index: 15 !important;
    pointer-events: auto !important;
}



/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0;

}

.footer h5,
.footer p,
.footer .text-muted {
    color: white !important;
    opacity: 0.5;

}

/* Footer developer credit */
.footer-dev {
    font-size: 0.9rem; /* menor que o CNPJ (padrão 1rem) */
}
.footer-dev-link {
    color: inherit; /* mesma cor do texto */
    text-decoration: underline; /* apenas o nome sublinhado */
}
.footer-dev-link:hover,
.footer-dev-link:focus {
    color: inherit; /* sem alterar cor no hover */
    text-decoration: underline;
}

/* ===== LOGIN PAGE STYLES ===== */

/* Login Container */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    min-height: 600px;
}

.login-sidebar {
    background: linear-gradient(135deg, var(--dark-color) 0%, #495057 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 600px;
}

.login-form {
    padding: 60px 40px;
    height: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Login Form Elements */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-login {
    background: var(--dark-color);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(73, 80, 87, 0.3);
}

.back-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #f8f9fa;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.feature-list i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ===== DASHBOARD STYLES ===== */

/* Dashboard Layout */
.sidebar {
    background: white;
    min-height: calc(100vh - 70px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    z-index: 1000;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav .nav-link {
    color: var(--dark-color);
    padding: 12px 25px;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.sidebar-nav .nav-link i {
    margin-right: 10px;
    width: 20px;
}

/* Dashboard Cards */
.btn-indicadores {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0f5132 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-indicadores:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.3);
    color: white;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

.welcome-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsividade para títulos */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 2rem;
        line-height: 1.3;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    /* Login responsive */
    .login-sidebar {
        display: none;
    }
    .login-form {
        padding: 40px 20px;
    }
    
    /* Dashboard responsive */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
} 