:root {
    --primary-color: #3763E6;
    --primary-dark: #3737e6;
    --secondary-color-n: #34A853;
    --accent-color: #EA4335;
    /* --premium-color: #FF6D00; */
    --premium-color: #6200EA;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --text-primary: #252B33;
    --text-secondary: #475966;

    --special-green: #03dac6;
    --special-blue: #4797FF;
    --special-light: #F0F5FF;

    --divider: rgba(0, 0, 0, 0.2);

    --background-alpha: rgba(255, 255, 255, .6);

    /* Legado */
    /* Light Theme Colors */
    --primary-color: #6200EA;
    --primary-color-variant: #4d00b7;

    --secondary-color: #3763E6;
    --secondary-color-variant: #3737e6;

    --tertiary-color: #808EFF;
    --tertiary-color-variant: #9280ff;

    --primary-color-dark: #252B33;
    --secondary-color-dark: #475966;

    --background-color: #fff;
    --surface-color: #fff;
    --surface-color-variant: #F0F5FF;
    --surface-secondary-color: rgba(105, 145, 214, .1);
    --surface-glass: rgba(255, 255, 255, .1);
    --surface-glass-variant: rgba(105, 145, 214, .1);
    --surface-glass-info: rgba(240, 245, 255, 0.5);
    --surface-glass-dark: rgba(37, 43, 51, 0.5);
    --surface-glass-tertiary: rgba(98, 0, 234, 0.65);
    --surface-glass-orange: rgba(255, 166, 0, 0.7);
    --surface-glass-secondary: rgba(71, 151, 255, 0.7);

    --error-color: #B00020;

    /* Success, Warning, Error */
    --color-success: #107C10;
    --color-warning: #FFD335;
    --color-error: #D83B01;
    --color-error-hover: #B00020;
    /* Neutrals */
    --on-primary-color: #FFF;
    --on-secondary-color: #FFF;
    --on-tertiary-color: #000;

    --on-background-color: #000000;
    --on-surface-color: #000000;
    --on-error-color: #FFF;

    --on-hover: rgba(0, 0, 0, 0.1);
    --divider: rgba(0, 0, 0, 0.2);
    --divider-gradient: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2), transparent);
    --placeholder: rgba(0, 0, 0, 0.4);
    --border: rgba(0, 0, 0, 0.2);
    --blur: rgba(255, 255, 255, 0.8);

    /* Text Colors */
    --primary-text-color: #252B33;
    --secondary-text-color: #475966;
    --disabled-text-color: #9E9E9E;
    --color-accent-purple: #886CE4;
    --primary-color-accent: #6200EA;
    /* Fluent Purple */

    --md-primary-color: #03dac6;
    --md-on-primary-color: #004e40;
    --md-on-primary-color-variant: #007267;

    --md-secondary-color: #4797FF;
    --md-on-secondary-color: #002846;
    --md-on-secondary-color-variant: #3a73bd;

    --md-tertiary-color: #6200EA;
    --md-on-tertiary-color: #fff;

    --md-orange-color: #ffa600;
    --md-on-orange-color: #1e1300;

    --md-gray-color: #475966;
    --md-on-gray-color: #fff;

    --md-flat-color: #fafafa;
    --md-on-flat-color: #475966;
    --md-on-flat-color-variant: #6200EA;

    --md-error-color: #B00020;
    --md-text-color: #000000;
    --md-border-color: #BDBDBD;
    --md-background-color: #FFFFFF;

    --input-background: #fafafa;
    --surface-hover: #fafafa;

    --animate-text-0: rgba(0, 0, 0, .5);
    --animate-text-1: rgba(0, 0, 0, 1);
}

.animate-this {
    animation: addBorder 1s ease forwards;
}

