
:root {
    --primary: #2e8be8;
    --primary-dark: #2b8def;
    --secondary: #2c3e50;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    font-family: sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ============ MENU HAMBURGUER (NOVO) ============ */
body {
    padding-top: 60px; /* Adiciona espaço para o header fixo */
}

/* ===== HEADER STYLES ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

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

/* Logo Styles */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 45px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #002932;;
    margin: 0;
    line-height: 1;
}
/* ===== LOGO STYLES ===== */
.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important; /* Removes underline */
}



.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #002932;
    margin: 0;
    line-height: 1;
    position: relative;
    top: 0;
    left: 4%;
    text-decoration: none !important;
    display: inline-block; /* Ensures proper alignment */
}

/* Hover effects */
.logo-link:hover {
    text-decoration: none;
}

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

.logo-link:hover .logo-text {
    color: #00bee1; /* Slightly darker on hover */
}


/* Desktop Navigation */
/* Desktop Navigation */
.desktop-nav {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0; /* Remove gap to allow precise control */
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-menu li a{
   text-decoration: none;
   color: var(--secondary);
    padding-right: 15px;
}


.dropdown {
    position: relative;
    display: flex; /* Changed to flex for better alignment */
    align-items: center;
    height: 100%;
}

/* Style for both regular menu items and dropdown toggles */
.menu-item, .dropdown-toggle {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    height: 100%;
}

.menu-item:hover, .dropdown-toggle:hover {
    color: var(--primary);
}

.nav-menu > li a:hover {
    color: var(--primary);
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 0.6em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    list-style: none;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu .nav-link {
    padding: 12px 20px;
    display: block;
    color: var(--secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-menu .nav-link:hover {
    background: #f8f9fa;
    border-left-color: var(--primary);
    color: var(--primary);
}

/* Mobile Navigation */
.hamburger-menu {
    display: none;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu a{
    text-decoration: none;
    list-style: none;
    color: var(--secondary);
}

.mobile-menu li{
    line-height: 35px;
    border-bottom: 1px solid #f8f0f0;
    padding: 2px;
}

.mobile-menu{
    overflow: auto;
    max-height: 633px;
}

.mobile-nav {
    position: fixed;
    top: 67px;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    text-align: right;
    transform: translateX(100%); /* Escondido fora da tela */
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    padding-right: 14px;
}

.mobile-nav.active {
    /*left: 32%; */ /* Changed from 32% to 0 for proper mobile menu */
    transform: translateX(0); /* Desliza para dentro da tela */
}

.mobile-nav .nav-link {
    padding: 15px 25px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav .nav-link:hover {
    background: #f8f9fa;
    border-left-color: var(--primary);
    color: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
}

@media (min-width: 992px) {
    .mobile-nav {
        display: none;
    }
}

/* Hamburger Animation */
.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

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

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mantenha o tab-content original */

.tab-content{
    display: block;
    background: #e0dfdf;
    padding: 2px;
    border-radius: 7px;
}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* Esconda o logo original na hero section */
.hero .logo.header {
    display: none;
}


/* ADICIONE estas regras */
.modal-active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    background: white;
    z-index: 1001;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* Mantenha a regra para tabs normais */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content.modal-active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    background: white;
    z-index: 1001;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    display: block !important;
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #305a8c 0%, #126692 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-radius: 0 0 15px 15px;
    margin-bottom: 2rem;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}



h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: white;
    color: var(--secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-size: 20px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
    padding: 2rem 0;
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.feature-tag{
    color: #00bfe1;
    font-weight: 500;
    padding-top: 10px;
}
.feature-tag a {
    text-decoration: none;
    color: #ffffff;
    border: 0;
    padding: 7px 23px 10px;
    background: #38747f;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

.feature-card:hover {
    transform: translateY(-10px);
}

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

.feature-title {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

/* Tools Section */
.tools-section {
    padding: 1px;
    background-color: #f9f9f9;
    border-radius: 15px;
    margin-bottom: 8px;
   
}

#tools.tools-section {
    position: relative;
    top: 10px; /* Desloca 10px para baixo */
}



#tools h2,#tools h3{
    text-align: center;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

/*
.tab-btn {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 2px solid var(--primary);
    border-radius: 10px;
    width: 301px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;

    text-align: center;
    text-decoration: none;
    font-weight: 600;
   
}
*/
.tab-btn {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 2px solid var(--primary);
    border-radius: 10px;
    width: 301px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    height: 100px;
    justify-items: '';
    display: flex;
    /* align-content: flex-end; */
    flex-direction: column;
    justify-content: space-evenly;
}

.tab-btn a{
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}
.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary);
    /*color: rgb(109, 108, 108);*/
    color: #fff;
}

.tab-btn.active {
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(243, 184, 23, 0.3);
    background-color: var(--primary);
    color: white;
}

.tab-icon {
    /*margin-right: 51px; */
    font-size: 2.1em;
    transition: transform 0.3s ease;
}

/* Unique background colors for each category */
/*
.tab-btn[data-tab="lottery"] { 
    background-color: #52a0d5;
    border-color: #ec9439;
    color: #fff; 
}
    */  

/*
.tab-btn[data-tab="finance"] { background-color: #e6fcf5; border-color: #c3fae8; }
.tab-btn[data-tab="sequences"] { background-color: #f3f0ff; border-color: #e5dbff; }
.tab-btn[data-tab="percentage"] { background-color: #fff3bf; border-color: #ffec99; }
.tab-btn[data-tab="calculator"] { background-color: #d0ebff; border-color: #a5d8ff; }
.tab-btn[data-tab="financial-org"] { background-color: #e6fcf5; border-color: #c3fae8; }
.tab-btn[data-tab="financing-simulator"] { background-color: #fff0f6; border-color: #ffdeeb; }
.tab-btn[data-tab="equations"] { background-color: #f3f0ff; border-color: #e5dbff; }
.tab-btn[data-tab="word-search"] { background-color: #fff3bf; border-color: #ffec99; }
.tab-btn[data-tab="shipping-simulator"] { background-color: #d0ebff; border-color: #a5d8ff; }

*/

/* Hover Effects */
.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tab-btn:hover .tab-icon {
    transform: scale(1.2);
}

/* Active State */
.tab-btn.active {
    border-left: 4px solid var(--primary);
    background-color: #5d99dd;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tab-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .tab-buttons {
        grid-template-columns: 1fr;
    }
}



.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Common Tool Styles */
.game-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
    /*align-items: center;*/
    align-items: self-end;
    justify-content: center;
    
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    /*max-width: 300px;*/
}

.control-group label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.control-group input,
.control-group select,
.control-group input[type="date"],
.input-group select,
.input-group input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 40px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px; /* iOS não aplica zoom com 16px+ */
  box-sizing: border-box;
  background-color: #fff;
}

/*
.input-group select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px; 
  background-color: #fff;
}
  */

.result-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
   /* margin-bottom: 1.5rem;*/
    margin-bottom: 0.0rem;
    border: 1px solid #eee;
}


.numbers-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
    min-height: 60px;
}

