:root{
    --bg-main: #190b2d;
    --bg-section: #2C1B74;
    --bg-card: #241347;
    --bg-card-soft: #21103f;
    --accent: #8e85ff;
    --accent-strong: #4d3dc7;
    --text-light: #ffffff;
    --text-muted: #cfcdf6;
    --border-color: rgba(142, 133, 255, 0.35);
    --shadow-main: 0 12px 30px rgba(0, 0, 0, 0.25);
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: "Barlow", Arial, Helvetica, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img{
    max-width: 100%;
    display: block;
}

section{
    padding: 80px 0;
}

a{
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
}

a:hover{
    color: var(--text-light);
}

ul{
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.container{
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-tag{
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    background-color: rgba(142, 133, 255, 0.08);
}

#Head,
#Funcionabilidade{
    background-color: rgba(20, 12, 129, 0.22);
    color: #ffffff;
}

.section-heading{
    max-width: 760px;
    margin-bottom: 40px;
}

.section-heading h2{
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-heading p{
    color: var(--text-muted);
}

.site-header{
    background-color: rgba(44, 27, 116, 0.92);
    border-bottom: 2px solid #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.logo,
.footer-logo{
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo span,
.footer-logo span{
    color: var(--accent);
}

.navbar-brand{
    padding: 0;
    margin-right: 0;
}

.nav-list{
    gap: 8px;
}

.nav-list .nav-link,
#item-auth a{
    color: var(--text-light);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
}

.nav-list .nav-link:hover,
#item-auth a:hover,
.navbar-nav .nav-link.active{
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.06);
}

.custom-toggler{
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.custom-toggler:focus{
    box-shadow: 0 0 0 0.2rem rgba(142, 133, 255, 0.2);
}

.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.3s;
}

.btn-primary{
    background-color: var(--accent-strong);
    color: var(--text-light);
    border-color: var(--accent-strong);
}

.btn-primary:hover{
    background-color: var(--accent);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-secondary{
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-secondary:hover{
    background-color: var(--accent);
    color: var(--text-light);
}

.btn-outline-light{
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--text-light);
}

.btn-outline-light:hover{
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

.hero{
    min-height: 85vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(142, 133, 255, 0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(77, 61, 199, 0.20), transparent 30%),
        linear-gradient(rgba(10, 5, 20, 0.88), rgba(10, 5, 20, 0.84)),
        url("images/setup-hero.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hero-text h1{
    font-size: 3.3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description{
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 680px;
    margin-bottom: 28px;
}

.hero-actions{
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.highlight-card{
    width: 100%;
    background: linear-gradient(180deg, rgba(44, 27, 116, 0.95), rgba(25, 11, 45, 0.95));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-main);
}

.highlight-card h2{
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.feature-list{
    display: grid;
    gap: 14px;
}

.feature-list li{
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.04);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    color: var(--text-muted);
}

.info-card,
.filter-card,
.advantage-card,
.step-card,
.result-card{
    background-color: var(--bg-card-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-main);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card h3,
.filter-card h3,
.advantage-card h3,
.step-card h3,
.result-card h3{
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.info-card p,
.filter-card p,
.advantage-card p,
.step-card p,
.result-card p{
    color: var(--text-muted);
}

.info-card:hover,
.filter-card:hover,
.advantage-card:hover,
.step-card:hover,
.result-card:hover,
.highlight-card:hover{
    transform: translateY(-5px);
    border-color: var(--accent);
}

.how-it-works{
    background:
        radial-gradient(circle at top left, rgba(142, 133, 255, 0.16), transparent 30%),
        radial-gradient(circle at bottom right, rgba(77, 61, 199, 0.18), transparent 28%),
        linear-gradient(rgba(10, 5, 20, 0.78), rgba(10, 5, 20, 0.95)),
        url("images/setup-geral.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.step-card{
    position: relative;
    overflow: hidden;
}

.step-number{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(142, 133, 255, 0.18);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 18px;
}

.filters-section,
.simulator-section,
.advantages-section,
.result-section{
    border-top: 1px solid rgba(142, 133, 255, 0.20);
}

.simulator-section{
    background:
        radial-gradient(circle at top left, rgba(142, 133, 255, 0.12), transparent 35%),
        linear-gradient(rgba(18, 10, 36, 0.96), rgba(18, 10, 36, 0.96));
}

.interactive-form,
.summary-panel{
    background: linear-gradient(180deg, rgba(44, 27, 116, 0.95), rgba(25, 11, 45, 0.95));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-main);
}

.form-label{
    font-weight: 600;
    color: var(--text-light);
}

.form-control,
.form-select{
    background-color: rgba(5, 2, 16, 0.92);
    border: 1px solid rgba(142, 133, 255, 0.5);
    color: var(--text-light);
    min-height: 52px;
    border-radius: 14px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-control::placeholder,
.form-select{
    color: rgba(207, 205, 246, 0.85);
}

.form-control:focus,
.form-select:focus{
    background-color: rgba(5, 2, 16, 0.98);
    color: var(--text-light);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(142, 133, 255, 0.25);
}

.form-select option{
    background-color: #12081f;
    color: #ffffff;
}

.form-control.is-invalid,
.form-select.is-invalid{
    border-color: #ff7d7d;
}

.form-control.is-valid,
.form-select.is-valid{
    border-color: #5cc489;
}

.invalid-feedback,
.field-helper small{
    color: var(--text-muted);
}

.details-field{
    min-height: 130px;
    resize: vertical;
}

.custom-switch{
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.custom-switch .form-check-input{
    width: 3rem;
    height: 1.6rem;
    margin-top: 0;
    margin-left: 0;
    flex-shrink: 0;
    cursor: pointer;
    border-color: rgba(142, 133, 255, 0.45);
    background-color: rgba(5, 2, 16, 0.92);
}

.custom-switch .form-check-input:checked{
    background-color: var(--accent-strong);
    border-color: var(--accent-strong);
}

.custom-switch .form-check-label{
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0;
}

.summary-label{
    font-weight: 700;
    font-size: 1.05rem;
}

.summary-status{
    color: var(--text-muted);
    font-size: 0.95rem;
}

.custom-progress{
    height: 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.custom-progress .progress-bar{
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 0.4s ease;
}

.summary-list{
    display: grid;
    gap: 12px;
}

.summary-list li{
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.04);
    border-left: 4px solid var(--accent);
}

.summary-list span{
    color: var(--text-muted);
}

.summary-list strong{
    color: var(--text-light);
    text-align: right;
}

.alert-success{
    background-color: rgba(28, 84, 45, 0.35);
    color: #d4f3dd;
    border: 1px solid rgba(92, 196, 137, 0.4);
}

.alert-danger{
    background-color: rgba(115, 24, 24, 0.35);
    color: #ffd9d9;
    border: 1px solid rgba(255, 125, 125, 0.4);
}

.advantages-section{
    background:
        radial-gradient(circle at top left, rgba(142, 133, 255, 0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(77, 61, 199, 0.20), transparent 30%),
        linear-gradient(rgba(10, 5, 20, 0.88), rgba(10, 5, 20, 0.84));
}

.result-section{
    min-height: 75vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(142, 133, 255, 0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(77, 61, 199, 0.20), transparent 30%),
        linear-gradient(rgba(10, 5, 20, 0.88), rgba(10, 5, 20, 0.84)),
        url("images/setup-info.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.result-text h2{
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.result-text p{
    color: var(--text-muted);
    max-width: 680px;
}

.result-card{
    background: linear-gradient(180deg, rgba(36, 19, 71, 0.95), rgba(44, 27, 116, 0.95));
}

.result-list{
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.result-list li{
    color: var(--text-muted);
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
}

.cta-section{
    padding-top: 30px;
    padding-bottom: 90px;
}

.cta-box{
    text-align: center;
    background: linear-gradient(180deg, rgba(44, 27, 116, 0.95), rgba(25, 11, 45, 0.95));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px 24px;
    box-shadow: var(--shadow-main);
}

.cta-box h2{
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-box p{
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 24px;
}

.site-footer{
    background-color: var(--bg-section);
    border-top: 2px solid #000000;
    padding: 30px 0;
}

.footer-content{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.site-footer h3{
    margin-bottom: 12px;
    color: var(--accent);
}

.site-footer p{
    color: var(--text-muted);
    margin-bottom: 8px;
}

.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-up {
    transform: translateY(40px);
}

.fade-down {
    transform: translateY(-40px);
}

.fade-left {
    transform: translateX(40px);
}

.fade-right {
    transform: translateX(-40px);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

@media (max-width: 991.98px){
    .hero{
        min-height: auto;
        padding: 70px 0;
    }

    .hero-text h1{
        font-size: 2.6rem;
    }

    .nav-list{
        gap: 2px;
        margin-top: 14px;
    }

    .nav-list .nav-link,
    #item-auth a{
        display: block;
        padding: 12px 14px;
    }
}

@media (max-width: 767.98px){
    section{
        padding: 64px 0;
    }

    .hero-text h1,
    .result-text h2,
    .section-heading h2,
    .cta-box h2{
        font-size: 2rem;
    }

    .hero-actions,
    .form-actions{
        flex-direction: column;
        align-items: stretch;
    }

    .highlight-card,
    .interactive-form,
    .summary-panel,
    .info-card,
    .filter-card,
    .advantage-card,
    .step-card,
    .result-card,
    .cta-box{
        padding: 22px;
    }

    .summary-list li{
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-list strong{
        text-align: left;
    }

    .footer-content{
        grid-template-columns: 1fr;
    }

    
    .reveal { transition-delay: 0s !important; } 
}

@media (max-width: 575.98px){
    .container{
        width: 92%;
    }

    .hero-text h1{
        font-size: 1.8rem;
    }

    .section-tag{
        font-size: 0.85rem;
    }

    .btn{
        width: 100%;
    }

    .interactive-form,
    .summary-panel{
        padding: 18px;
    }
}
.result-page-section{
    min-height: 78vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(142, 133, 255, 0.20), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(77, 61, 199, 0.24), transparent 30%),
        linear-gradient(rgba(10, 5, 20, 0.94), rgba(10, 5, 20, 0.96)),
        url("images/setup-hero.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.loading-card,
.result-shell{
    width: min(100%, 1120px);
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(44, 27, 116, 0.94), rgba(25, 11, 45, 0.96));
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: var(--shadow-main);
    padding: 34px;
}

.loading-card{
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-card h1{
    font-size: 2rem;
    margin-top: 28px;
    margin-bottom: 12px;
}

.loading-card p,
.result-main-text{
    color: var(--text-muted);
    max-width: 760px;
}

.magic-spinner{
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 7px solid rgba(255, 255, 255, 0.10);
    border-top-color: var(--accent);
    border-right-color: rgba(142, 133, 255, 0.55);
    animation: rigmatch-spin 0.9s linear infinite;
    box-shadow: 0 0 36px rgba(142, 133, 255, 0.38);
    position: relative;
}

.magic-spinner::after{
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--accent-strong);
    animation: rigmatch-spin 1.25s linear infinite reverse;
}

@keyframes rigmatch-spin{
    to{ transform: rotate(360deg); }
}

.result-hero-card,
.result-request-card,
.hardware-panel,
.result-info-box{
    background-color: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(142, 133, 255, 0.28);
    border-radius: 22px;
    padding: 24px;
}

.result-hero-card{
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
}

.result-hero-card h1{
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 16px;
}

.result-id-card{
    min-width: 230px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(142, 133, 255, 0.15), rgba(5, 2, 16, 0.42));
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    word-break: break-word;
}

.result-id-card span,
.request-item span,
.performance-item span{
    color: var(--text-muted);
    font-size: 0.9rem;
}

.result-id-card strong{
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 8px;
}

.result-request-card h2,
.hardware-panel h2,
.result-info-box h2{
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.request-grid,
.performance-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.request-item,
.performance-item{
    background-color: rgba(5, 2, 16, 0.58);
    border: 1px solid rgba(142, 133, 255, 0.22);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.request-item strong,
.performance-item strong{
    color: var(--text-light);
}

.hardware-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hardware-card{
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: flex-start;
    background: rgba(5, 2, 16, 0.50);
    border: 1px solid rgba(142, 133, 255, 0.25);
    border-radius: 20px;
    padding: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.hardware-card:hover{
    transform: translateY(-3px);
    border-color: var(--accent);
}

.component-icon{
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(142, 133, 255, 0.22), rgba(77, 61, 199, 0.18));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: inset 0 0 20px rgba(142, 133, 255, 0.10);
}

.hardware-card h3{
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.hardware-card strong{
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
}

.hardware-card p,
.result-info-box p{
    color: var(--text-muted);
    margin-bottom: 0;
}

.result-info-box h3{
    color: var(--accent);
    font-size: 1.05rem;
    margin-top: 18px;
    margin-bottom: 8px;
}

.result-actions{
    justify-content: center;
}

@media print{
    .site-header,
    .site-footer,
    .result-actions{
        display: none !important;
    }

    body,
    .result-page-section{
        background: #ffffff !important;
        color: #111111 !important;
    }

    .result-shell,
    .result-hero-card,
    .result-request-card,
    .hardware-panel,
    .result-info-box,
    .hardware-card,
    .request-item,
    .performance-item{
        background: #ffffff !important;
        color: #111111 !important;
        border-color: #cccccc !important;
        box-shadow: none !important;
    }

    p,
    span,
    strong,
    h1,
    h2,
    h3{
        color: #111111 !important;
    }
}

@media (max-width: 991.98px){
    .result-hero-card{
        flex-direction: column;
    }

    .result-id-card{
        min-width: 0;
    }

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

@media (max-width: 767.98px){
    .loading-card,
    .result-shell{
        padding: 22px;
        border-radius: 22px;
    }

    .result-hero-card h1{
        font-size: 1.8rem;
    }

    .request-grid,
    .performance-grid{
        grid-template-columns: 1fr;
    }

    .hardware-card{
        grid-template-columns: 1fr;
    }

    .component-icon{
        width: 52px;
        height: 52px;
    }
}


.admin-panel{
    background: linear-gradient(180deg, rgba(44, 27, 116, 0.94), rgba(25, 11, 45, 0.96));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-main);
    padding: 28px;
}

.admin-create-form{
    background-color: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(142, 133, 255, 0.25);
    border-radius: 22px;
    padding: 22px;
}

.form-text{
    color: var(--text-muted);
}

.admin-table-wrap{
    background-color: rgba(5, 2, 16, 0.46);
    border: 1px solid rgba(142, 133, 255, 0.25);
    border-radius: 22px;
    padding: 18px;
}

.admin-table-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-table-head h3{
    margin-bottom: 4px;
    font-size: 1.25rem;
}

.admin-table-head p{
    color: var(--text-muted);
    margin-bottom: 0;
}

.admin-table{
    color: var(--text-light);
    margin-bottom: 0;
    min-width: 980px;
}

.admin-table thead th{
    color: var(--text-muted);
    border-color: rgba(142, 133, 255, 0.18);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-table tbody td{
    color: var(--text-light);
    border-color: rgba(142, 133, 255, 0.12);
    vertical-align: middle;
}

.admin-table tbody tr:hover{
    background-color: rgba(142, 133, 255, 0.06);
}

.admin-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-admin{
    background-color: rgba(142, 133, 255, 0.16);
    border-color: rgba(142, 133, 255, 0.42);
    color: var(--text-light);
}

.badge-on{
    background-color: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.34);
    color: #d1fae5;
}

.badge-off{
    background-color: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.34);
    color: #fee2e2;
}

.admin-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 360px;
}

.btn-sm{
    padding: 8px 10px;
    font-size: 0.82rem;
    border-radius: 8px;
}

.alert{
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-profile-section{
    min-height: 78vh;
}

@media (max-width: 991.98px){
    .admin-panel{
        padding: 20px;
    }

    .admin-actions{
        min-width: 280px;
    }
}