@keyframes addBorder {
    0% {
        /* width: 50%; */
        opacity: 0;
    }

    100% {
        /* width: 100%; */
        opacity: 1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* html,
body {
    height: 100%;
    margin: 0;
} */

body {
    background-color: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
    /* Flex */
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    /* Viewport Height */
}

main {
    flex: 1;
    /* Ocupa todo o espaço disponível */
}

footer {
    margin-top: auto;
    /* Empurra o rodapé para baixo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Divider */

/* .divider {
    height: 1px;
    overflow: hidden;
    background-color: var(--divider);
} */

.divider-gradient {
    height: 1px;
    width: 100%;
    overflow: hidden;
    background: var(--divider-gradient);
}

.divider-gradient.mg20 {
    margin: 20px 0;
}

/* Header */
header {
    background-color: var(--background-alpha);
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    margin-right: 12px;
}

.logo h1 {
    font-size: 17px;
    font-weight: 300;
    color: var(--secondary-color);
}

.logo span {
    color: var(--text-secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 24px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 300;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
    text-transform: uppercase;
}

/* nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-dark);
} */

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--text-secondary);
    /* transition: width 0.3s; */
    transition: height 0.3s ease, width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover::before {
    width: 100%;
    left: 0;
    height: 1px;
}

nav ul li a.active::before {
    width: 100%;
    left: 0;
    height: 1px;
}

/* INPUT */
/************ INPUTS***************/
/* Floating label */
label {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Inputs */

.input-container {
    position: relative;
    margin-bottom: 25px;
}
.input-container.mbotton-5 {
    margin-bottom: 5px;
}

input {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--input-background);
    transition: border-color 0.3s ease;
    border-radius: 6px;
}

input:focus {
    outline: none;
    border: 1px solid var(--primary-color);
}

/* Moving the label upwards when focused or filled */
input:focus+label,
input:not(:placeholder-shown)+label {
    top: -18px;
    left: 0;
    font-size: 12px;
    color: var(--primary-color);
}

/* Error state */
.input-container.error input {
    border: 1px solid var(--md-error-color);
}

.input-container.error label {
    color: var(--md-error-color);
}

.helper-text {
    font-size: 12px;
    color: var(--border);
    margin-top: 5px;
}

.input-container.error .helper-text {
    color: var(--md-error-color);
}

/* SELECT */
.select-container {
    position: relative;
    margin-bottom: 25px;
}

select {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--input-background);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    z-index: 1;
    cursor: pointer;
    color: var(--md-text-color);
    transition: border-color 0.3s ease;
    border-radius: 6px;
}

select:focus {
    outline: none;
    border: 1px solid var(--primary-color);
}

/* Movendo a label para cima ao focar ou quando o select tem valor */
select:focus+label,
select:not([value=""])+label {
    top: -18px;
    left: 0;
    font-size: 12px;
    color: var(--primary-color);
}

/* Seta customizada para o select */
.select-container::after {
    content: '▼';
    position: absolute;
    font-size: 10px;
    top: 45%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-color);
    z-index: 1;
}

select:focus~.select-container::after {
    color: var(--primary-color);
}

/* textarea */
.material-textarea {
    position: relative;
    margin: 20px 0;
    width: 100%;
    max-width: 500px;
    border-radius: 6px;
}

.material-textarea textarea {
    width: 100%;
    padding: 10px 10px 10px 5px;
    font-size: 16px;
    font-family: inherit;
    background-color: var(--input-background);
    resize: vertical;
    outline: none;
    height: 100px;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.material-textarea label {
    color: var(--border);
    font-size: 16px;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    transition: 0.2s ease all;
}

.material-textarea textarea:focus {
    border-bottom: 2px solid var(--primary-color);
}

.material-textarea textarea:focus~label,
.material-textarea textarea:not(:placeholder-shown)~label {
    top: -20px;
    left: 0;
    font-size: 12px;
    color: var(--primary-color);
}

/* INPUT */

/*********** BUTTONS **************/
/* Material Design Button Styles */
.a-link {
    color: var(--secondary-color);
    transition: color 0.2s ease-in-out;
}

.a-link:hover {
    color: var(--primary-color);
}

.w100 {
    width: 100%;
}

.row-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.md-button {
    display: inline-block;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 6px;
    color: var(--md-on-primary-color);
    background-color: var(--md-primary-color);
    border: none;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
    overflow: hidden;
}

.md-button.med {
    padding: 7px 14px;
}

.md-button.small {
    padding: 6px 12px;
}

.md-button.small.icon {
    display: flex;
    padding: 4px;
    font-size: 16px;
}

.md-button:hover:not(:disabled) {
    /* background-color: var(--primary-color-variant); */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.md-button:active:not(:disabled) {
    /* background-color: var(--primary-color); */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.md-button:focus:not(:disabled) {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.md-button--secondary {
    background-color: var(--md-secondary-color);
    color: var(--md-on-secondary-color);
}

.md-button--tertiary {
    background-color: var(--md-tertiary-color);
    color: var(--md-on-tertiary-color);
}

.md-button--orange {
    background-color: var(--md-orange-color);
    color: var(--md-on-orange-color);
}

.md-button--gray {
    background-color: var(--md-gray-color);
    color: var(--md-on-gray-color);
}

.md-button--light {
    background-color: var(--surface-color-variant);
    color: var(--md-on-secondary-color);
}

.md-button--flat {
    background-color: var(--md-flat-color);
    color: var(--md-on-flat-color);
    box-shadow: none;
    -webkit-box-shadow: none;
}

.md-button--flat-primary {
    background-color: var(--md-flat-color);
    color: var(--md-on-primary-color-variant);
    box-shadow: none;
    -webkit-box-shadow: none;
}

.md-button--flat-secondary {
    background-color: var(--md-flat-color);
    color: var(--md-on-secondary-color-variant);
    box-shadow: none;
    -webkit-box-shadow: none;
}

.md-button--flat-variant {
    background-color: var(--md-flat-color);
    color: var(--md-on-flat-color-variant);
    box-shadow: none;
    -webkit-box-shadow: none;
}

.md-button--outline-white {
    background-color: transparent;
    border: solid 1px white;
    color: white;
}

.md-button--outline-primary {
    background-color: transparent;
    border: solid 1px var(--primary-color);
    color: var(--primary-color);
}

.md-button--disabled,
.md-button:disabled,
button:disabled {
    background-color: var(--divider);
    color: var(--disabled-text-color);
    cursor: not-allowed;
    box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.md-button--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
}

.md-button--icon i.material-symbols-rounded {
    margin-right: 8px;
    color: inherit;
}

.md-button--icon.small {
    padding: 6px 12px;
}

.md-button--icon.small i.material-symbols-rounded {
    font-size: 20px;
    margin-right: 0px;
}

/* Ripple Effect */
.md-button:not(:disabled)::after {
    content: '';
    position: absolute;
    top: 0%;
    left: 0%;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border-radius: 0%;
    transform: scale(1);
    transition: all .5s ease;
}

.md-button:hover:not(:disabled)::after {
    transform: scale(1);
    opacity: 0;
    width: 100%;
    height: 100%;
    border-radius: 0%;
    top: 0%;
    left: 0%;
}

/*********** End Buttons **********/

/************ Forms **************/
.flex-form {
    display: flex;
    flex-wrap: wrap;
    /* Permite quebra de linha para inputs adicionais */
    gap: 20px;
    /* padding: 20px; */
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    /* border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    margin: 0 auto;
}

.flex-form.center {
    align-items: center;
}

.flex-form.center.no-mw {
    max-width: none;
}

.flex-form .form-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(100% - 20px);
    /* 50% da largura menos o gap */
    position: relative;
}

.flex-form .form-group-2 {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(50% - 20px);
    /* 50% da largura menos o gap */
    position: relative;
}

.flex-form .form-group-3 {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc((100% / 3) - 20px);
    /* 50% da largura menos o gap */
    position: relative;
}

.flex-form .form-group-4 {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc((100% / 4) - 20px);
    /* 50% da largura menos o gap */
    position: relative;
}

.flex-form .form-group-2.left,
.flex-form .form-group-3.left,
.flex-form .form-group-4.left {
    align-items: start;
}

.flex-form .form-actions {
    display: flex;
    flex: 1 1 100%;
    /* Ocupa 100% da largura */
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--text-primary);
    color: white;
    padding: 60px 0 0px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 500;
}

.footer-logo span {
    color: var(--medium-gray);
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--text-secondary);
    /* background-color: var(--text-primary); */
    padding: 20px 0;
    text-align: center;
    color: var(--medium-gray);
    font-size: 14px;
}

/**** DATAGRID ****/
/* Contêiner principal da DataGrid */
.datagrid-container {
    width: 100%;
    /* margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.datagrid-container.scroll {
    height: calc(100dvh - 120px);
    margin-top: 10px;
    overflow: auto;
}


/* Estilo da tabela */
.datagrid {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--background-color);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-align: left;
}

/* Cabeçalho da tabela */
.datagrid thead {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border);
}

.datagrid thead th {
    padding: 16px;
    font-weight: 500;
    color: var(--secondary-text-color);
    text-transform: uppercase;
}

/* Corpo da tabela */
.datagrid tbody tr {
    transition: background-color 0.3s ease;
}

.datagrid tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.datagrid tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--secondary-text-color);
}