.number-ball {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: clamp(1rem, 3vw, 1.2rem);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    touch-action: manipulation; /* Melhora a resposta ao toque */
    transition: transform 0.1s ease; /* Adiciona transição suave */
}

.number-ball.federal-ball {
    width: clamp(70px, 15vw, 86px) !important;
    height: clamp(70px, 15vw, 86px) !important;
    font-size: clamp(1.2rem, 4vw, 1rem) !important;
}

.history-value .number-ball.federal-ball {
    width: 69px !important;
    height: 69px !important;
    font-size: 1rem !important;
    margin: 3px; /* Espaçamento adicional se necessário */
}

.number-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 8px rgba(0,0,0,0.15);
}

.number-ball.touched {
    transform: scale(0.95); /* Feedback visual ao tocar */
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
}

.btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 184, 23, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.history {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #eee;
}

.history h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.history-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item:last-child {
    border-bottom: none;
}

.history-label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.history-value {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.sequence-container {
    margin-top: 1rem;
}

.sequence-result {
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    white-space: normal;
    font-size: 0.9rem;
}

.sequence-output {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-family: monospace;
}

.sequence-formula {
    padding: 15px;
    background-color: #fff8e6;
    border-radius: 5px;
    border-left: 3px solid var(--primary);
    line-height: 1.8;
}

.sequence-formula strong {
    color: var(--secondary);
}


/* Legal Notice */
.legal-notice {
    background-color: #f0f7ff; /* Azul bem claro como fundo */
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #2e8be8; /* Usando a cor do site */
    margin: 2rem auto;
    font-size: 0.9rem;
    max-width: 800px;
    box-shadow: 0 2px 8px rgba(46, 139, 232, 0.2); /* Sombra sutil na cor do site */
    position: relative; /* Para permitir elementos absolutos internos */
    color: #3d3a3a;
}

.legal-notice strong {
    color: #2e8be8; /* Cor do site para o "Aviso Legal" */
    font-size: 1rem; /* Tamanho um pouco maior */
}

.legal-notice::before {
    /*content: "⚠️"; 
    position: absolute;
    left: -10px;
    top: -10px;
    background: #2e8be8;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
*/
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 80%;
    background: #2e8be8;
    border-radius: 0 4px 4px 0;
}


/* Elementos do Formulário */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.rating-stars {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    font-size: 2rem;
    color: #ddd; /* Cor padrão (cinza) */
    cursor: pointer;
    transition: color 0.2s;
}

/* Estrelas à direita da selecionada (visualmente à esquerda) */
.rating-stars input[type="radio"]:checked ~ label {
    color: #ffc107;
}

/* Estrela selecionada */
.rating-stars input[type="radio"]:checked + label {
    color: #ffc107;
}

/* Efeito hover */
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107;
}

