:root {
    --regular-font: 400;
    --semi-font: 600;
    --color-purple: #6600CC;
    --bold-light: 700;
}

.ds-semi-bold {
    font-weight: var(--semi-font) !important;
}

.ds-bold-light {
    font-weight: var(--bold-light);
}

body {
    font-family: 'Poppins', sans-serif;
}

.table>:not(caption)>*>* {
    border-bottom-width: 0;
}

.col-md-2-5 {
    flex: 0 0 auto;
    width: 20%;
}

.col-md-10-5 {
    flex: 0 0 auto;
    width: 80%;
}

.w-12 {
    width:12%!important
}

.w-14 {
    width:14%!important
}

.w-16 {
    width:16%!important
}

.change-log-content ul {
    list-style-type: disc;
    margin-left: 1rem;
    padding-left: 1rem;
}
.change-log-content li {
    margin-bottom: 0.5rem;
}

.bg-content {
    background-color: #F5F5F5;
    padding-bottom: 5%;
    min-height: 100vh;
}

.console-table thead tr {
    background-color: #f5f5f5;
}
.console-table th {
    border-bottom: 1px solid #eaeaea;
    position: relative;
    cursor: pointer;
}

.console-table th.dt-orderable-asc,
.console-table th.dt-orderable-desc {
    position: relative;
    padding-right: 24px;
    white-space: nowrap;
}

.console-table th.dt-orderable-asc .dt-column-order,
.console-table th.dt-orderable-desc .dt-column-order {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%2349485B"><path d="M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
}

th.sorting, th.sorting_asc, th.sorting_desc {
    cursor: pointer;
    padding-right: 20px !important;
}
/************************* DataTables *************************/
.dt-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.dt-search label {
    display: none;
}
.dt-search input {
    border: 4px solid #fff;
    border-radius: 20px;
    padding: 5px 15px 5px 35px;
    font-size: 14px;
    width: 560px;
    outline: none;
    transition: 0.3s;
    background-color: #fff;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.dt-search input:focus {
    border: 1px solid #0000CC;
    box-shadow: 0 0 5px rgba(73, 72, 91, 0.5);
}

.dt-search::before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%235f6368"%3E%3Cpath d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    position: absolute;
    left: 12px;
    top: 68%;
    transform: translateY(-50%);
}

.dt-paging, .dt-info, .dt-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dt-paging-button, .dt-buttons {
    color: #0000CC !important;
    padding: 0 3px;
}

.dt-paging-button.current, .dt-buttons.current {
    color: #0000CC !important;
    font-weight: bold;
}

.dt-paging-button.disabled, .dt-button.disabled {
    color: #49485b !important;
    opacity: 0.6;
}

.dt-paging-button:hover, .dt-button:hover {
    color: #0000FF !important;
    border-radius: 5px;
}

.clickable-row {
    cursor: pointer;
}
/************************* DataTables *************************/

.console-table th,
.console-table td {
    padding: 0.5rem;
    text-align: center;
    vertical-align: middle;
}
.console-table th {
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    background-color: #b3b2d6;
}
.console-table tbody tr {
    border-bottom: 1px solid #B3B2D6;
}

.console-table tbody tr:last-child {
    border-bottom: none;
}


.statusTd-table {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.3rem;
}

.console-table-line:hover, .console-table-line:hover td {
    background-color: #E1E0F5;
}

.linkIcone {
    text-decoration: none;
    color: white;
}

.console-table-line td {
    cursor: pointer;
}

.console-table-line td a {
    color: #49485b;
    text-decoration: none;
}

#messages th, #not-read-messages th {
    background-color: #FFFFFF;
    cursor: none;
    border-bottom: #FFFFFF;
    text-align: right;
}

.bubbleColor {
    background-color: var(--color-purple);
}

#messaging .message-wrapper {
    text-align: left;
}

.username {
    font-size: 1rem !important;
    color: #0000CC !important;
    display: block;
    margin-bottom: 4px;
    width: 100%;
    text-align: left;
}


#messaging .message-wrapper p {
    font-size: 0.8rem;
    color: #49485b;
    font-weight: var(--regular-font);
    margin: 0;
    padding: 0;
}

#messaging .timeAgo {
    font-size: 0.7rem;
    font-weight: var(--regular-font);
    color: #0000CC;
}

.centered-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pointer {
    cursor: pointer;
}

.callbackLink {
    color: #0000CC;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
}

