/* ==================================================
   C-CABOCERTO ENTERPRISE - MONOFÁSICO
   TEMA CLARO / LIMPO / FUTURISTA (revisão estética)
   Paleta consistente com C-Trafo / Conversor / BtuJá / C-CAP
================================================== */

.ccce-wrap-mono {
    --ccce-blue: #0d6dbf;
    --ccce-cyan: #17a9c9;
    --ccce-text: #16283a;
    --ccce-text-dim: #5c7488;
    --ccce-panel: #ffffff;
    --ccce-panel-soft: #f4f9fd;
    --ccce-border: #d9e8f2;
}

.ccce-futuristic-container.ccce-wrap-mono {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: linear-gradient(135deg, #eef5fb 0%, #f7fbfe 50%, #eef5fb 100%);
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0 3rem 0 !important;
}

/* Efeitos de energia (sutis) */
.ccce-wrap-mono .energy-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ccce-wrap-mono .energy-particles::before,
.ccce-wrap-mono .energy-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ccce-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--ccce-cyan);
    opacity: 0.5;
    animation: floatParticleMono 3s infinite;
}

.ccce-wrap-mono .energy-particles::before {
    top: 20%;
    left: 10%;
}

.ccce-wrap-mono .energy-particles::after {
    top: 70%;
    left: 85%;
    animation-delay: 1.5s;
}

@keyframes floatParticleMono {
    0%, 100% { transform: translateY(0); opacity: 0.35; }
    50% { transform: translateY(-40px); opacity: 0.7; }
}

/* Card principal */
#calculadora-cabo-mono .futuristic-card {
    position: relative;
    background: var(--ccce-panel);
    border-radius: 20px;
    padding: 30px;
    margin: 20px;
    z-index: 2;
    box-shadow: 0 4px 30px rgba(13, 109, 191, 0.12);
    border: 1px solid var(--ccce-border);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#calculadora-cabo-mono .futuristic-card:hover {
    box-shadow: 0 8px 40px rgba(13, 109, 191, 0.18);
    transform: translateY(-3px);
}

/* Borda neon (sutil) */
#calculadora-cabo-mono .neon-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--ccce-cyan), var(--ccce-blue), var(--ccce-cyan));
    border-radius: 22px;
    opacity: 0;
    z-index: -1;
    animation: neonPulseMono 3s infinite;
}

@keyframes neonPulseMono {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.12; }
}

/* Núcleo de energia */
#calculadora-cabo-mono .energy-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(23, 169, 201, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: energyPulseMono 2s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes energyPulseMono {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.55; }
}

/* Header */
#calculadora-cabo-mono .header-futuristic {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

#calculadora-cabo-mono .header-futuristic h4 {
    font-size: 32px;
    color: var(--ccce-blue);
    margin: 0;
}

#calculadora-cabo-mono .header-futuristic h5 {
    font-size: 16px;
    color: var(--ccce-text-dim);
    margin: 10px 0 0 0;
    letter-spacing: 1px;
}

#calculadora-cabo-mono .energy-bar {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ccce-cyan), transparent);
    margin-top: 15px;
}

/* Botões */
#calculadora-cabo-mono .futuristic-button {
    position: relative;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--ccce-blue), var(--ccce-cyan));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

#calculadora-cabo-mono .futuristic-button .button-text {
    position: relative;
    z-index: 2;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
}

#calculadora-cabo-mono .futuristic-button .button-energy {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.5s;
}

#calculadora-cabo-mono .futuristic-button:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(13, 109, 191, 0.35);
}

#calculadora-cabo-mono .futuristic-button:hover .button-energy {
    left: 100%;
}

#calculadora-cabo-mono .futuristic-button:focus-visible {
    outline: 3px solid var(--ccce-cyan);
    outline-offset: 2px;
}

#calculadora-cabo-mono .reset-button {
    background: linear-gradient(135deg, #d64545, #e37373);
}

#calculadora-cabo-mono .secondary-button {
    background: linear-gradient(135deg, #1f9d5c, #4cbf82);
}

/* Inputs */
#calculadora-cabo-mono .futuristic-input-group {
    background: var(--ccce-panel-soft);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--ccce-border);
}

#calculadora-cabo-mono .futuristic-input-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--ccce-blue);
    margin-bottom: 10px;
}

#calculadora-cabo-mono .futuristic-select,
#calculadora-cabo-mono .futuristic-input {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--ccce-border);
    border-radius: 10px;
    color: var(--ccce-text);
    font-size: 14px;
    text-align: center;
}

#calculadora-cabo-mono .futuristic-select option {
    text-align: center;
}

