/* Ícones */
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-straight/css/uicons-regular-straight.css');

button>i {
    font-size: 2em;
}

.icon-square {
    font-size: 25px;
    width: 35px;
    height: 35px;
    line-height: 25px;
    display: inline-block;
    text-align: center;
}

.fi-rs-angle-small-down,
.fi-rs-angle-small-right {
    line-height: 40px;
}

.fi-rs-digital-key {
    color: var(--azul);
}

/* Temas */
.tema-escuro {
    color: rgb(200, 200, 200);
    background-color: rgb(12, 12, 22);
    transition: color 0.3s;
    transition: background-color 0.3s;
}

.tema-claro {
    background-color: var(--branco);
    color: black;
    transition: color 0.3s;
    transition: background-color 0.3s;
}

/* Paleta de cores do projeto e Variáveis da Página Inicial */
:root {
    /* Paleta Original */
    --azul-escuro: #07183c;
    --azul: #1548b7;
    --azul-claro: #5b89ec;
    --ciano: #1abbdf;
    --cinza: #d1d4e0;
    --cinza-claro: #dfe5f1;
    --cinza-escuro: #bcbec9;
    --branco: #F5F8FA;
    --preto: #000000;
    --texto-paragrafo: #4a5568;

    --bg-main: #f8fafc; /* Cinza muito claro para o fundo geral */
    --bg-secondary: #ffffff; /* Branco puro para cartões e seções de destaque */
    --bg-tertiary: #f1f5f9; /* Cinza claro para rodapé e áreas de apoio */
    
    --text-primary: #1e293b; /* Cinza escuro (quase preto) para texto principal */
    --text-secondary: #475569; /* Cinza médio para parágrafos e textos de apoio */
    
    --primary-color: #2563eb; /* Azul vibrante (um pouco mais escuro que o tema dark para contraste) */
    --primary-hover: #1d4ed8;
    
    --accent-color: #059669; /* Verde esmeralda para botões secundários */
    --border-color: #e2e8f0; /* Cor sutil para bordas */
    
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Contêiners */
body,
html {
    margin: 0;
}

body {
    background-color: var(--branco);
    background-repeat: repeat;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    text-align: justify;
}

/* Header Principal */
header {
    background: linear-gradient(to right, var(--primary-hover), var(--primary-color));
    width: 100%;
    min-height: 80px;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Área da Marca (Logo + Título) */
#site-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

#site-brand h1 {
    color: var(--bg-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

#logo {
    height: 50px !important;
    width: auto;
}

/* Navegação (Menu) */
nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--bg-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

/* Efeitos de Interação */
nav a:hover {
    color: var(--bg-tertiary);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--bg-secondary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Responsividade */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
        gap: 1rem;
    }
    
    nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

main {
    flex: 1;
    margin: 0 auto;
    width: 800px;
    padding-left: 4%;
    padding-right: 4%;
    min-height: 88vh;
    border: none;
}

main>* {
    margin-top: 0;
    margin-bottom: 0;
}

.interactive-content {
    border: solid 1px rgba(255, 255, 255, 0.185);
    padding: 1vw;
    background-color: rgba(70, 69, 102, 0.153);
    border-radius: 8px;
    margin: 1vh 0;
}

.interactive-content:empty {
    display: none;
}

/* Elementos */
#logo {
    height: 40px;
}

header h1 {
    height: 40px;
    line-height: 40px;
    font-size: 40px;
    font-weight: 400;
    margin: 0 0 0 1vw;
    color: #fff;
}

nav a:hover {
    text-shadow: 0 0 5px #fff,
        0 0 10px #3af,
        0 0 20px #3af,
        0 0 40px #3af;
}

#main-title {
    text-align: left;
    font-weight: normal;
    font-size: 1.6em;
    padding-bottom: 0.5vh;
    margin: 2vh 0;
    border-bottom: solid 1px;
    cursor: pointer;
}

#main-title.site-description-title {
    font-weight: 600;
    border-bottom: solid 2px;
}

h3 {
    text-align: center;
    font-weight: normal;
    font-size: 1.4em;
}

nav a {
    text-decoration: none;
    color: var(--branco);
}

a {
    color: var(--azul-claro);
    text-decoration: none;
}

input {
    border: solid 1px rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: inherit;
    margin-left: 1vw;
    font-family: inherit;
}

label>input:disabled {
    background-color: #00000000;
    border: none;
}

input:focus {
    outline: none;
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.5);
}

button {
    border: none;
}

ul {
    margin-top: 0;
}

#guide-container-1 {
    padding-left: 0;
    margin-bottom: 5vh;
}

#guide-container-1> :not(.step-name) {
    margin-left: 2vw;
}

#guide-container-2> :not(.step-name) {
    margin-left: 2vw;
}

#guide-container-2 {
    padding-left: 0;
}

#guide-title-1 {
    margin: 0 auto;
    height: 30px;
    line-height: 30px;
    width: fit-content;
    padding: 2px 5px;
    color: var(--azul);
    border-bottom: solid 2px var(--azul);
}