/* Última linha sem borda */
.datagrid tbody tr:last-child td {
    border-bottom: none;
}

/* Colunas numéricas alinhadas à direita */
.datagrid tbody td.numeric {
    text-align: right;
}

/* Rodapé da tabela */
.datagrid tfoot {
    background-color: var(--background-color);
    font-weight: 500;
    color: var(--secondary-text-color);
}

.datagrid tfoot td {
    padding: 16px;
    text-align: right;
    border-top: 1px solid var(--border);
}

/* Botões de paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    align-items: center;
    background-color: var(--background-color);
}

.pagination .page-link {
    margin: 0 4px;
    padding: 8px 12px;
    background-color: #6200ea;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.pagination .page-link:hover {
    background-color: #3700b3;
}

/* Botão ativo */
.pagination .page-link.active {
    background-color: #3700b3;
    cursor: default;
}

/* EFFECTS */
.no-shadow-effect {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    transition: none !important;
}

.shadow-effect {
    -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

/* Efeito de foco ou hover para controles interativos */
.shadow-effect:hover,
.shadow-effect:focus {
    -webkit-box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.1);
}

.animate-this {
    animation: addBorder 1s ease forwards;
}

@keyframes addBorder {
    0% {
        /* width: 50%; */
        opacity: 0;
    }

    100% {
        /* width: 100%; */
        opacity: 1;
    }
}

