﻿/* ====== COLORS ====== */
:root {
    --bs-btn-bg: #8e55ff !important;
    --bs-btn-border-color: #8e55ff !important;
    --bs-primary: #9b87f5;
    --bs-secondary: #7E69AB;
    --bs-tertiary: #6E59A5;
    --bs-dark-bg: #1A1F2C;
    --bs-charcoal: #221F26;
    --bs-light-gray: #E5E7EB;
    --tw-ring-inset:;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / .5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #8c52ff;
    --bs-btn-border-color: #8c53ff;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #7032eb;
    --bs-btn-hover-border-color: #8045f3;
}

.btn-success {
    --bs-btn-color: #000;
    --bs-btn-bg: #8c52ff;
    --bs-btn-border-color: #8c52ff;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #8c52ff;
    --bs-btn-hover-border-color: #8c52ff;
    --bs-btn-focus-shadow-rgb: 24, 159, 119;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #8c52ff;
    --bs-btn-active-border-color: #8c52ff;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #8c52ff;
    --bs-btn-disabled-border-color: #8c52ff;
}

.card-title {
    color: #8c52ff;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-control {
    height: 40px;
}

.btn-outline-primary {
    --bs-btn-color: #8c52ff;
    --bs-btn-border-color: #8c52ff;
}

.navbar {
    border-bottom: 0;
    box-shadow: 0 0 1rem 0 rgba(33, 37, 41, .1);
}

.sidebar-content {
    background: none !important;
    background-color: hsl(240 15% 10%) !important;
}

.breadcrumb-item.active {
    color: rgb(140 82 255);
}

.form-check-input:checked {
    background-color: #8c52ff;
    border-color: #8c52ff;
}

.bg-sidebar {
    background-color: hsl(240 15% 10%);
}

/* Utility Classes */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

.bg-tertiary {
    background-color: var(--bs-tertiary) !important;
}

.bg-dark-bg {
    background-color: var(--bs-dark-bg) !important;
}

.bg-charcoal {
    background-color: var(--bs-charcoal) !important;
}

.bg-light-gray {
    background-color: var(--bs-light-gray) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.text-secondary {
    color: var(--bs-secondary) !important;
}

.text-tertiary {
    color: var(--bs-tertiary) !important;
}

/* ====== TYPOGRAPHY ====== */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

h1 {
    font-size: 36px;
    font-weight: 700;
}

h2 {
    font-size: 30px;
    font-weight: 700;
}

h3 {
    font-size: 20px;
    font-weight: 600;
}

h4 {
    font-weight: 600;
}

h5 {
    font-weight: 600 !important;
}

h6 {
    font-weight: 600;
}

hr {
    border: 0;
    border-top: var(--bs-border-width) dashed;
    color: #c7c6c6;
    margin: 1rem 0;
    opacity: .25;
}

.btn {
    --bs-btn-padding-x: 1.85rem;
    --bs-btn-padding-y: 0.4rem;
}

.subtitle {
    font-size: 18px;
    font-weight: 500;
}

.small-text {
    font-size: 14px;
    font-weight: 400;
}

.caption {
    font-size: 12px;
    font-weight: 400;
}

.card {
    border-radius: .5rem;
    box-shadow: 0 0 #0000,0 0 #0000, 0 0 #0000;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    border: 1px solid #e2e2e2b0;
}

.main {
    background: #fff;
}

.navbar .avatar {
    border-radius: 50% !important;
}

/* ====== COMPONENTS ====== */
.card-assistant {
    height: 144px;
    padding: 16px;
    gap: 8px;
    border-radius: 8px;
    background-color: var(--bs-light-gray);
    transition: all 0.2s ease;
}

    .card-assistant:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

.sidebar-expanded {
    width: 256px;
}

.sidebar-collapsed {
    width: 64px;
}

.header {
    height: 64px;
}

/* ====== CONTAINER LAYOUT ====== */
.container-max {
    max-width: 1400px;
    padding: 2rem;
}

.section-gap {
    margin-bottom: 80px;
}

.grid-gap {
    gap: 32px;
}

/* ====== ANIMATIONS ====== */
@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

@keyframes slide-in {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out;
}

/* ====== TRANSITIONS ====== */
.transition-hover {
    transition: all 0.2s ease;
}

.hover-shadow {
    transition: box-shadow 0.2s ease;
}

    .hover-shadow:hover {
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    }

/* ====== SPACING HELPERS (if not using utility-first CSS like Tailwind) ====== */
.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.gap-2 {
    gap: 8px;
}

.gap-8 {
    gap: 32px;
}

.space-y-20 > * + * {
    margin-top: 80px;
}

body {
    font-family: "Inter", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
}

a {
    color: rgb(91 91 91);
    text-decoration: none;
}

.opacity-disable {
    opacity: 0.5;
    pointer-events: none;
}

#frm-cadastro .card-header {
    padding-bottom: 0px;
}