.patientRequestStatus {
    display: flex;
    align-items: center;
}
.patientRequestStatus .circle {
    margin-right: 8px;
}
.tabs-list {
    margin-top: 5.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.tabs-list .nav-link {
    color: #49485b;
    background-color: transparent;
    border-radius: 4px 4px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    padding: 0.5rem 4rem;
}

.tabs-list .nav-link.active,
.tabs-list .nav-link:hover {
    color: #0000cc;
    font-weight: 600;
    border-color: #ccc;
    background-color: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

#groupTabsContent .nav-link {
    margin: 0 5px;
}
input:focus,
textarea:focus,
select:focus {
    border-color: #0000cc;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}
#groupTabsContent .nav-link.active,
#groupTabsContent .nav-link:hover {
    color: #fff;
    font-weight: 600;
    border-color: #ccc;
    border-radius: 12px;
    background-color: #0000cc;
}
.card {
    border-radius: 1rem;
}
ul#groupTabs .nav-link {
    border-radius: 1rem;
    margin: 0.25rem;
    background-color: #f1f1f1;
    color: #4400CC;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

ul#groupTabs .nav-link:hover {
    background-color: #6000CC;
    color: #fff;
}

ul#groupTabs .nav-link.active {
    background-color: #0000CC;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 204, 0.4);
    border-color: #3500CC;
}

.breadcrumb {
    margin: 6rem 0 auto;
    padding: 0 2rem 0;
}
.breadcrumb span {
    color: #49485B;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: " > ";
}

.breadcrumb-item.active {
    color: #0000CC;
}

.console-container {
    margin: 1rem 0 auto;
    padding: 1rem;
    background: #FFFFFF 0 0 no-repeat padding-box;
    border: 1px solid #B3B2D6;
    border-radius: 12px;
    font-family: "Poppins", sans-serif;
}

.content-title {
    color: #49485B;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.content-subtitle {
    color: #49485B;
    margin-bottom: 0.5rem;
    font-size: 1rem!important;
    font-weight: 600;
}

.content-description {
    color: #49485B;
    line-height: 1.4;
    font-size: 1rem;
}

#flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    z-index: 1050;
    text-align: center;
}

#flash-messages .alert {
    margin-bottom: 10px;
    font-size: 14px;
}

.login-page {
    background: linear-gradient(
            to bottom,
            #6600CC,
            #6000CC,
            #5100CC,
            #4400CC,
            #3500CC,
            #0000CC
    );
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin: 40px 0;
    border-bottom: 2px solid #6600CC;
    padding-bottom: 10px;
}

.presentationContent {
    background: linear-gradient(
            to bottom,
            #0000CC,
            #3500CC,
            #4400CC,
            #5100CC,
            #6000CC
    );
    color: white;
    padding-bottom: 20px;
}

.presentationLogo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.presentation {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#presentation p {
    margin-bottom: 0;
}

.nav-item {
    list-style: none;
}

.pagination {
    padding: 5px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 3px;
}

.page a, .page a:default, .page a:visited, .page a:hover, .page a:link {
    color: #0000CC;
    padding: 5px;
}
span.next  a, span.next  a:default, span.next  a:visited, span.next  a:hover, span.next a:link, .pagination .current {
    color: #49485B;
    padding: 0 5px 0;
}

.pagination .first a {
  color: #49485B!important;
  padding: 0 10px 0;
}

.pagination .first a, .pagination .previous a, .pagination .last a {
  color: #49485B!important;
  padding: 0 10px 0;
}

span.last  a, span.last  a:default, span.last  a:visited, span.last  a:hover, span.last  a:link {
    color: #0000CC;
}

.syncPatient {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

#loadingSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

.loading-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-builder-container {
    display: flex;
    gap: 1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0000CC;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.profile-picture-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.default-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ddd;
    font-size: 36px;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    text-align: center;
}

.circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.backgroundColorCircleConnected {
    background-color: #12CB81;
}
.backgroundColorCircleInterrupted {
    background-color: #E92222;
}

.acceptedAsk {
    background-color: #12CB81;
}
.waitingAsk {
    background-color: #FF9900;
}
.refusedAsk {
    background-color: #E92222;
}
.failedAsk {
    background-color: #49485B;
}

.isInterrupted {
    color: #9E0909;
}
.isConnected {
    color: #12CB81;
}
.yes {
    color: #8B9E09;
}
.no {
    color: #9E0909;
}

.connection-status-container {
    border-radius: 12px;
    border: 1px solid #ccc;
    padding: 1rem;
    position: relative;
}
.connection-status-container legend {
    width: 18rem;
    font-weight: bold;
    background: white;
    padding: 0 0.5rem;
    position: absolute;
    top: -1.1rem;
    left: 1rem;
}
#dashboard .card {
    border-radius: 1rem;
}

#dashboard .card-title svg {
    width: 1.8rem;
    height: 1.8rem;
}

#dashboard .card-body i {
    color: #fff;
}

#dashboard .card-title label {
    font-size: 1rem;
}