#guide-title-2 {
    margin: 0 auto;
    height: 30px;
    line-height: 30px;
    width: fit-content;
    padding: 2px 5px;
    color: var(--ciano);
    border-bottom: solid 2px var(--ciano);
}

p.step-name {
    display: inline-block;
    margin: 1vh 0;
    border-bottom: solid 2px;
    padding-left: 2vw;
}

div.blue-scope-line>p.step-name {
    border-color: var(--azul);
}

div.cyan-scope-line>p.step-name {
    border-color: var(--ciano);
}

p.step-name.dropdown-btn>i {
    vertical-align: sub;
}

#related-content {
    margin-top: 5vh;
}

.dropdown-btn {
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    font-family: inherit;
    font-size: inherit;
    margin-top: 1vh;
}

.dropdown-btn>i {
    transition: transform 0.3s ease;
}

.flipped {
    transform: rotate(90deg);
}

.dropdown-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 1vh;
}

.dropdown-content.show {
    max-height: 100vh;
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none;
}

.matrix {
    background-color: rgba(255, 0, 0, 0);
    border-left: solid 3px white;
    border-right: solid 3px white;
    border-radius: 10px;
    width: fit-content;
    padding: 0.5vh 6px;
    display: grid;
    grid-template-rows: auto auto;
    color: black;
}

.matrix>* {
    margin: 0;
}

.matrix:empty {
    padding-top: 60px;
    padding-right: 20px;
}

.cell {
    margin: 2px;
    width: fit-content;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-items: center;
    border: none;
    border-radius: 5px;
    background-color: rgba(70, 69, 102, 0.2);
    font-size: 1em;
    font-family: 'Inter', sans-serif;
}

input:not(:disabled).cell {
    box-shadow: inset 0 0 0 2px var(--branco),
        0 1px 2px rgba(0, 0, 0, 0.1);
    outline: none;
}

.l1 {
    grid-row: 1;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rel {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    align-self: center;
    margin-top: 2vh;
}

.rel>img {
    margin: auto 0;
}

.comp {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    align-self: center;
    margin-top: 2vh;
}

.rel-sign {
    margin-left: 1vw;
    margin-right: 1vw;
}

ul {
    margin-bottom: 1vh;
}

.align-center {
    text-align: center;
}

.justify-center {
    justify-self: center;
}

.yes-icon {
    color: green;
    font-size: 15px;
}

.no-icon {
    color: rgb(131, 0, 0);
    font-size: 15px;
}

.gray-scope-line {
    padding-left: 1vw;
    border-left: solid 2px var(--cinza);
}

.blue-scope-line {
    padding-left: 1vw;
    border-left: solid 2px var(--azul);
}

.cyan-scope-line {
    padding-left: 1vw;
    border-left: solid 2px var(--ciano);
}

.azul {
    color: var(--azul);
}

.ciano {
    color: var(--ciano);
}

/* Slider */
.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--azul);
    transition: 0.4s;
    border-radius: 34px;
}

.slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--ciano);
}

input:checked+.slider::before {
    transform: translateX(24px);
}

/* Card Original */
.card-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    align-self: center;
    margin-top: 2vh;
}

.card {
    position: relative;
    display: block;
    width: 200px;
    height: 260px;
    text-decoration: none;
    background-color: var(--branco);
    color: var(--azul-escuro);
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px;
    max-width: 300px;
    padding: 0px 10px 20px 10px;
    margin: auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-title {
    font-size: 1.4rem;
    font-weight: normal;
    color: var(--azul);
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-description {
    text-align: justify;
    font-size: 0.9rem;
    color: var(--preto);
    margin-bottom: 1.5rem;
}

.card-highlight {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--azul);
    margin: 20px 0;
}

.card-list {
    font-size: 0.9rem;
    line-height: 10px;
    list-style-type: disc;
    padding-left: 20px;
    border-top: 1px solid var(--cinza);
    padding-top: 1rem;
    margin: 0;
    color: var(--preto);
}

.card-list li {
    margin-bottom: 0.5rem;
}

.topic-card {
    background-color: var(--branco);
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 280px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-right: 20px;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.topic-card-header {
    background: linear-gradient(to right, var(--azul-escuro), var(--azul));
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topic-card-icon {
    background-color: rgba(245, 248, 250, 0.1);
    border-radius: 8px;
    padding: 0 15px;
    color: var(--branco);
    font-family: "Courier New", Courier, monospace;
    font-size: 1.2rem;
    line-height: 1.1;
    text-align: center;
}

.topic-card-body {
    padding: 24px;
}

.topic-card-title {
    color: var(--azul);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.topic-card-description {
    color: var(--texto-paragrafo);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 20px 0;
    min-height: 42px;
}

.topic-card-link {
    color: var(--azul);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.topic-card-link:hover {
    color: var(--azul-escuro);
}

.topic-card-link span {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.topic-card-link:hover span {
    transform: translateX(4px);
}

p {
    font-size: 1rem;
    font-weight: 400;
}

strong {
    font-weight: 600;
}

#download-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--azul);
    color: var(--branco);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
