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

:root {
    --bg: #121214;
    --card: #2A2634;
    --accent1: #7852f8;
    --accent2: #43E7AD;
    --accent3: #005d88;
    --muted: #A1A1AA;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
    margin: 0;
    padding: 0;

    background: linear-gradient(
        160deg,
        #121214,
        #573bac,
        #62528a,
        #1d4e3d,
        #2b280d
    );

    background-size: cover;        
    background-repeat: no-repeat;  
    background-attachment: fixed;  

    background-position: center center;

    line-height: 1.6;
}


header {
    padding: 2.25rem 1rem 1rem;
    text-align: center;
}



.header-banner {
    background: linear-gradient(
        160deg,
        #121214,
        #573bac,
        #62528a,
        #1d4e3d,
        #2b280d
    );
    Display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
} 

.tutorial-link {
    Text-decoration: none;
    color: #fff;
    font-weight: bold;
   
} 

.header-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
} 

.logo {
    width: 100%;
    max-width: 35rem; 
    margin: 3rem auto;
    display: block;
    height: auto; 
}


header h1 {
    margin-top: 0.75rem;
    font-size: 1.rem;
    letter-spacing: -0.4px;
    color: #fff;
}

header .subtitle {
    color: var(--muted);
    margin-top: 0.25rem;
}


main {
    max-width: 100rem; 
    width: 90%;
    margin: 2.5rem auto;
}

.card {
    background-image: linear-gradient(90deg, var(--accent1) 0%, var(--accent2) 50%, var(--accent3) 100%);
    border-radius: 12px;
    padding: 4px;
}

.card-inner {
    border-radius: 10px;
    background-color: var(--card);
    padding: 1.5rem 1.25rem;
}

.title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #fff;
}

.lead {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}


.form-top {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.form-top input,
.form-top select {
    flex: 1;
}

input, select {
    all: unset;
    border: 2px solid #9147ff;
    border-radius: 0.5rem;
    padding: 0.675rem;
    font-size: 0.95rem;
    background-color: rgba(0,0,0,0.4);
    color: #fff;
}

.question-field {
    width: 100%;
}


.actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.actions button {
    width: 40%;
}

button,button.ghost{
    border: 0;
    background-image: linear-gradient(245deg, var(--accent1) 0%, var(--accent2) 50%, var(--accent3) 80%);
    padding: 0.675rem;
    margin-right: 0.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.12px;
    transition: all 0.25s;
    
}

button:hover,.header-photo:hover { transform: translateY(-2px); cursor: pointer; }


button.small {
    width: auto;
    padding: 0.45rem 1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
     
}


#result  {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.result-left,
.result-right {
    width: 100%; 
}

.result-left img {
    width: 100%;
     width: 100%;
    max-width: 35rem; 
    margin: 3rem auto;
    display: block;
    height: auto;
    border-radius: 20px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.04);
    
    
}

.img-note {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.4rem;
}

.response {
    background: rgba(0,0,0,0.45);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent2);
    min-height: 12rem;
    overflow: auto;
    width: 100%;
    font-size: 1rem;
    color: #fff;
}

/* Footer */
footer {
    text-align: center;
    color: var(--muted);
    margin: 1.5rem 0;
    font-size: 0.85rem;
}


@keyframes appear {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

.card { animation: appear 600ms ease forwards; }

/* Utilitários */
.hidden { display: none; }