.card-title {
    color: #49485B;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.btn-gradient {
    display: inline-block;
    background: transparent linear-gradient(180deg, #6600CC 0%, #5300CC 50%, #4400CC 89%, #3500CC 100%, #0000CC 100%) 0 0 no-repeat padding-box;
    box-shadow: 0 3px 6px #00000029;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
}
.btn-gradient:hover {
    color: white;
    cursor: pointer;
}


.btn-ds {
    background: transparent linear-gradient(180deg, #6600CC 0%, #5300CC 50%, #4400CC 89%, #3500CC 100%, #0000CC 100%) 0 0 no-repeat padding-box;
    color: white;
    border: none;
}

.btn-ds:hover {
    background: transparent linear-gradient(180deg, #6600CC 0%, #5300CC 50%, #4400CC 89%, #3500CC 100%, #0000CC 100%) 0 0 no-repeat padding-box;
    color: white;
}

.background-radient {
    background: transparent linear-gradient(180deg, #6600CC 0%, #5300CC 50%, #4400CC 89%, #3500CC 100%, #0000CC 100%) 0 0 no-repeat padding-box;
    color: #fff;
}

.background-radient:hover {
    color: white;
}

#connection-status-label {
    display: flex;
    align-items: center;
}

.backgroundCardDashboard {
    background-color: #0000CC;
    color: white;
}

.changelog-entry {
    border-bottom: 1px solid #ccc;
    padding: 1rem 0;
}

.custom-centered-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-centered-container .form-control {
    width: 12rem;
    border-radius: 25px;
    box-shadow: 0 3px 6px #70707040;
}

canvas {
    width: 600px;
    height: 400px;
}

.category {
    margin-top: 3rem;
}

.category-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
}

.option input {
    margin: 0;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.link-details-patient {
    color: #49485B;
}

.action-btn--view svg, .action-btn--edit svg {
    fill: #007bff;
}

.action-btn--success svg, .action-btn--email-type svg {
    fill: #198754;
}

.action-btn--delete svg {
    fill: #ff0000;
}
.action-btn--delete--disabled svg,
.action-btn--edit--disabled svg,
.action-btn--email-type--disabled svg {
    fill: #656575;
}

.save_action {
    background: #fff;
    box-shadow: 0 3px 6px #00000029;
    color: #0000CC;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #0000CC;
}

.submit_action {
    background: transparent linear-gradient(180deg, #6600CC 0%, #5300CC 50%, #4400CC 89%, #3500CC 100%, #0000CC 100%) 0 0 no-repeat padding-box;
    box-shadow: 0 3px 6px #00000029;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
}

.top-35 {
    top: 35% !important;
}

.end-4 {
    right: 4em !important;
}
/*************************GUIDE **************************/
.guides-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.guide-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.guide-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.guide-link img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
/***************** GUIDE **************************/
/***************** Messagerie *********************/
#chat-panel {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#chat-panel.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.invisible-offscreen {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.fade-in-active {
    opacity: 1;
}
.fade-out {
    opacity: 1;
    transition: opacity 0.6s ease;
}
.fade-out-active {
    opacity: 0;
}
.transition-width {
    transition: width 0.4s ease-in-out;
}
.browser-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-create-message-type {
    display: inline-block;
    background: transparent linear-gradient(180deg, #6600CC 0%, #5300CC 50%, #4400CC 89%, #3500CC 100%, #0000CC 100%) 0 0 no-repeat padding-box;
    box-shadow: 0 3px 6px #00000029;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
}

.add-margin-left40 {
    margin-left: 40rem;
}
.add-margin-left35 {
    margin-left: 35rem;
}

.btn-create-message-type:hover {
    background-color: #5b0ca3;
}

.btn-message-type {
    background-color: var(--color-purple);
    color: white;
    border: none;
}

.btn-message-type:hover {
    background-color: var(--color-purple);
    color: white;
}

.dropdown-item:active {
    background-color: var(--color-purple) !important;
    color: white !important;
}

.custom-dropdown {
    --bs-dropdown-link-hover-bg: var(--color-purple);
    --bs-dropdown-link-hover-color: #fff;
}
.conversations-table tbody tr {
    cursor: pointer;
    transition: transform .12s ease;
}

.conversations-table tbody tr:hover {
    transform: translateX(1px);
}

.conversations-table tbody tr:hover td {
    background: linear-gradient(
            90deg,
            rgba(99,102,241,.14) 0%,
            rgba(99,102,241,.08) 55%,
            rgba(99,102,241,0) 100%
    );
    box-shadow: inset 3px 0 0 #6366f1;
}

.conversations-table tbody tr:hover td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.conversations-table tbody tr:hover td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}


.conversations-table tbody tr:hover .username [aria-label="non-lu"] {
    background-color: #4f46e5;
}
/************** FIN Messagerie ********************/


/* Responsive styles for guide links */
@media (max-width: 900px) {
    .guide-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .guide-link img {
        width: 64px;
        height: 64px;
        margin-bottom: 8px;
    }

    .guide-link span {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    #messaging .dt-search input {
        width: 30.5rem;
    }
}

@media (min-width: 992px) {

}
@media (max-width: 1023px) {
    #messaging .dt-search input {
        width: 32.5rem;
    }
}

@media (min-width: 1024px) {
    #messaging .dt-search input {
        width: 19rem;
    }

}

@media (min-width: 1200px) {
    #messaging .dt-search input {
        width: 23.5rem;
    }
}

@media (min-width: 1400px) {
    #messaging .dt-search input {
        width: 40rem;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}