#calculadora-cabo-mono .futuristic-input::placeholder {
    text-align: center;
    color: #9db3c4;
}

#calculadora-cabo-mono .futuristic-select:hover,
#calculadora-cabo-mono .futuristic-input:hover,
#calculadora-cabo-mono .futuristic-select:focus-visible,
#calculadora-cabo-mono .futuristic-input:focus-visible {
    border-color: var(--ccce-cyan);
    box-shadow: 0 0 0 3px rgba(23, 169, 201, 0.15);
    outline: none;
}

#calculadora-cabo-mono .input-energy-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ccce-cyan), transparent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

#calculadora-cabo-mono .futuristic-input:focus + .input-energy-line {
    transform: scaleX(1);
}

/* TABELA */
#calculadora-cabo-mono #tabela-container-mono {
    margin-top: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    position: relative;
    z-index: 2;
}

#calculadora-cabo-mono #tabela-container-mono::-webkit-scrollbar {
    height: 8px;
}

#calculadora-cabo-mono #tabela-container-mono::-webkit-scrollbar-thumb {
    background: var(--ccce-border);
    border-radius: 20px;
}

#calculadora-cabo-mono table {
    min-width: 1000px;
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
}

#calculadora-cabo-mono th {
    background: linear-gradient(135deg, rgba(13, 109, 191, 0.12), rgba(23, 169, 201, 0.08));
    color: var(--ccce-blue);
    padding: 12px;
    font-weight: bold;
    border-bottom: 2px solid var(--ccce-border);
    font-size: 14px;
    text-align: center;
}

#calculadora-cabo-mono td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--ccce-border);
    color: var(--ccce-text);
}

#calculadora-cabo-mono tr:hover {
    background: rgba(23, 169, 201, 0.06);
}

#calculadora-cabo-mono input[readonly] {
    background: var(--ccce-panel-soft);
    border-color: var(--ccce-border);
    color: var(--ccce-text);
    text-align: center;
    width: auto;
    min-width: 60px;
}

#calculadora-cabo-mono table select,
#calculadora-cabo-mono table input {
    padding: 8px;
    border-radius: 5px;
    background: #ffffff;
    border: 1px solid var(--ccce-border);
    color: var(--ccce-text);
    text-align: center;
}

#calculadora-cabo-mono table input::placeholder {
    text-align: center;
    color: #9db3c4;
}

/* Grid de perguntas */
#calculadora-cabo-mono .perguntas-linha-mono {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Mobile */
@media(max-width: 768px) {
    #calculadora-cabo-mono .futuristic-card {
        padding: 15px;
        margin: 10px;
    }

    #calculadora-cabo-mono .header-futuristic h4 {
        font-size: 22px;
    }

    #calculadora-cabo-mono .header-futuristic h5 {
        font-size: 12px;
    }

    #calculadora-cabo-mono .futuristic-button {
        padding: 10px 20px;
    }

    #calculadora-cabo-mono .futuristic-button .button-text {
        font-size: 12px;
    }

    #calculadora-cabo-mono .perguntas-linha-mono {
        grid-template-columns: 1fr;
    }
}

/* BADGE ENTERPRISE — escopado ao card mono, evita colisão com o trifásico */
#calculadora-cabo-mono .ccce-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--ccce-blue), var(--ccce-cyan));
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 2px 10px rgba(13, 109, 191, 0.25);
}

/* ==================================================
   RODAPÉ COPYRIGHT - MONOFÁSICO
================================================== */

#calculadora-cabo-mono .ccce-footer {
    margin-top: 35px;
    padding: 20px 15px 15px;
    position: relative;
    text-align: center;
}

#calculadora-cabo-mono .footer-energy-line {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ccce-cyan), var(--ccce-border), var(--ccce-cyan), transparent);
    margin: 0 auto 20px auto;
}

#calculadora-cabo-mono .ccce-copyright {
    font-size: 12px;
    color: var(--ccce-text-dim);
    text-align: center;
    margin: 0;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    transition: color 0.3s ease;
}

#calculadora-cabo-mono .ccce-copyright:hover {
    color: var(--ccce-blue);
}

#calculadora-cabo-mono .footer-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(23, 169, 201, 0.15), transparent);
    filter: blur(10px);
    pointer-events: none;
}

/* Espaçador real — evita o card colar no rodapé do site quando o
   tema zera a margem do último elemento do conteúdo */
.ccce-spacer {
    display: block;
    width: 100%;
    height: 1px;
}

/* Acessibilidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
    .ccce-wrap-mono *,
    .ccce-wrap-mono *::before,
    .ccce-wrap-mono *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
