/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a6491;
    --primary-dark: #2c3e50;
    --primary-light: #5b7bb4;
    --secondary-color: #3498db;
    --accent-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --radius: 10px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER E MENU ===== */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 5px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

nav ul li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

nav ul li a:hover i {
    transform: scale(1.2);
}

nav ul li a.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: var(--transition);
    transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 80%;
}

.new-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

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

    50% {
        transform: scale(1.1);
    }

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

nav ul li.highlight a {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

nav ul li.highlight a:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

/* ===== CONTEÚDO PRINCIPAL ===== */
main {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

.intro {
    text-align: center;
    margin-bottom: 40px;
}

.intro h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px;
}

.funcionalidades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.func-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.func-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 100, 145, 0.1), transparent);
    transition: left 0.6s ease;
}

.func-card:hover::before {
    left: 100%;
}

.func-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.func-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.func-card:hover i {
    transform: scale(1.1);
    color: var(--primary-light);
}

.func-card h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.func-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== CALCULADORAS E FORMULÁRIOS ===== */
.calculadora h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-weight: 700;
}

.calculadora-container {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 100, 145, 0.1);
}

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

.contador-caracteres {
    display: block;
    text-align: right;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.contador-caracteres.warning {
    color: var(--warning-color);
}

.contador-caracteres.danger {
    color: var(--danger-color);
    font-weight: bold;
}

.resultado {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.resultado h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

/* ===== PÁGINAS DE FUNCIONALIDADES ===== */
.pagina-funcionalidade {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.conteudo-principal {
    flex: 1;
    min-width: 0;
}

.imagens-esquerda,
.imagens-direita {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
    flex-shrink: 0;
}

.imagem-lateral {
    width: 300px;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.imagem-lateral:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.imagem-lateral a {
    display: block;
    width: 100%;
    height: 100%;
}

.imagem-lateral img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CALCULADORA DE ÁREAS ===== */
.areas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.menu-areas {
    flex: 1;
    min-width: 250px;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.formas-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.forma-btn {
    padding: 12px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
}

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

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

.forma-form {
    display: none;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.forma-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

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

/* ===== GERADOR DE META TAGS ===== */
.meta-tags-code {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.meta-tags-code pre {
    margin: 0;
    white-space: pre-wrap;
}

.preview-seo {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.google-preview {
    max-width: 600px;
    font-family: Arial, sans-serif;
}

.google-title {
    color: #1a0dab;
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: normal;
}

.google-url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 5px;
}

.google-description {
    color: #545454;
    font-size: 14px;
    line-height: 1.4;
}

.botoes-acoes {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.botoes-acoes button {
    flex: 1;
    min-width: 140px;
}

/* ===== SORTEADOR DE NÚMEROS ===== */
.numeros-sorteados {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.numero-sorteado {
    background: var(--primary-color);
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 50px;
    text-align: center;
    transition: var(--transition);
}

.numero-sorteado:hover {
    transform: scale(1.1);
    background: var(--primary-light);
}

/* ===== EDITOR DE CÓDIGO ===== */
.editor-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

#conteudo {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.arquivos-salvos {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.arquivos-salvos h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.arquivos-salvos ul {
    list-style: none;
}

.arquivos-salvos li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.arquivos-salvos li:hover {
    background: var(--bg-color);
    padding-left: 10px;
}

.arquivos-salvos li:last-child {
    border-bottom: none;
}

.arquivos-salvos a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.arquivos-salvos a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.arquivos-salvos span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-top: 5px;
}

/* ===== RODAPÉ ===== */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.cotacoes h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.cotacoes-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.cotacao-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 140px;
    transition: var(--transition);
}

.cotacao-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.info-rodape {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contato,
.estatisticas {
    flex: 1;
    min-width: 280px;
    margin: 15px;
}

.contato h4,
.estatisticas h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contato a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contato a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.contadores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.contador-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.contador-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.contador-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.contador-item span {
    font-size: 0.9rem;
    margin-bottom: 3px;
    opacity: 0.9;
}

.contador-item strong {
    font-size: 1.2rem;
    font-weight: 600;
}

footer p {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {

    .imagens-esquerda,
    .imagens-direita {
        width: 250px;
    }

    .imagem-lateral {
        width: 250px;
        height: 250px;
    }

    nav ul li a {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav ul.show {
        display: flex;
    }

    .pagina-funcionalidade {
        flex-direction: column;
    }

    .imagens-esquerda,
    .imagens-direita {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        order: 2;
    }

    .imagem-lateral {
        width: 200px;
        height: 200px;
    }

    .editor-container {
        grid-template-columns: 1fr;
    }

    .info-rodape {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .funcionalidades {
        grid-template-columns: 1fr;
    }

    .func-card {
        padding: 25px;
    }

    .intro h1 {
        font-size: 2rem;
    }

    .intro p {
        font-size: 1.1rem;
    }

    .calculadora-container {
        padding: 25px;
    }

    .botoes-acoes {
        flex-direction: column;
    }

    .botoes-acoes button {
        width: 100%;
    }

    .contadores {
        grid-template-columns: repeat(2, 1fr);
    }

    .formas-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .imagens-esquerda,
    .imagens-direita {
        flex-direction: column;
        align-items: center;
    }

    .imagem-lateral {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1/1;
    }

    .contadores {
        grid-template-columns: 1fr;
    }

    .formas-list {
        grid-template-columns: 1fr;
    }

    .cotacoes-container {
        flex-direction: column;
        align-items: center;
    }

    .cotacao-item {
        width: 100%;
        max-width: 200px;
    }
}

/* ===== UTILITÁRIOS ===== */
.alert {
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.sucesso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.erro {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.tablink {
    background: var(--bg-color);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 6px 6px 0 0;
    transition: var(--transition);
    font-weight: 500;
}

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

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

.tabcontent {
    display: none;
    padding: 25px;
    background: var(--bg-white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
}

.tabcontent.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* ===== ANIMAÇÕES ESPECIAIS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.slideIn {
    animation-name: slideIn;
}

.bounce {
    animation-name: bounce;
}

/* ===== ESTADOS DE CARREGAMENTO ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== ACESSIBILIDADE ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Foco visível para teclado */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* CSS DO SITEMAP*/

/* Estilos do gerador de sitemap */
.input-group {
    display: flex;
}

.input-group .form-control {
    flex: 1;
    border-radius: 5px 0 0 5px;
}

.input-group .btn {
    border-radius: 0 5px 5px 0;
}

.configuracoes-sitemap {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.row {
    display: flex;
    gap: 20px;
}

.col-md-6 {
    flex: 1;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

.status-sucesso {
    color: #28a745;
}

.status-erro {
    color: #dc3545;
}
/* Estilos para notificações de conclusão */
.completion-alert {
    position: relative;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    border-left: 5px solid;
}

.completion-alert.alert-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda, #f8fff9);
}

.completion-alert.alert-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da, #fff5f6);
}

.completion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.completion-header i {
    font-size: 24px;
}

.completion-header h4 {
    margin: 0;
    color: #2c3e50;
}

.completion-details {
    margin: 15px 0;
}

.completion-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
}

.completion-stat i {
    color: #4a6491;
    width: 20px;
    text-align: center;
}

.completion-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.completion-actions .btn {
    padding: 8px 15px;
    font-size: 14px;
}

/* Logs com timestamp */
.log-time {
    color: #666;
    font-size: 11px;
    margin-right: 10px;
    font-family: 'Courier New', monospace;
}

.log-message {
    flex: 1;
}

/* Barra de progresso animada */
.progress-fill {
    transition: width 0.5s ease, background-color 0.5s ease;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71);
}

/* Animações para conclusão */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

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

.completion-alert {
    animation: pulse 2s ease-in-out;
}

/* Estados da barra de progresso */
.progress-fill.in-progress {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.progress-fill.completed {
    background: #2ecc71;
    animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .completion-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .completion-actions {
        flex-direction: column;
    }

    .completion-actions .btn {
        width: 100%;
    }
}
/*FIM DO SITEMAP*/