.preloader {
    display: grid;
    grid-template-columns: repeat(2, 25px);
    grid-template-rows: repeat(2, 25px);
    gap: 1px;
    width: 52px;
    /* height: 52px; */
    margin: 0 auto;
    /* position: relative; */
}

/* Style for each square */
.square {
    /* width: 50px;
     height: 50px; */
    /* background-color: var(--secondary-color-dark); */
    opacity: 0;
    animation: preloaderAnimation 2s infinite;
}

/* Assigning delay for each square */
#sq1 {
    background: linear-gradient(135deg, var(--md-tertiary-color), var(--md-secondary-color));
    border-top-left-radius: 0px;
    animation-delay: 0s;
}

#sq2 {
    background: linear-gradient(135deg, var(--md-secondary-color), var(--md-primary-color));
    border-top-right-radius: 0px;
    animation-delay: 0.5s;
}

#sq3 {
    background-color: var(--md-primary-color);
    border-bottom-right-radius: 0px;
    animation-delay: 1s;
}

#sq4 {
    background: linear-gradient(135deg, var(--md-secondary-color), var(--md-primary-color));
    border-bottom-left-radius: 0px;
    animation-delay: 1.5s;
}

/* Keyframes for the animation */
@keyframes preloaderAnimation {

    0%,
    100% {
        opacity: 0;
    }

    25%,
    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .header-container {
        padding: 16px 8px;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 32px;
        margin-right: 8px;
    }

    .header-container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 12px 12px;
    }

    .btn {
        display: block;
        margin: 0 auto 15px;
        max-width: 250px;
    }

    .btn-outline {
        margin-left: auto;
    }

    .section-title h3 {
        font-size: 30px;
    }
}