/* GlobeSign AI Calling: brand layer on top of the dashboard theme.
   Colours are taken from globesign.com: green #65A634 / #3C8407, navy #0A3759. */
:root {
    --gs-navy: #0a3759;
    --gs-navy-soft: #11507f;
    --gs-green: #65a634;
    --gs-green-dark: #3c8407;
    --gs-surface: #f4f7fa;
}

/* Page background and headings */
.fi-body,
.fi-layout {
    background-color: var(--gs-surface);
}

.fi-header-heading,
.fi-simple-header-heading {
    color: var(--gs-navy);
    letter-spacing: -0.015em;
}

/* Top bar: white with the GlobeSign green line under it */
.fi-topbar {
    border-bottom: 3px solid var(--gs-green);
}

/* Side menu: navy, with the current page in green */
.fi-sidebar {
    background-color: var(--gs-navy);
}

.fi-sidebar .fi-sidebar-header {
    background-color: #ffffff;
}

.fi-sidebar .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-group-label {
    color: #dbe7f0;
}

.fi-sidebar .fi-sidebar-item-icon {
    color: #9fbdd3;
}

.fi-sidebar .fi-sidebar-item-btn:hover,
.fi-sidebar .fi-sidebar-item-btn:focus-visible {
    background-color: var(--gs-navy-soft);
}

.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: var(--gs-green-dark);
}

.fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #ffffff;
}

/* Rounded buttons, as on globesign.com; main buttons in solid GlobeSign green with white text */
.fi-btn {
    border-radius: 9999px;
}

.fi-btn.fi-color-primary:not(.fi-outlined) {
    background-color: var(--gs-green-dark) !important;
    color: #ffffff !important;
}

.fi-btn.fi-color-primary:not(.fi-outlined):hover {
    background-color: #2f6a05 !important;
}

.fi-btn.fi-color-primary:not(.fi-outlined) .fi-icon {
    color: #ffffff !important;
}

/* Product name beside the logo and on the sign-in card */
.gs-product {
    margin-inline-start: 0.75rem;
    padding-inline-start: 0.75rem;
    border-inline-start: 2px solid #d5e0e8;
    color: var(--gs-navy);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.gs-product small {
    margin-inline-start: 0.4rem;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    background-color: var(--gs-navy);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gs-product-signin {
    margin: -0.5rem 0 0.25rem;
    text-align: center;
    color: var(--gs-green-dark);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Sign-in pages: navy-to-green background with a white card */
.fi-simple-layout {
    background: linear-gradient(135deg, var(--gs-navy) 0%, var(--gs-navy-soft) 55%, var(--gs-green-dark) 130%);
}

.fi-simple-main {
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(4, 24, 40, 0.35);
}

.fi-simple-layout .fi-logo {
    height: 4rem !important;
}

/* Voice sample under the voice list */
.gs-voice-sample {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gs-voice-sample audio,
.gs-audio {
    height: 2.25rem;
    max-width: 100%;
}

.gs-audio {
    width: 100%;
    max-width: 36rem;
}

/* Call conversation */
.gs-conversation {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gs-turn {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    padding: 0.6rem 0.9rem;
    border-radius: 0.9rem;
    line-height: 1.45;
}

.gs-turn-who {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
}

.gs-turn-agent {
    align-self: flex-start;
    background-color: #e8f0f6;
    color: var(--gs-navy);
}

.gs-turn-caller {
    align-self: flex-end;
    background-color: #edf7e6;
    color: #23480a;
}

.gs-muted {
    color: #6b7c8a;
}

/* Link to the other sign-in page */
.gs-other-signin {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7c8a;
}

.gs-other-signin a {
    color: var(--gs-green-dark);
    font-weight: 600;
}