/* Botão de Envio */
.submit-btn {
    background-color: #2e8be8;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #1a6fc7;
}



.form-contato {
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* max-width: 333px; */
    width: 100%;
    margin: auto;
}

.form-contato input,
.form-contato textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-contato button {
  padding: 10px;
  background-color: #2887a7;;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}


/* Footer */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.cardtools.exclusivo{
    background: #002932;
}


/* Estilos para a calculadora científica */
.calc-origin {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #00bee1;
    border-radius: 5px;
}

.calculator-display {
    font-size: 2rem;
    text-align: right;
    padding: 10px 15px;
    background: #e4e3e2;
    border-radius: 8px;
    margin-bottom: 10px;
    min-height: 50px;
    overflow: hidden;
    word-break: break-all;
}

.calculator-memory {
    font-size: 0.9rem;
    text-align: right;
    color: #6c757d;
    min-height: 18px;
    padding: 0 15px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.calc-btn {
    padding: 12px 8px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    background: #e9ecef;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1; /* Mantém botões quadrados */
}

/* Cores e hover (mantido do seu CSS) */
.calc-btn:hover { background: #dee2e6; }
.calc-btn.operator { background: #007bff; color: white; }
.calc-btn.operator:hover { background: #0069d9; }
.calc-btn.equals { background: #28a745; color: white; }
.calc-btn.equals:hover { background: #218838; }
.calc-btn.scientific { background: #6c757d; color: white; font-size: 0.9rem; }
.calc-btn.scientific:hover { background: #5a6268; }


@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

/* Garante que outras abas não sejam visíveis */
/*
.tab-content:not(.modal-active) {
    display: none !important;
}
*/


.modal-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    /*max-height: 80vh;*/
    height: 94%;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Garante que o botão close seja posicionado em relação ao header */
    /*padding-right: 40px; */ /* Espaço para o botão close */
    padding-right: 107px;
   
}

.modal-title {
    margin: 0;
    color: var(--secondary);
    font-size: 1.25rem;
    /* padding-right: 30px; */
    /* margin-right: 10px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
}

.modal-tab-content {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.modal-tab-content .game-controls,
.modal-tab-content .result-container {
    padding: 15px;
    margin-bottom: 15px;
}

/* Ajuste para elementos internos */
.modal-active .game-controls,
.modal-active .result-container {
    width: 100%;
    box-sizing: border-box;
}


/* Ajuste para a calculadora no modal */
.modal-tab-content#calculator .calculator-buttons {
    grid-template-columns: repeat(5, 1fr);
}

.modal-close {
    position: absolute;
    top: 27%;
    right: 0px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.8rem;
    line-height: 1;
    cursor: pointer;
    color: #00bee1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1002;
    padding: 0;
    margin: 0;
}

.modal-close:hover {
    color: var(--danger);
    background-color: rgba(220, 53, 69, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.modal-content {
    padding: 1.5rem;
    line-height: 1.6;
    /*max-height: calc(80vh - 120px); */ /* Considera header e footer */
    height: 85%;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    text-align: right;
}

.modal-btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-btn:hover {
    background-color: var(--primary-dark);
}


/* Financial Organization Styles */
.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-income {
    background-color: rgba(40, 167, 69, 0.1);
}

.transaction-expense {
    background-color: rgba(220, 53, 69, 0.1);
}

.transaction-value {
    font-weight: bold;
}

.income-value {
    color: var(--success);
}

.expense-value {
    color: var(--danger);
}

.financial-summary {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    
}

.financial-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
   
}

.financial-metric strong {
    color: var(--secondary);
    font-family: monospace !important;
}

.financial-metric span {
    font-family: monospace !important;
}

.provision-item {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff8e6;
    border-left: 3px solid var(--primary);
}
#transaction-value{
    text-align: right;
}



.math-operations {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

.math-formula {
    font-size: 1.2em;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin: 15px 0;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.result-display {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.error {
    color: #e74c3c;
}

.operation-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.op-tab-btn {
    padding: 8px 15px;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.op-tab-btn.active {
    border-bottom: 3px solid #3498db;
    font-weight: bold;
}

.op-content {
    display: none;
}

.op-content.active {
    display: block;
}

.logo-marca{
    float: left;
    position: relative;
    top: -5px;
}
.logo-marca img{
    width: 40px;
}


/*Sistema de depoimentos*/


.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.rating-stars {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107;
}

.rating-stars input[type="radio"]:checked + label {
    color: #ffc107;
}

.submit-btn {
    background-color: #2175c9;
    color: #ffffff;
    font-weight: bold;
    /* font-size: 15px; */
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
}

.submit-btn:hover {
    background-color: #1a6fc7;
}





/* Estilos do Carrossel */
/* CARROSSEL - ADIÇÕES ESPECÍFICAS (sem alterar o existente) */
.testimonials-container {
    position: relative;
    padding: 1rem 0;
    overflow: hidden;
}

.testimonials-grid {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    margin: 0 -0.75rem;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Suave no iOS */
    padding-bottom: 1rem; /* Espaço para a barra de scroll */
}

.testimonial-card {
    flex: 0 0 calc(100% - 1.5rem);
    scroll-snap-align: start;
    margin: 0 0.75rem;
    box-sizing: border-box;
}

/* Navegação - mantendo o existente mas melhorando */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Setas - mantendo mas ajustando posicionamento */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    opacity: 0.9;
}

.carousel-arrow:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    opacity: 1;
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

/* Esconde scrollbar no desktop mas mantém funcionalidade */
.testimonials-grid::-webkit-scrollbar {
    display: none;
}



/* ADIÇÕES ESPECÍFICAS PARA O CARROSSEL ROTATIVO */
.testimonials-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.testimonials-grid {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    will-change: transform;
    padding-bottom: 10px; /* Espaço para o scroll no mobile */
    
}


    /* Estilos do Footer - Mantendo todos os seletores originais */
    footer {
        background-color: #1e2b38;
        color: #ffffff;
        padding: 50px 0 30px;
        font-family: 'Arial', sans-serif;
    }

    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        /*padding: 0 15px;*/
        padding: 4px 20px 10px;
        background: #fff;
        border-radius: 5px;
    }   



    .footer-content {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-section {
        flex: 1;
        min-width: 200px;
    }

    /* Estilos da Seção do Logo - Alinhada à esquerda */
    .logo-section {
        flex: 0 0 280px;
        text-align: left;
    }

    .footer-logo-group {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .logo-img {
        width: 50px;
        height: auto;
    }

    .footer-logo-group .logo-text {
        color: #ffffff;
        font-size: 1.8rem;
        margin: 0;
        font-weight: 700;
    }

    .footer-logo-group .footer-description {
        font-size: 1.1rem;
        color: #a3d2ff;
        line-height: 1.5;
    }

    /* Estilos dos Links */
    .links-section h4, 
    .tools-section h4 {
        color: #4dabf7;
        margin-bottom: 25px;
        font-size: 1.25rem;
        font-weight: 600;
        padding-bottom: 10px;
        border-bottom: 1px solid #3a4e6b;
    }

    .footer-section.links-section h2{
        color: #ffffff;
        margin-bottom: 25px;
        font-size: 15px;
        font-weight: 600;
        padding-bottom: 10px;
        border-bottom: 1px solid #3a4e6b;
    }

    .footer-section.tools-section h2{
        color: #2a9cf9;
        margin-bottom: 25px;
        font-size: 15px;
        font-weight: 600;
        padding-bottom: 10px;
        border-bottom: 1px solid #3a4e6b;
    }

    .footer-links li, 
    .footer-tools li {
        margin-bottom: 12px;
        list-style: none;
    }

    .footer-links a, 
    .footer-tools a {
        color: #e3f2fd;
        text-decoration: none;
        transition: color 0.2s ease;
        font-size: 1rem;
    }

    .footer-links a:hover, 
    .footer-tools a:hover {
        color: #4dabf7;
    }

    /* Estilos das Ferramentas */
    .tools-grid {
        display: flex;
        gap: 30px;
        text-align: left;
        padding: 8px;
    }
    .tools-grid a{
        color: rgb(43 43 43);
    }
    .footer-tools {
        flex: 1;
    }

    /* Estilos do Copyright */
    .copyright-section {
        text-align: center;
        padding-top: 30px;
        border-top: 1px solid #3a4e6b;
    }

    .copyright {
        margin-bottom: 10px;
        color: #a3d2ff;
        font-size: 0.95rem;
    }

    .disclaimer {
        font-size: 0.85rem;
        color: #8ba3c7;
    }

    /* Estilos Responsivos */
    @media (max-width: 1024px) {
        .footer-content {
            gap: 30px;
        }
        
        .logo-section {
            flex: 0 0 100%;
        }
    }

    @media (max-width: 768px) {
        .footer-section {
            flex: 0 0 calc(50% - 20px);
        }
        
        .tools-grid {
            flex-direction: column;
            gap: 0;
            text-align: center;
        }
    }

    @media (max-width: 480px) {
        .footer-section {
            flex: 0 0 100%;
            text-align: center;
        }
        
        .logo-section {
            text-align: center;
        }
        
        .footer-logo-group {
            justify-content: center;
        }
        
        .links-section h4,
        .tools-section h4 {
            text-align: center;
        }
        .links-section h3,
        .tools-section h3 {
            text-align: center;
        }
    }



/* ESTILOS PARA O CARROSSEL ROTATIVO NO DESKTOP */
@media (min-width: 1024px) {
    .testimonials-container {
        overflow: hidden;
        cursor: grab;
    }
    
    .testimonials-grid {
        display: flex;
        transition: transform 0.3s ease-out;
        will-change: transform;
    }
    
    .testimonials-grid.grabbing {
        cursor: grabbing;
        transition: none;
    }
    
    .testimonial-card {
        flex: 0 0 auto;
        width: calc(33.333% - 1rem); /* 3 cards visíveis */
        /*margin-right: 1rem;*/
        margin-right: -0.5rem;
    }
}




/* Estilos dos cards (mantendo os existentes) */
.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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




/*Fim */

#resultadoclt{
    background: #e1f5e5;
    padding: 15px;
    border-radius: 6px;
}

.resultclt p{
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}



/* Animação personalizada para desktop */
@keyframes slideAnimation {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    25% { transform: translateX(-25%); }
    45% { transform: translateX(-25%); }
    50% { transform: translateX(-50%); }
    70% { transform: translateX(-50%); }
    75% { transform: translateX(-75%); }
    95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}





@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(25% - 1.5rem);
    }
    
    /* Auto-rotate apenas no desktop */
    .testimonials-grid {
        overflow-x: hidden; /* Desativa scroll no desktop */
    }

    .testimonials-grid.auto-rotate:hover .testimonials-slider {
        animation-play-state: paused;
    }
}


/* CORREÇÃO PARA CENTRALIZAR CARDS NO MOBILE */
@media (max-width: 1023px) {
    .testimonials-container {
        padding: 0 1rem; /* Adiciona padding nas laterais */
    }
    
    .testimonials-grid {
        display: flex;
        padding: 0 0 1rem;
        margin: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        scroll-padding: 0 1rem; /* Espaço para centralizar */
    }
    
    .testimonial-card {
        flex: 0 0 90%;
        min-width: 85%;
        margin: 0 0.5rem;
        scroll-snap-align: center;
        /* flex: 0 0 90%; */
        min-width: 90%;
        margin: 0 0.8rem;
    }
    
    /* Espaçamento antes do primeiro e após o último card */
    .testimonials-grid::before,
    .testimonials-grid::after {
        content: '';
        flex: 0 0 1rem;
    }
}


/* RESPONSIVIDADE ESPECÍFICA PARA O CARROSSEL */
@media (min-width: 480px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1.5rem);
    }
   
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(22.333% - 1.2rem);
    }
   
    
    .carousel-arrow {
        width: 50px;
        height: 50px;
    }

    .mobile-nav {
        max-height: 635px;
    }
}

/* Animações para rotação automática */
@keyframes slide {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    25% { transform: translateX(-25%); }
    45% { transform: translateX(-25%); }
    50% { transform: translateX(-50%); }
    70% { transform: translateX(-50%); }
    75% { transform: translateX(-75%); }
    95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

/* Classe para ativar animação apenas no desktop */
.auto-rotate {
    animation: slide 20s infinite;
}

/* Efeito de arrastar para mobile */
.testimonials-grid.grabbing {
    cursor: grabbing;
    scroll-snap-type: none;
    transition: none;
}

/* Formulário de Depoimentos */
.testimonials-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonials-form h3 {
    margin-bottom: 1.5rem;
    color: #2e8be8;
    text-align: center;
}


.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    position: relative; 
}
.testimonial-date {
    font-size: 0.8rem;
    color: #999;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    font-size: 0.95rem;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--secondary);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 3px;
}


.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}


.testimonial-rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonial-card {
    position: relative;
}

.testimonial-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}



.fa-solid, .fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 38px;
}

.features-grid-learn {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(248px, 100%), 1fr));
    gap: 3.5rem;
    margin-bottom: 3rem;
    margin-top: 1rem;
}
.feature-card-learn{
    background: #f2f2f2;
    border-radius: 6px;
    border: 1px solid #acddff;
    padding: 9px;
}
.feature-card-learn h3{
    font-size: 14px;
}

.feature-card-learn span{
    position: relative;
    top: -40%;
    left: 20%;
}

.feature-card-learn span > .fas{
    font-size: 24px;
    float: right;
    color: #002932;
}


/* bread breadcrumb */
.breadcrumb {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 14px 0;
    margin-bottom: 25px;
    background-color: #f5f7fa;
    border-radius: 6px;
    border-bottom: 1px solid #e0e3e9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

.breadcrumb-home {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 4px 6px;
    border-radius: 4px;
}

.breadcrumb-home:hover {
    transform: translateY(-1px);
    background-color: #ebeff5;
}

.breadcrumb-home-icon {
    width: 16px;
    height: 16px;
    color: #4a6baf;
    transition: color 0.3s ease;
}

.breadcrumb-home:hover .breadcrumb-home-icon {
    color: #2c4a8a;
}

.breadcrumb-item {
    color: #4a6baf;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.92rem;
    position: relative;
}

.breadcrumb-item:hover {
    color: #2c4a8a;
    background-color: #ebeff5;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.breadcrumb-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    width: calc(100% - 20px);
    height: 1.5px;
    background-color: #2c4a8a;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.breadcrumb-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.breadcrumb-current {
    color: #2d3748;
    font-weight: 600;
    pointer-events: none;
    padding: 5px 10px;
    background-color: #f0f4f9;
    border-radius: 4px;
}

.breadcrumb-separator {
    color: #a0aec0;
    display: flex;
    align-items: center;
    margin: 0 2px;
}

.breadcrumb-separator svg {
    width: 14px;
    height: 14px;
}





/* Responsivo */
@media (max-width: 768px) {

    .features{
        margin-top: -44px;
    }

    .features-grid-learn {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(138px, 100%), 1fr));
        gap: 0.5rem;
        margin-bottom: 3rem;
        margin-top: 1rem;
    }

    .calc-origin {
        border: 0;
        border-radius: 5px;
    }
    
    .features-grid-learn .feature-card-learn:nth-child(2) span {
        display: none;
    }

    .feature-card-learn span {
        top: -54px;
        left: 22px;
    }
       
    .feature-card-learn span > .fas {
        font-size: 19px;
    }

    .feature-card-learn {
        border-radius: 5px;
        padding: 6px;
    }


    .breadcrumb {
        padding: 12px 0;
        margin-bottom: 20px;
    }
    
    .breadcrumb-inner {
        padding: 0 12px;
        gap: 4px;
    }
    
    .breadcrumb-item,
    .breadcrumb-current {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .breadcrumb-separator svg {
        width: 12px;
        height: 12px;
    }
}



/* Estilo do menu hamburguer compatível */
.hamburger-menu {
    touch-action: manipulation; /* Melhora a resposta ao toque */
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-nav {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Estado mobile */
@media (max-width: 768px) {
    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    .main-nav:not(.active) {
        transform: translateX(100%);
        opacity: 0;
    }

    #tools.tools-section {
        top: 16px;
    }
}


/* Media Queries */
@media (max-width: 768px) {

    .cta-button{
        font-size: 19px;
    }

    input,
    select,
    textarea {
      font-size: 16px;
    }

    .nav-menu li a{
        padding-right: none;
     }

    .hero {
        padding: 2rem 0;
        border-radius: 0;
        margin-top: 1rem;
    }
    
    .tab-buttons {
        gap: 0.7rem;
    }
    
      
    .control-group {
        max-width: 100%;
    }
    
    .history-item {
        flex-direction: column;
    }

   
    .main-nav {
        width: 250px;
    }

    .nav-link {
        padding: 12px 15px;
    }

    .tab-btn, .calc-btn {
        padding: 12px 15px;
        min-width: 44px; /* Tamanho mínimo recomendado para toque */
        min-height: 44px;
    }
    
    .tab-buttons .tab-btn{
        width: 82%;
    }

    .number-ball {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2rem;
    }

    .tab-content.modal-active {
        width: 95%;
        padding: 15px;
    }

    .modal-header {
        padding-right: 65px;
       
    }

}

@media (max-width: 480px) {
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
   
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .logo-img {
        width: 33px;
       
    }
    

    .modal-container {
        width: 95%;
        /* Ajuste para garantir que o modal-content tenha posição relativa */
        position: relative;

    }
    
    .modal-content {
        padding: 1rem;
        height: 76%;
    }

     /* Ajustes para o menu em mobile */
    .header-container .logo.header img {
        width: 33px;
    }

    .logo.header {
        position: relative;
        top: 0px;
        right: 1.3%;
    }

    .main-header {
        height: 89px;
    }
    
    .hamburger-menu {
        width: 25px;
        height: 20px;
        position: relative;
        top: 0px;
    }
    
    .hamburger-line {
        height: 2px;
    }
    .modal-header {
        padding-right: 45px;
       
    }

    .tools-section {
        padding: 1px;
        margin-bottom: 1px;
       
    }

   

    
}

/* Message Box Styles */
.message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
    font-size: 16px;
    
}

.message-box.show {
    opacity: 1;
    top: 30px;
}

.message-box.success {
    background-color: #d4edda;
    color:rgb(227, 233, 229);
    border-left: 5px solidrgb(234, 156, 0);
    background:rgb(34, 114, 157);
}

.message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.message-box.warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

.message-box.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

.message-box .message-content {
    flex: 1;
    padding-right: 15px;
}

.message-box .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.message-box .close-btn:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .message-box {
        width: 95%;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .message-box .close-btn {
        font-size: 18px;
    }
}




#shipping-results  .result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}



#shipping-results .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#shipping-results .result-item strong {
    font-weight: 600;
    text-align: left;
    flex: 1;
}

