:root {
    --border: polygon(10px 0,
            /* Topo esquerdo */
            calc(100% - 10px) 0,
            /* Topo direito */
            100% 10px,
            /* Lado direito superior */
            100% calc(100% - 10px),
            /* Lado direito inferior */
            calc(100% - 10px) 100%,
            /* Canto inferior direito */
            10px 100%,
            /* Canto inferior esquerdo */
            0 calc(100% - 10px),
            /* Lado esquerdo inferior */
            0 10px
            /* Lado esquerdo superior */
        );
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body.default-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--primary-color);
    color: var(--text-color);
}

.white-box {
    height: 0px;
    width: 100%;
    position: absolute;
    top: 50%;
    clip-path: var(--border);
    background: var(--secondary-color);
}

.white-box-animation {
    top: 0;
    height: 100%;
    transition: all 0.3s ease-in-out;
}

/* -----------------------------------------------------------------------------------------------------------------------------*/
/* HEADER */

.site-header,
.site-footer {
    position: relative;
    z-index: 10;
}

.site-header {
    text-align: center;
    /*margin: 20px 0;*/
}

.home-header h2 {
    color: var(--light-color);
}

.home-header .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15vh;
}

.subpage-header .logo-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.large-logo {
    height: 90%;
    box-shadow: 10px 8px 20px 0px #030405;
    border-radius: 100px;
}

.large-logo-shrink {
    height: 10vh;
    transform: translate(-43.4vw, -2.5vh);
    box-shadow: none;
    transition: transform 0.5s ease-in-out;
}

.small-logo {
    height: 10vh;
    margin-left: 20px;
    border-radius: 80px;
}

.subpage-header .page-title {
    /* Garante que o título ocupe o espaço central */
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    color: var(--light-color);
}

.subpage-header .logo-container {
    width: auto;
}

/* ------------------------------------------------------------------------------------------------------------------------------- */
/* SEARCH BOX */

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 20px;
}

.search-container {
    position: relative;
    color: var(--dark-text-color);
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    clip-path: polygon(10px 0,
            /* Topo esquerdo */
            calc(100% - 10px) 0,
            /* Topo direito */
            100% 10px,
            /* Lado direito superior */
            100% calc(100% - 10px),
            /* Lado direito inferior */
            100% 100%,
            /* Canto inferior direito */
            0 100%,
            /* Canto inferior esquerdo */
            0 100%,
            /* Lado esquerdo inferior */
            0 10px
            /* Lado esquerdo superior */
        );
    padding: 0 10px;
    max-width: 80vw;
    transition: width 0.1s ease-in-out;
    background: var(--light-color);
}

.search-box-wrapper:focus-within {
    width: 400px;
    transition: width 0.2s ease-in-out;
}

.search-box {
    border: none;
    outline: none;
    flex: 1;
    font-size: 20px;
    padding: 10px;
    background: transparent;
}

.search-box::placeholder {
    color: var(--placeholder-color);
}

.search-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Sugestões de busca */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    clip-path: polygon(100% 0,
            /* Topo esquerdo */
            100% 0,
            /* Topo direito */
            100% 10px,
            /* Lado direito superior */
            100% calc(100% - 10px),
            /* Lado direito inferior */
            calc(100% - 10px) 100%,
            /* Canto inferior direito */
            10px 100%,
            /* Canto inferior esquerdo */
            0 calc(100% - 10px),
            /* Lado esquerdo inferior */
            0 0
            /* Lado esquerdo superior */
        );
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 20;
    background: var(--light-color);
}

.search-suggestions div {
    padding: 10px;
    cursor: pointer;
    transition: background 0.1s;
}

.search-suggestions div:hover {
    background: var(--hover-background);
}

.hidden {
    display: none;
}

/* Animation */

.shrink-to-circle {
    width: 44px;
    clip-path: var(--border);
    transition: all 0.5s ease-in-out;
}

/*-----------------------------------------------------------------------------------------------------------------------------*/
/* CATEGORY ICON */

.category-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-config-additional);
    clip-path: var(--border);
    padding: 5px;
    width: 35px;
    height: 35px;
}

.category-icon {
    stroke: var(--light-color);
    width: 24px;
    height: 24px;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    cursor: pointer;
}

.shrink-to-nothing {
    width: 0px;
    height: 0px;
    opacity: 0;
    transition: width 0.5s ease, height 0.5s ease, opacity 1.5s ease;
}

/*-----------------------------------------------------------------------------------------------------------------------------*/
/* TOOL PAGE */
.tool-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 1;
    padding: 40px;
    clip-path: var(--border);
    background: var(--secondary-color);
}

.tool-container button {
    padding: 10px;
    background: var(--tool-button);
    color: var(--light-color);
    border: none;
    clip-path: var(--border);
    cursor: pointer;
}

.tool-button-large {
    min-width: 15vw;
    padding: 12px !important;
    text-align: center;
    text-decoration: none;
    font-size: 24px;
}

.tool-container button:hover {
    background: var(--tool-button-hover);
}

.tool-container input::placeholder {
    color: var(--placeholder-color);
}

.tool-container .result {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}

.tool-container input,
select {
    padding: 10px;
    border: 1px solid #ccc;
    clip-path: var(--border);
}


.tool-container form {
    display: flex;
    flex-direction: column;
}

.tool-container label {
    margin: 10px 0 5px;
}

.tool-container button {
    margin-top: 20px;
}