/* ------- DEFINIÇÕES GERAIS ------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", "Poppins";
}

.body_ferramentas {
    background: url("TERRAL_NAVEGADOR.svg") no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

h3 {
    text-align: start;
    color: #555;
    font-size: 1.1rem;
}



/* ------- LOGIN ------- */
.container_login {
    display: flex;
    height: 100vh;
    background-color: #338558;
}

@media (max-width: 900px) {
    .container_login {
        flex-direction: column;
    }
}

.image-container {
    width: 70%;
    background: url("TERRAL_LOGIN.svg") no-repeat center center;
    background-size: cover;
}

.form-container_login {
    width: 30vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f2f2f2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.logo-img {
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10%;
}

.logo-img img {
    height: 80%;
    max-width: 60%;
    margin: 0 auto;
    display: block;
    padding: 0rem;
    box-sizing: border-box;
}

.form-body_login {
    height: 55%;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-sizing: border-box;
}

.loginForm {
    height: 65%;
    min-height: min-content;
    width: 80%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 2.2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.solic_cred {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.entrar_login {
    margin-top: 0;
    margin-bottom: 0;
}

.group_login {
    margin-top: auto;
}

.input-group_login {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 15px;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    box-sizing: border-box;
}

.input-group_login label {
    font-size: 0.8rem;
    color: #555;
}

.input-group_login input {
    padding: 0.8rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    height: 2.1em;
}

.input-group_login input:focus {
    border-color: #338558;
}

.error {
    font-size: 0.95rem;
    color: #e63946;
    display: none;
}

.login_button {
    margin-top: 5px;
    background-color: #338558;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 500;
    transition: 0.3s ease;
    align-self: center;
    width: 70%;
    height: 1.8em;
}

.login_button:hover {
    background-color: #33af6b;
}

.logo-footer {
    margin-bottom: 10%;
    height: 8%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-footer img {
    height: 80%;
    margin-top: 5px;
    max-width: 60%;
    margin-bottom: 0;
    margin-right: auto;
    margin-left: auto;
    display: block;
    padding: 0rem;
    box-sizing: border-box;
}



/* ------- SIDEBAR ------- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 80px;
    background: #eeeeee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    transition: width 0.3s;
    margin-top: 0;
    z-index: 100;
    height: 100vh;
}

.sidebar img.top {
    margin-bottom: 40px;
    transition: width 0.3s;
}
.sidebar img.bottom {
    margin-top: 40px;
    transition: width 0.3s;
}

.sidebar img.top {
    width: 40px;
}
.sidebar img.bottom {
    width: 40px;
}

.middle-sidebar  {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    padding: 8px;
    width: 65px;
    gap: 2px;
}

.middle-sidebar img{
    width: 40px;
    margin-top: 10px;
}

.sidebar-bottom {
    margin-bottom: 10px;
}

.top {
    margin-top: 10px;
}

.iniciais-usuario {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.5rem;
    color: #5c5c5c;
    background: #f2f2f2;
    border-radius: 20%;
    width: 50px;
    height: 40px;
    margin-top: 5px;
}



/* ------- SPINNER ------- */
.spinner-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    margin-left: 80px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #338558;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    margin-top: 20px;
    margin-left: 20px;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    display: none;
}



/* ------- FERRAMENTAS DATA AI ------- */
.agents-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: 100vh;
    flex: 1;
    padding-top: 33px;
    padding-bottom: 10px;
    margin-left: 80px;
    overflow-y: auto;
    overflow-x: hidden;
}
      
.container_agents {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 980px;
}

.container_ferramentas {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: 100vh;
    flex: 1;
    padding-top: 33px;
    padding-bottom: 10px;
    margin-left: 80px;
    overflow-y: auto;
    overflow-x: hidden;
}

.container_ferramentas-grey_box {
    display: flex;
    flex-direction: row;
    padding: 10px;
    background-color: #9aa9b8;
    border-radius: 25px;
    margin: 16px;
}

.container_ferramentas-white_box {
    display: flex;
    flex-direction: row;
    padding: 10px;
}

.container_ferramentas-dropmenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px 18px;
    background: #f7f7f7;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    min-width: 320px;
}

.card_ferramentas {
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.card_ferramentas_img {
    border-radius: 30px;
    margin: 8px;
    padding: 8px;
}

.input-area_ferramentas_sem-digitar {
    cursor: default;
    font-size: 1.6rem;
    font-weight: 500;
    flex: 1;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-area_ferramentas_sem-digitar > * {
    margin: 0;
}

.input-area_ferramentas_digitar {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-style_ferramentas_digitar {
    width: 90%;
    border-radius: 20px;
    margin-left: 5px;
    padding: 12px;
    font-size: 13px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background-color: #FFFFFF;
    color: #333333;
}

.input-style_ferramentas_digitar:focus {
    border-color: #B3BEC9;
    outline: none;
    box-shadow: 0 0 5px rgba(179, 190, 201, 0.5);
}

.input-style_ferramentas_76pct {
    width: 76%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: content-box;
}

.custom-select_ferramentas {
    width: 100%;
    max-width: 95%;
    padding: 12px;
    padding-right: 32px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #333333;
    margin: 0 auto;
    display: block;
}

.input-row_ferramentas {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 0px;
    box-sizing: content-box;
}

.button_ferramentas {
    border-radius: 20px;
    margin-right: 8px;
    width: 76px;
    height: 52px;
    background-color: #338558;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-left: auto;
}

.button_ferramentas:disabled {
    background: #bdbdbd !important;
    cursor: not-allowed;
    filter: grayscale(1);
}

.button_ferramentas:hover {
    background-color: #2e7950;
}

.button_ferramentas_2 {
    padding: 0px;
    border-radius: 12px;
    margin-left: 2px;
    background: #338558;
    border: none;
    cursor: pointer;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button_ferramentas_2:disabled {
    background: #bdbdbd !important;
    cursor: not-allowed;
    filter: grayscale(1);
}

.icon-processar_ferramentas {
    width: 42px;
    height: 40px;
    margin: 0px;
    padding: 0px;
}

.icon-processar_ferramentas_2 {
    width: 28px;
    height: 28px;
    border-radius: 30px;
    margin: 8px;
    padding: 8px;
    box-sizing: content-box;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
    width: 320px;
    max-width: 320px;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
}

.card img {
    border-radius: 30px;
    margin-bottom: 8px;
    padding: 16px;
    max-width: 100%;
}

.card-btn {
    background: #3fa16b;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
    margin: 10px 0 18px 0;
    width: 90%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-btn:hover {
    background: #3fa16bcc;
}


.ts-wrapper {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
}

.ts-wrapper .ts-control {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    
    min-height: 44px;
}

.item {
    font-size: 10px;
}

.ts-control input {
    font-family: "Segoe UI", "Poppins";
    font-size: 15px;
}