@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');



:root {
    --color1: #39b6b9;
    --color2: #e94166;
    --bgcolor: #ffffff;
    --cor-texto: #282828;
    --cor-hover: #e6f7f7;
    --cor-panel-fundo: #e1e1e1;
    --font-family: "Poppins", 'Helvetica', 'Arial', sans-serif;
    --font-weight: 400;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img{
    max-width: 100%;
}

body{
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    background: var(--bgcolor);
    color: var(--cor-texto);
}

.color1{
    color: var(--color1)
}

.color2{
    color: var(--color2);
}

.bg-rosa {
    background-color: var(--color2);
}

.bg-color1{
    background-color: var(--color1);
}

.bg-color2{
    background-color: var(--color2);
}

.pink {
    color: var(--color2);
}

.fs-20 {
    font-size: 20px;
}

.mt-5 {
    margin-top: 100px !important;
}

.mt-4 {
    margin-top: 80px !important;
}


.mt-3 {
    margin-top: 50px !important;
}

.mb-3 {
    margin-bottom: 50px !important;
}

.app {
    display: flex;
    height: 100dvh;
    overflow: hidden;
    transition: all 0.3s ease;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

.sidebar {
    width: 80px;
    background-color: #3ab8bc;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    cursor: pointer;
    text-align: center;
}

.menu-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
}

.menu-item span {
    font-size: 12px;
    font-weight: 400;
    color: #ffffff;
}

.menu-top,
.menu-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-logo img {
    width: 28px;
    height: auto;
    opacity: 0.6;
    margin-top: 20px;
}

.main-content {
    margin-left: 80px;
    padding: 20px 40px;
    flex: 1;
    overflow-y: auto;
    transition: all 1s ease-in-out;
    margin-right: 300px;
}

.right-hidden .main-content{
    margin-right: 0;
}

.title {
    color: var(--color2);
}

.toggle-panel {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--color1);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1s ease-in-out, background 0.3s;
}

.toggle-panel:hover {
    background: var(--color2);
}

.patient-panel.hidden .toggle-panel {
    right: 305px;
    rotate: 180deg;
    background: var(--color2);
}

.patient-panel.hidden .toggle-panel:hover{
    background: var(--color1);
}

.top-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--color1);
}

.top-bar .logo {
    font-size: 16px;
    color: var(--cor-texto);
}

.top-bar .logo img[src*=".svg"]{
    min-height: 70px;
}

.area-terapeutica {
    font-size: 14px;
    color: var(--cor-texto);
    visibility: hidden;
}

