:root {
    --brand: #0062A6;
    --brand-2: #1A9ADD;
}

body {
    color: #e6e9f0;
}

.auth-bg {
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 10% 10%, rgba(0, 98, 166, .25), transparent 60%),
        radial-gradient(1000px 700px at 90% 20%, rgba(26, 154, 221, .20), transparent 60%),
        linear-gradient(180deg, #0b1220 0%, #0e1422 40%, #0b1220 100%);
}

.login-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .35);
}

.brand-badge,
.badge-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 98, 166, .35);
}

.brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.form-control,
.input-group-text,
.form-check-input,
.form-select {
    background-color: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
    color: #e9eef7;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, .10);
    border-color: var(--brand);
    box-shadow: 0 0 0 .25rem rgba(0, 98, 166, .25);
    color: #fff;
}

.form-select option {
    color: #111827;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border: none;
    color: #fff;
}

.btn-brand:disabled {
    opacity: .7;
}

.link-light-muted {
    color: #b7c4d6;
    text-decoration: none;
}

.link-light-muted:hover {
    color: #fff;
    text-decoration: underline;
}

.small-muted {
    color: #a8b3c7;
}

.fade-in {
    animation: fadein .2s ease-in;
}

@keyframes fadein {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.modal-wa {
    background: #0e1628;
    color: #e6e9f0;
    border: 1px solid rgba(255, 255, 255, .12);
}

.cardawQrcode {
    background: rgb(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: .75rem;
}

.cardImgawQrcode {
    min-height: 150px;
    object-fit: contain;
}

/* Documentação da API */
.docs-page .accordion-item {
    background: rgba(255, 255, 255, .035);
    border-color: rgba(255, 255, 255, .12);
}

.docs-page .accordion-button {
    background: rgba(255, 255, 255, .045);
    color: #e6e9f0;
}

.docs-page .accordion-button:not(.collapsed) {
    background: rgba(0, 98, 166, .25);
    color: #fff;
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 rgba(255, 255, 255, .12);
}

.doc-server-box {
    min-width: min(100%, 380px);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: .85rem 1rem;
}

.doc-pill {
    padding: .6rem .8rem;
}

.doc-endpoint {
    border-top: 1px solid rgba(255, 255, 255, .10);
    background: rgba(8, 14, 26, .35);
}

.doc-endpoint-head {
    padding: 1rem;
    border-left: 4px solid rgba(255, 255, 255, .18);
}

.doc-endpoint-body {
    padding: 0 1rem 1rem 1rem;
}

.doc-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    border-radius: .6rem;
    padding: .35rem .6rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    font-size: .8rem;
}

.doc-method-get {
    background: #198754;
}

.doc-method-post {
    background: #0d6efd;
}

.doc-method-put {
    background: #fd7e14;
}

.doc-method-patch {
    background: #6f42c1;
}

.doc-method-delete {
    background: #dc3545;
}

.doc-method-default {
    background: #6c757d;
}

.doc-path {
    font-size: .95rem;
    color: #d6e8ff;
    overflow-wrap: anywhere;
}

.doc-section {
    height: 100%;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    padding: .85rem;
}

.doc-section-title {
    font-weight: 700;
    color: #f4f7fb;
    margin-bottom: .45rem;
}

.doc-param-table th,
.doc-param-table td {
    border-color: rgba(255, 255, 255, .10);
}

.doc-code {
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    color: #e6e9f0;
    max-height: 360px;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
}

/* Separação Admin / Operador */
.panel-choice-card,
.admin-action-card,
.operator-kpi-card {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.panel-choice-card:hover,
.admin-action-card:hover,
.operator-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 154, 221, .55) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
}


.contact-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 98, 166, .95), rgba(26, 154, 221, .95));
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .20);
}

.contact-avatar-xs {
    width: 32px;
    height: 32px;
    font-size: .72rem;
}

.contact-avatar-sm {
    width: 42px;
    height: 42px;
    font-size: .85rem;
}

.contact-avatar-md {
    width: 48px;
    height: 48px;
    font-size: .95rem;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-avatar span {
    line-height: 1;
}

.atendimento-list-card {
    min-height: calc(100vh - 170px);
}

.atendimento-list {
    max-height: calc(100vh - 230px);
    overflow: auto;
}

.atendimento-item {
    cursor: default;
    border-color: rgba(255, 255, 255, .10) !important;
}

.atendimento-item:hover {
    background: rgba(255, 255, 255, .045) !important;
}

.chat-card {
    min-height: calc(100vh - 170px);
}

.chat-body {
    height: calc(100vh - 365px);
    min-height: 360px;
    overflow: auto;
    background-image: linear-gradient(rgba(8, 14, 26, .70), rgba(8, 14, 26, .70)), url('../Imgs/png/bg-chat-tile-dark.png');
    background-size: auto;
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: .45rem;
    margin-bottom: .75rem;
}

.chat-message.inbound {
    justify-content: flex-start;
}

.chat-message.outbound {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: min(78%, 560px);
    border-radius: 18px;
    padding: .75rem .9rem;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    color: #f4f7fb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.chat-message.outbound .chat-bubble {
    background: rgba(0, 98, 166, .55);
    border-color: rgba(26, 154, 221, .35);
}

.chat-time {
    margin-top: .35rem;
    color: rgba(255, 255, 255, .70);
    font-size: .75rem;
    text-align: right;
}

.chat-audio {
    width: 20rem;
    margin-top: 1rem;
    max-width: min(100%, 560px);
}

.min-w-0 {
    min-width: 0;
}


/* Porta de entrada Admin / Operador */
.panel-entry-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.panel-entry-card:hover {
    transform: translateY(-4px);
    border-color: rgba(26, 154, 221, .65);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .38);
}

.panel-entry-icon {
    width: 74px;
    height: 74px;
    font-size: 2rem;
}