/* calculadora_cpf_cnpj.css - Estilo para a Calculadora de CPF/CNPJ */
:root {
    --primary-color: #6e48aa;
    --secondary-color: #9d50bb;
    --accent-color: #4776E6;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --neon-effect: 0 0 10px rgba(110, 72, 170, 0.8), 0 0 20px rgba(157, 80, 187, 0.6);
    --cyber-green: #00ff9d;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--light-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between; /* Distribute space to push footer down */
    align-items: center; /* Center content horizontally */
}

.content-wrap {
    flex: 1;
    max-width: 800px; /* Max width for content */
    width: 100%; /* Ensure it takes full width within max-width */
    padding: 2rem 1rem; /* Add some padding for smaller screens */
    display: flex; /* Use flex to center inner elements if needed */
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text within the content wrap */
}

h1.titulo-neon {
    color: var(--cyber-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
    margin-bottom: 2rem; /* Added margin for spacing */
}

h1.titulo-neon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyber-green), transparent);
}

.box-cyber {
    background-color: rgba(26, 26, 46, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(110, 72, 170, 0.3);
    width: 100%; /* Ensure it takes full width of its parent */
    max-width: 500px; /* Max width for the form box */
    margin: 0 auto; /* Center the box */
}

.form-control {
    background-color: rgba(26, 26, 46, 0.8);
    border: 1px solid var(--primary-color);
    color: var(--light-color);
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%; /* Ensure form controls take full width */
}

.form-control:focus {
    background-color: rgba(26, 26, 46, 0.9);
    border-color: var(--cyber-green);
    box-shadow: var(--neon-effect);
    color: var(--light-color);
    outline: none; /* Remove default outline */
}

.form-label {
    color: var(--cyber-green);
    font-weight: 500;
    margin-bottom: 8px;
    display: block; /* Ensure label takes full line */
    text-align: left; /* Align label text to the left */
}

.btn-cyber {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%; /* Full width button */
}

.btn-cyber:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    box-shadow: var(--neon-effect);
    transform: translateY(-2px);
    color: white; /* Ensure text color remains white on hover */
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

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

.alert {
    border-radius: 5px;
    padding: 15px;
    margin-top: 1rem;
}

.alert-success {
    background-color: rgba(0, 255, 157, 0.1);
    color: var(--cyber-green);
    border: 1px solid var(--cyber-green);
}

.alert-danger {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.btn-outline-cyber {
    color: var(--cyber-green);
    border: 1px solid var(--cyber-green);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-outline-cyber:hover {
    background-color: rgba(0, 255, 157, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
    color: var(--cyber-green);
}


/* Footer Cyber */
.cyber-footer-qr {
    background-color: rgba(26, 26, 46, 0.9);
    padding: 2rem 0;
    position: relative;
    border-top: 1px solid var(--primary-color);
    width: 100%; /* Ensure footer spans full width */
}

.cyber-footer-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cyber-footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.cyber-footer-text {
    color: #a1a1c2;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cyber-footer-bottom {
    position: relative;
    z-index: 2;
}

.cyber-footer-copyright {
    color: #a1a1c2;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.cyber-highlight {
    color: var(--cyber-green);
    font-weight: 600;
}

.cyber-footer-cta {
    display: inline-block;
    color: var(--cyber-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid var(--cyber-green);
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.cyber-footer-cta:hover {
    background-color: rgba(0, 255, 157, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
    transform: translateY(-2px);
}

.cyber-footer-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 157, 0.05) 50%,
        transparent 100%
    );
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Responsividade */
@media (max-width: 768px) {
    .content-wrap {
        padding: 1.5rem 1rem;
    }
    
    h1.titulo-neon {
        font-size: 1.8rem;
        padding-bottom: 10px;
    }

    h1.titulo-neon::after {
        width: 80px;
    }
    
    .form-control {
        padding: 10px 12px;
    }

    .box-cyber {
        padding: 1.5rem;
    }

    .cyber-footer-qr {
        padding: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    h1.titulo-neon {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .box-cyber {
        padding: 1rem;
    }

    .cyber-footer-text,
    .cyber-footer-copyright,
    .cyber-footer-cta {
        font-size: 0.8rem;
    }

    .cyber-footer-cta {
        padding: 6px 12px;
    }
}
/* Footer Cyber */
.cyber-footer-qr {
    background-color: rgba(26, 26, 46, 0.9);
    padding: 2rem 0;
    position: relative;
    border-top: 1px solid var(--primary-color);
    width: 100%;
    /* Added to center content horizontally within the footer */
    display: flex;
    flex-direction: column;
    align-items: center; /* This will center the grid and bottom sections */
}

.cyber-footer-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Added to limit width and center the grid content */
    max-width: 800px; /* Adjust this value if you want it wider or narrower */
    width: 100%;
    text-align: center;
}

.cyber-footer-bottom {
    position: relative;
    z-index: 2;
    /* Added to limit width and center the bottom content */
    max-width: 800px; /* Match max-width of cyber-footer-grid for consistency */
    width: 100%;
    text-align: center; /* Ensure text is centered */
}