.progress-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.slide-content .slide-header{
    display:flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.slide-content .slide-header .head {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 8;
}

.slide-content .slide-header .buttons {
    display: inline-flex;
    justify-content: flex-end;
    gap: 10px;
    flex: 2;
}

.slide-content .slide-body{
    padding-block: 30px;
}

.slide-content .slide-body h3{
    text-align: center;
    margin-bottom: 30px;
}

.slide-content .slide-body .saveAnswers{
    margin-top: 20px;
    text-align: center;
}

.slide-content .slide-ref{
    margin-block: 10px;
    color: #cccccc;
}

img[class^="i-"]{
    width: 20px;
    height: 20px;
    margin-left: 5px;
    transition: transform 0.1s ease;
}

img[class^="i-"]:hover{
    cursor: pointer;
    transform: translateY(1px);
}

button[class*="-button"] {
    padding: 10px 20px;
    border-radius: 25px;    
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    border: 1px solid var(--color2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

button[class*="-button"]:hover, button[class*="-button"]:active{
    cursor: pointer;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

button[class*="-button"].small{
    padding: 5px 10px;
    font-size: 12px;
}

button.white-button-no-border {
    border: none;
}

button.pink-button {
    background: linear-gradient(145deg, var(--color2), #d82e55);
    color: #ffffff;
}

button.white-button:hover {
    background: linear-gradient(145deg, var(--color2), #d82e55);
    color: #ffffff;
}

button.pink-button:hover {
    background: #ffffff;
    color: var(--cor-texto);
}

/*Painel direito*/

.patient-panel {
    width: 300px;
    height: 100%;
    top: 0;
    right: 0;
    background-color: var(--cor-panel-fundo);
    padding: 20px;
    position: fixed;
    transition: all 1s ease-in-out;
    flex-shrink: 0;
}

.patient-panel.hidden {
    /*width: 0;
    padding: 0;
    overflow: hidden;*/
    transform: translateX(100%);
}

.toggle-panel2.hidden {
    visibility: hidden;
}

.toggle-panel2 {
    position: absolute;
    visibility: visible;
    top: 5px;
    right: 5px;
    background: var(--color2);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s;
}

.toggle-panel2:hover{
    background: var(--color1);
}

.add-slide-btn {
    position: absolute;
    /*top: 115px;
    right: 300px;*/
    top: 93px;
    right: 317px;
    background-color: #e63973;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    width: 30px;
    height: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    /* transition: transform 0.1s ease, box-shadow 0.1s ease; */

}

body.right-hidden .add-slide-btn {
    right: 0px;
}

.add-slide-btn:hover {
    /* background: var(--color2); */
    /* Inverte o gradiente no hover */
    /* transform: scale(1.1); */
    /* Aumenta o botão ao passar o mouse */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    /* Sombra mais forte no hover */
}

.patient-info {
    text-align: center;
}

.patient-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.1;
    position: relative;
}

.patient-info p:after{
    content: "";
    display: block;
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    border-bottom: 1px solid var(--color1);
}

.patient-info p:last-child:after{
    display: none;
}

/* .patient-info img {
    border-radius: 50%;
    margin-bottom: 10px;
}
 */

.patient-info .case-photo {
    max-width: 50%;
    margin-inline: auto;
    border-radius: 100%;
    margin-bottom: 10px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.patient-info h3 {
    color: var(--color2);
}

.patient-info .actions {
    margin-block: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.patient-info .actions button {
    padding: 6px 16px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(145deg, #fff, #dfd7d7);
    cursor: pointer;
    font-weight: bold;
    color: var(--cor-texto);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.patient-info .actions button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.patient-info .actions button.active, .patient-info .actions button:hover {
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(145deg, var(--color2), #dd2e54);
}


/*Timeline*/
.timeline {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
    padding-top: 10px;
    margin: 30px auto;
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #aaa transparent;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    flex-shrink: 0;
    position: relative;
}


.timeline .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 60%;
    width: calc(100% + 30px);
    height: 1px;
    background-color: #dcdcdc;
    /*transform: translateY(-50%);*/
    z-index: 0;
}

/* 
.circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #dcdcdc;
    border: 3px solid #ffffff;
    z-index: 1;
    margin-top: 20px;
}

.step.completed .circle {
    background-color: var(--color1);
}

.step.active .circle {
    background-color: var(--color2);
} */

.circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #dcdcdc, #ffffff);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    /*margin-top: 20px;*/
    z-index: 1;
}

/* Etapa completada */
.step.completed .circle {
    background: linear-gradient(145deg, var(--color1), #3ed0d2);
    box-shadow: 0 0 10px rgba(46, 185, 187, 0.5);
}

/* Etapa ativa */
.step.active .circle {
    background: linear-gradient(145deg, var(--color2), #f0607c);
    box-shadow: 0 0 10px rgba(233, 65, 102, 0.5);
}

/* .step span {
    margin-top: 8px;
    font-size: 10px;
    text-align: center;
    color: var(--cor-texto);
    #ffffff-space: nowrap;
} */

.step span {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 500;
    color: #272643;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

/* Etapa ativa */
.step.active span {
    color: var(--color2);
    font-weight: 600;
    transform: scale(1.05);
}

/* .step span::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    margin: 4px auto 0;
    background: currentColor;
    transition: width 0.3s;
}

.step.active span::after {
    width: 40%;
} */

.tooltip {
    display: none;
    top: -10px;
    position: absolute;
    background-color: #fff;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    gap: 8px;
    flex-direction: row;
    width: 70px;
    height: 40px;
    color: #333;    
    cursor: pointer;
}

.tooltip img {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.tooltip img:hover {
    transform: translateY(1px);
}

.step:hover .tooltip {
    display: flex;
}

.see-edit img {
    margin-left: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.see-edit img:hover {
    transform: scale(1.2);
}

.main-content h2 {
    font-size: 1.8rem;
    color: #e63966;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.main-content h2 img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.question-section h2 {
    text-align: center;
}

.question-section h3 {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}


/*QUIZ*/

.numberOfVotes{
    text-align: right;
}

.option {
    padding: 15px;
    border: 2px solid var(--color1);
    border-radius: 25px;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    color: #272643;
    font-size: 16px;
}

.option:hover {
    background-color: var(--cor-hover);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.option:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option.active {
    background: linear-gradient(145deg, var(--color1), #1ea3a5);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px
}

/*exams de diagnóstico*/
.exam-card {
    background-color: #efefef;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin-top: 1rem;
    gap: 1rem;
}

.bola {
    width: 70px;
    aspect-ratio: 1 / 1;
    background-color: var(--color1);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;    
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bola.img:hover {
    cursor: pointer;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.bola img {
    max-width: 60%;
    height: auto;
}

.exam-info .exam-title {
    color: var(--color1);
    font-weight: bold;
    margin-bottom: 0.3rem !important;
    text-align: left !important;
}

.exam-info .exam-description {
    color: #333;
    margin: 0;
}

.exam-card-vertical {
    max-width: 33%;
    padding-right: 20px;
}

.exam {
    max-width: 100%;
    background-color: #ffffff;
    border-radius: 25px;
    padding: 0px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.exam:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.exams-vertical-cards {
    display: flex;
}

/*Reunião e Discussão*/

.meeting {
    background-color: var(--cor-panel-fundo);
    border-radius: 25px;
    padding: 15px;
    width: 100%;
    border: 1px solid var(--cor-panel-fundo);
    min-height: 40dvh;
    resize: none;
    font-size: 14px;
}

.discussao {
    width: 100%;
}

#timer{
    color: var(--cor-texto);
    font-size: 14px;
    display: inline-block;
    margin-left: 5px;
    font-weight: var(--font-weight);
}


/*Gráfico*/

#bar-chart {
    /*margin: 0 auto;*/
    max-width: 90%;
}

.bar-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding-top: 20px;
    border-top: 1px solid #cccccc;
}

#bar-chart .bar-row:first-child{
    padding-top: 0;
    border-top: none;
}

.bar-row .label {
    font-size: 0.9rem;
    color: var(--color2);
    margin-bottom: 0.5rem;
}

.bar-container {
    position: relative;
    background: #ffffff;
    height: 24px;
    border-radius: 12px;
    overflow: visible;

}

.bar {
    height: 100%;
    /* background: var(--cor-panel-fundo); */
    width: 0;
    border-radius: 0 12px 12px 0;
    transition: width 1.7s ease;
    box-shadow: inset 0 2px 4px rgba(107, 217, 251, 0.2), 1px 2px 3px rgba(2, 204, 254, 0.1);
    background: linear-gradient(145deg, var(--cor-panel-fundo), var(--color1));
    /* box-shadow:
        0 0 10px rgba(0, 240, 255, 0.6),
        inset 0 0 5px rgba(0, 240, 255, 0.5),
        2px 2px 10px rgba(0, 0, 0, 0.3); */
    position: relative;
}


.bar-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color1);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    padding-left: 10px;
    transition: left 0.2s ease, opacity 0.2s ease 1s;
    /*atraso igual à duração da barra */
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/*popups*/
.session-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.session-title {
    width: 100%;
}

.equipa {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    flex: 1 1 30%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.equipa h3 {
    margin-top: 0;
}

.add-btn {
    font-size: 28px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: var(--color1);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.add-btn:hover {
    transform: scale(1.1);
}

.modal:not([popover]) {
    display: none;
    font-family: var(--font-family);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}


.modal-content {
    font-family: var(--font-family);
    background: var(--bgcolor);
    color: var(--cor-texto);
    margin: 4% auto;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content h2{
    margin-bottom: 1rem;
}

.fechar {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.fechar.pink{
    color: var(--color2);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    border-radius: 12px 12px 0 0;
    flex: 1;
    padding: 10px;
    background: var(--bgcolor);
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.tab.active {
    background: var(--color2);
    color: #ffffff;
}

.tab-content {
    display: none;
}

.tab-content.show {
    display: block;
}

input:not([type='checkbox'], [type='radio']), textarea, select {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.delete {
    background: transparent;
    color: red;
    border: 1px solid red;
    padding: 8px 16px;
    border-radius: 6px;
}

.save {
    background: #d50032;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
}

.accordion-wrapper .accordion-header {
    background-color: #dbdbdb;
    padding: 10px 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: 0.4s;
    border-radius: 100px;
    margin-bottom: 10px;
}

.accordion-wrapper .accordion-header:after {
    content: '\002B';
    color: #777777;
    font-weight: 500;
    float: right;
    margin-left: 5px;
    font-size: 18px;
    line-height: 1.3;
}

.accordion-wrapper .accordion-header.active, .accordion-wrapper .accordion-header:hover {
    cursor: pointer;
    background-color: var(--color1); 
    color: #ffffff;
}

.accordion-wrapper .accordion-header:hover:after {
    color: #ffffff;
}

.accordion-wrapper .accordion-header.active:after {
  content: "\2212";
  color: #ffffff;
}

.accordion-wrapper .accordion-panel {
    padding: 0 18px 10px 18px;
    display: none;
    overflow: hidden;
    transition: all 0.2s ease-out;
}

.accordion-wrapper .accordion-panel.active {
    display: block;
}

#modalTemplate .buttons{
    margin-block: 10px;
}

.slide-content .slide-body .slideImg{
    max-width: 100%;
    display: block;
    margin-inline: auto;
}

.preview_img {
    background-color: rgba(0,0,0,0.3);
    position:relative;
    margin-top: 1rem;
    padding: 0.5rem;
}

.preview_img img{
    max-width: 50%;
    display: block;
}

.preview_img .file-info{
    margin: 5px 0 0 0;
}