#shipping-results  .result-item .result-value {
    text-align: right;
    flex: 1;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

#shipping-results  .result-item.highlight {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

#shipping-results  .result-item.highlight strong {
    color: #2a6496;
}

#shipping-results  .result-item.highlight .result-value {
    color: #2a6496;
    font-size: 1.1em;
}

hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 10px 0;
}

.loan-result{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

.loan-result .result-item strong {
    font-weight: 600;
    text-align: left;
    flex: 1;
}

.loan-result .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.loan-result .result-item .result-value {
    text-align: right;
    flex: 1;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.loan-result .result-item.highlight {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
}

.loan-result  .result-item.highlight strong {
    color: #2a6496;
}

.loan-result  .result-item.highlight .result-value {
    color: #2a6496;
    font-size: 1.1em;
}

/* churrasco*/
#barbecue {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /*max-width: 800px;*/
    margin: 0 auto;
  }
  
  #barbecue h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
  }
  
  #barbecue span {
    font-size: 14px;
    color: #666;
    text-align: center;
  }
  
  #barbecue .input-group {
    margin-bottom: 15px;
   
  }
  
  #barbecue .input-group label {
    font-size: 14px;
    color: #555;
  }
  
  #barbecue .form-control {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  #barbecue input[type="checkbox"] {
    margin-right: 8px;
    position: relative;
    top: 24px;
  }
  
  #barbecue input[type="radio"] {
    margin-right: 8px;
    position: relative;
    top: 24px;
  }
  
  #barbecue input[type="number"] {
    width: 100%;
  }
  
  #barbecue button {
    padding: 10px 15px;
    margin: 10px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  #barbecue button.btn-primary {
    background-color: #007bff;
    color: white;
  }
  
  #barbecue button.btn-secondary {
    background-color: #6c757d;
    color: white;
  }
  
  #barbecue button:hover {
    opacity: 0.9;
  }
  
  #barbecue .result-container {
    margin-top: 20px;
  }
  
  #barbecue .resultcltchurrasco {
    background-color: #fbf1cd;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
  }
  
  #barbecue .resultcltchurrasco h3 {
    color: #007bff;
  }
  
  #barbecue .resultcltchurrasco p {
    font-size: 13px;
    margin: 5px 0;
    margin-bottom: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  
  #barbecue .resultcltchurrasco ul {
    list-style-type: none;
    padding: 0;
  }
  
  #barbecue .resultcltchurrasco ul li {
    margin: 5px 0;
  }
  
  /* Responsividade */
  @media (max-width: 768px) {
    /*#barbecue .input-group {
      margin-bottom: 12px;
    }*/

    #barbecue .input-group {
        margin-bottom: 12px;
        justify-content: space-between;
        margin-bottom: 16px;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        line-height: 27px !important;
    }

    #barbecue input[type="checkbox"], #barbecue input[type="radio"] {
        position: relative;
        top: 24px;
    }

    #barbecue .form-control {
      padding: 10px;
    }
  
    #barbecue h2 {
      font-size: 24px;
    }
  
    #barbecue button {
      width: 100%;
    }
  }

  @media screen and (max-width: 768px) {
    #barbecue input,
    #barbecue select,
    #barbecue textarea {
      font-size: 16px; /* Tamanho mínimo de fonte para evitar zoom */
    }
  }