#frm-cadastro .card-title {
    margin-bottom: 0px;
}

.agente-linha {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.agente-linha-selecionado {
    border-color: #68D0B3;
    color: #68D0B3;
}

.sidebar-content, body[data-theme=dark] .sidebar-content {
    background: #121212;
}

.sidebar-link, a.sidebar-link {
    background: hsl(240 15% 10%);
}

    .sidebar-link:hover {
        background: #191921;
        border-left-color: transparent;
    }

.alert, .btn, input, textarea, select, .form-control {
    border-radius: 8px;
}

body {
    margin: 0;
    font-size: 14px;
    line-height: 1.3em;
}

.conteudo-mensagens {
    max-height: 60vh;
    min-height: 25vh;
    overflow-y: scroll;
}

.msg-User {
    border: 1px solid #9b87f5;
    background: #9b87f5;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 5px;
    text-align: right;
    color: #fff;
    font-size: 12px;
}

.msg-Assistant {
    border: 1px solid #d7d9d9;
    background: hsl(210 40% 96.1%);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 5px;
    font-size: 12px;
}

.btn-iniciar-sessao {
    margin-top: 25vh;
    font-size: 25px;
    padding: 1em;
}

.introjs-tooltip {
    min-width: 350px !important;
    max-width: 350px !important;
}

#zebot-button img {
    width: 180px;
}

.lists {
    display: flex;
    overflow-x: auto;
}

    .lists > * {
        flex: 0 0 auto;
        margin-left: 10px;
    }

    .lists::after {
        content: "";
        flex: 0 0 10px;
    }

.list {
    width: 300px;
    height: calc(100% - 10px - 17px);
}

    .list > * {
        background-color: #e2e4e6;
        color: #333;
        padding: 0 10px;
    }

    .list header {
        line-height: 36px;
        font-size: 16px;
        font-weight: bold;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }

    .list footer {
        line-height: 36px;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        color: #888;
    }

    .list ul {
        list-style: none;
        margin: 0;
        max-height: calc(100% - 36px - 36px);
        overflow-y: auto;
        padding-bottom: 10px;
    }

        .list ul li {
            background-color: #fff;
            padding: 10px;
            border-radius: 3px;
            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
        }

            .list ul li h5 {
                font-size: 15px;
                font-weight: bolder;
            }

            .list ul li:not(:last-child) {
                margin-bottom: 10px;
            }

            .list ul li img {
                display: block;
                width: calc(100% + 2 * 10px);
                margin: -10px 0 10px -10px;
                border-top-left-radius: 3px;
                border-top-right-radius: 3px;
            }



@media(max-width: 600px) {
    .coluna-esquerda-chat {
        height: 300px !important;
        overflow-y: scroll;
        overflow-x: hidden;
    }

    .coluna-direita-chat {
        height: auto !important;
    }

    .conteudo-mensagens {
        min-height: 25vh;
    }

    .coluna-direita-chat h2 {
        font-size: 16px;
    }

    #campoPrompt {
        margin-bottom: 10px;
    }

    .btn-iniciar-sessao {
        margin-top: 1em !important;
        font-size: 18px;
    }

    footer .fw-lighter {
        display: none;
    }

    #zebot-button img {
        width: 150px !important;
    }
}

@media (min-width: 992px) {
    .content {
        padding: 2rem 2rem 1.5rem;
    }
}

footer strong {
    color: #8c52ff;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #b56dff;
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
}

.navbar-nav .dropdown-menu {
    box-shadow: 0 .1rem .2rem rgba(0, 0, 0, .05);
    border-radius: 10px;
}

.sidebar-item.active .sidebar-link:hover, .sidebar-item.active > .sidebar-link {
    background: linear-gradient(90deg, rgb(156 39 176 / 34%), rgb(163 138 213 / 32%) 50%, transparent);
    border-left-color: #8c52ff;
    color: #e9ecef;
}

.bg-info {
    --bs-bg-opacity: 1;
    background-color: rgb(22 22 29) !important;
}
