.btn-circle {
    width: 50px;
    height: 50px;
    padding: 13px;
    border-radius: 60px;
    font-size: 15px;
    text-align: center;
}

.btn-circle-large {
    width: 85px;
    height: 50px;
    padding: 13px;
    border-radius: 60px;
    font-size: 15px;
    text-align: center;
}

div#volume-indicators {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

div#volume-indicators > div {
    height: 8px;
    width: 0;
    min-width: 0;
    max-width: 100px;
}

.channel-disabled {
    background-color:#A0A5AB;
    color: white;
}

.btn-md, .btn-group-md > .btn {
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.transcription-shell {
    max-width: 1280px;
    min-height: 0;
}

.transcription-layout,
.transcription-top-row {
    min-height: 0;
}

#div-col-transcription,
#div-col-transcription > div,
#div-col-chat,
#div-col-chat > div {
    min-height: 0;
}

#div-col-chat {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#div-col-transcription {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
}

#div-col-transcription > div,
#div-col-transcription .transcription-shell {
    flex: 1 1 0;
}

.transcription-layout {
    flex: 1 1 0;
}

.transcription-top-row {
    flex: 1 1 0;
    min-width: 0;
}

.transcription-live-card {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.08), rgba(13, 110, 253, 0.02));
    border-color: rgba(13, 110, 253, 0.12) !important;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.transcription-history-card {
    flex: 0 0 32rem;
    width: 32rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color-translucent) !important;
}

.transcription-live-caption {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    font-size: clamp(1.5rem, 1.05rem + 1.2vw, 2.35rem);
    line-height: 1.25;
    font-weight: 600;
    color: var(--bs-emphasis-color);
}

.transcription-live-caption.is-placeholder {
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--bs-secondary-color);
}

.transcription-history-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto !important;
}

.transcription-history-line {
    padding: 0.875rem 0;
}

.transcription-history-line-user {
    background-color: transparent;
}

.transcription-history-meta {
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.transcription-history-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--bs-emphasis-color);
}

.transcription-composer {
    background-color: var(--bs-light-bg-subtle, #fcfcfd);
}

@media (max-width: 991.98px) {
    body.session-ended {
        height: auto !important;
        min-height: 100dvh;
        overflow-y: auto !important;
    }

    body.vh-100 {
        height: 100dvh !important;
        min-height: 100dvh;
    }

    body.session-ended #div-main-container,
    body.session-ended #div-main-row {
        overflow: visible !important;
    }

    #div-main-container {
        padding: 0.75rem !important;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)) !important;
    }

    #div-col-transcription > div {
        padding: 0.75rem !important;
    }

    #div-col-chat > div {
        padding: 0.75rem !important;
    }

    #div-main-row {
        gap: 0.75rem;
    }

    #div-video-container {
        flex: 0 0 42dvh;
        min-height: 15rem;
        max-height: 42dvh;
    }

    #div-col-chat {
        flex: 1 1 0;
    }

    #div-col-chat > div {
        flex: 1 1 0;
    }

    #chat-panel-shell {
        padding: 0.625rem !important;
    }

    #chat-panel-header {
        margin-bottom: 0.625rem !important;
        font-size: 0.95rem;
    }

    #btn-close-chat {
        width: 1.75rem;
        height: 1.75rem;
        padding: 0;
        line-height: 1;
    }

    #div-waiting-chat-agent {
        padding: 0.625rem !important;
        font-size: 0.8rem;
    }

    #chat-panel-form {
        margin-bottom: 0.25rem;
    }

    #chat-panel-composer {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    #input-message {
        min-height: 2.5rem;
    }

    #btn-send-messages {
        min-width: 2.75rem;
        padding-inline: 0.75rem;
    }

    #div-is-writing {
        margin-top: 0.375rem;
        margin-bottom: 0.375rem !important;
        font-size: 0.78rem;
    }

    #div-chat-messages {
        margin-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    #div-chat-messages .col-10 {
        width: 100%;
        max-width: 88%;
    }

    #div-chat-messages .shadow-sm {
        border-radius: 0.6rem !important;
    }

    .transcription-shell {
        max-width: none;
    }

    .transcription-layout {
        flex: 1 1 0;
    }

    .transcription-top-row {
        flex: none;
    }

    .transcription-history-card {
        width: auto;
        flex: none;
        min-height: 10rem;
        max-height: 24dvh;
    }

    .transcription-live-card {
        flex: none;
        min-height: 0;
        max-height: 30dvh;
        overflow: auto;
    }

    .transcription-live-caption {
        min-height: auto;
        font-size: clamp(1.1rem, 1rem + 2vw, 1.9rem);
        line-height: 1.2;
    }

    .transcription-quick-reply {
        display: none;
    }

    #div-tts-input {
        padding-bottom: env(safe-area-inset-bottom);
    }

    #div-video-actions-buttons,
    #div-chat-actions-buttons,
    #div-audio-actions-buttons {
        margin-bottom: calc(0.75rem + env(safe-area-inset-bottom)) !important;
    }

    body.session-ended #div-video-actions-buttons,
    body.session-ended #div-chat-actions-buttons,
    body.session-ended #div-audio-actions-buttons {
        display: none !important;
    }

    #div-local-media {
        top: 1.25rem;
        right: 1.25rem;
        bottom: auto !important;
        left: auto !important;
        width: 5.5rem !important;
        padding: 0 !important;
        z-index: 4;
    }

    #local-participant {
        border: 2px solid rgba(255, 255, 255, 0.85);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    }

    body.session-ended #div-sessionClosed,
    body.session-ended #div-sessionAudioClosed,
    body.session-ended #div-timeoutSession {
        overflow: visible !important;
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)) !important;
    }

    body.session-ended #div-chat-history {
        max-height: none !important;
    }
}

@media (max-width: 991.98px) and (orientation: landscape) {
    #div-main-container {
        padding: 0.625rem !important;
    }

    #div-main-row {
        flex-direction: row !important;
        align-items: stretch;
        gap: 0.625rem;
    }

    #div-video-container {
        flex: 1 1 60%;
        min-height: 0;
        max-height: none;
    }

    #div-col-chat {
        flex: 0 0 38%;
        max-width: 38%;
    }

    #div-col-chat > div {
        padding: 0.625rem !important;
    }

    #chat-panel-header {
        margin-bottom: 0.5rem !important;
    }

    #div-waiting-chat-agent {
        padding: 0.5rem !important;
        font-size: 0.75rem;
    }

    #div-chat-messages {
        margin-top: 0.375rem !important;
    }

    #div-local-media {
        top: 0.875rem;
        right: 0.875rem;
        width: 6.5rem !important;
    }

    #div-video-actions-buttons,
    #div-chat-actions-buttons,
    #div-audio-actions-buttons {
        margin-bottom: calc(0.5rem + env(safe-area-inset-bottom)) !important;
    }
}

.animated-footer {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards 0.4s; /* Délai pour l'effet en cascade */
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
