:root {
    --primary-color: #b780ff;
    --primary-light: #d7b8ff;
    --primary-dark: #9260cc;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p {
    font-size: 1rem;
    
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    height: 100dvh;
}

/* Navbar */
nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: white;
    padding: 10px;
}

nav .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Esconde o botão de menu no desktop */
.menu-bar {
    display: none;
}

/* Sidebar */
#sidebar {
    background: linear-gradient(to bottom right, #b780ff, #6a00ff);
    color: white;
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: block;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

#sidebar .logo {
    margin: 20px;
    fill: #fff;
}
/* Conteúdo Principal */
main {
    margin-left: 250px;
    flex-grow: 1;
    padding-top: 15px;
}

/* Responsivo - Celular */
@media (max-width: 768px) {
    /* Mostra o botão do menu no mobile */
    .menu-bar {
        display: flex;
    }

    /* Esconde o sidebar por padrão */
    #sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100vh;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    }

    #background-sidebar {
        background-color: rgba(0,0,0,0.3);
        opacity: 0;
        display: none;
        position: fixed;
        width: 100dvh;
        height: 100dvh;
        z-index: 99;
        transition: opacity 300ms ease-in-out;
        animation: fadeIn 300ms ease-in-out;
    }


    /* Quando ativo, o sidebar aparece */
    #sidebar.active {
        transform: translateX(0);
    }

    /* O conteúdo principal ocupa a tela toda no mobile */
    main {
        margin-left: 0;
        width: 100%;
        padding-top: 0;
    }

    nav {
        display: flex;
    }
    #tab {
        display: none;
        padding: 15px;
        padding-top: 0 !important;
    }

}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.loading-button {
    position: absolute;
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    display: none;
    opacity: 0;
    animation: 0.2s fadeIn ease forwards;
}

.loading-button .loading-spinner__circle-stroke {
    stroke: #fff;
}

.loading-coteiner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    z-index: -1;
}

.loading {
    position: relative;
    width: 40px;
    height: 40px;
}

.loading:before {
    content: '';
    display: block;
    padding-top: 100%;
}

.loading-spinner__circle-svg {
    animation: loading-spinner-rotate 1.28973s linear infinite;
    height: 100%;
    transform-origin: center center;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.loading-spinner__circle-stroke {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: loading-spinner-dash 2s ease-in-out infinite;
    stroke-linecap: round;
    stroke-width: 4px;
    stroke: #000;
}

@keyframes loading-spinner-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loading-spinner-dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

/* Botão transparente */
.transparent {
    background: transparent;
    color: inherit;
    font: inherit;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
    font-weight: 500;
}

.transparent:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Logo */
.logo {
    height: 50px;
    width: auto;
}

/* Navbar - Layout Flexível */
nav .left,
nav .right {
    display: flex;
    align-items: center;
    gap: 10px;
}


.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.sidebar-header h1 svg {
    margin-right: 0.5rem;
}

.menu {
    padding: 1.5rem 0;
    flex-grow: 1;
}

.menu-item {
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #fff;
}

.menu-item svg {
    margin-right: 0.8rem;
    fill: #fff
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    color: var(--primary-dark);
}

.card-title {
    font-size: 0.9rem;
    color: #777;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-stats {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.card-stats.positive {
    color: #2ecc71;
}

.card-stats.negative {
    color: #e74c3c;
}

.card-stats svg {
    margin-right: 0.3rem;
}

.divider {
    border-top: 1px solid RGB(0,0,0,0.1);
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: -1.5rem;
    margin-right: -1.5rem;

}

#tab {
    display: none;
    padding: 15px;
}

#tab.active {
    display: block;
}

.user-container {
    display: flex;
    align-items: center;
}

.user-container .user-uid {
    display: flex;
    align-items: center;
}
.user-container img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.copy-uid.transparent {
    padding: 5px;

}

.copy-uid svg {
    width: 15px;
    height: 15px;
}

.card-title {
    font-weight: 600;
}

.alert {
    display: flex;
}

.loader-error {
    display: none;
    align-items: center;
    flex-flow: column;
    gap: 5px;
    font-weight: 500;

}

.loader-error p {
    color: #eb6363;
}

.loader-error .icon {
    fill: #eb6363;
    width: 40px;
    height: 40px;
}

.try-again {
    color: #fff;
    background: #b780ff;
    border-radius: 5px;
    padding: 10px 20px;
    fill: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    border: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: 0.3s ease-in-out;
}

.search-input:focus {
    border-color: #b780ff;
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    transition: 0.3s;
}

.search-icon svg {
    fill: #aaa;
}

.search-icon:hover {
    color: #b780ff;
}

.support {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

#loading-support {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: 30px;
}
/* Estilos gerais para o contêiner de conversações */
.support-conversations {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    margin-top: 20px;
    position: relative;
}

.support-conversations .divider {
    margin-left: -15px;
    margin-right: -15px;

}
/* Estilos para cada item de conversa */
.conversation-container {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.3s ease;
    margin: -15px;
    padding: 15px;
    position: relative;
}

/* Estilo para a imagem do ícone de conversa */
.conversation-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.conversation-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Estilo para o nome da conversa */
.conversation-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Estilo para a última mensagem */
.conversation-lastMessage {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    font-size: 14px;
    color: #666;
}

.lastMessage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Ícone da última mensagem */
.lastMessage-icon svg {
    width: 18px;
    height: 18px;
    fill: #007bff;
}

/* Estilo para o texto da última mensagem */
.lastMessage-text {
    margin: 0;
    color: #444;
    max-width: 200px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Estilo de hover para o contêiner da conversa */
.conversation-container:hover {
    background-color: #f0f4f7;
    cursor: pointer;
}

.newMsgCount {
    padding: 10px;
    background: #28A745;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #fff;
}

.unauthorized-client {
    position: fixed;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 100;
    background: #fff;
    text-align: center;
    color: RGB(0,0,0,0.5);
    padding: 20px;
    gap: 10px
}

.unauthorized-client p {
    font-size: 0.9rem;
    color: #CC9900;
}

.loading-page {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 10000;
    background: #fff;
    flex-direction: column;
}

.loading-page .logo {
    height: 120px;
}

.loading-page .loading {
    width: 30px;
    height: 30px;
}

.loading-page .loading-spinner__circle-stroke {
    stroke: #000;
}

.support-chat {
    display: flex;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: transform 200ms ease;
    transform: translateX(100%);
}

.chat-top {
    width: 100%;
    background: #b780ff;
    padding: 10px;
    display: flex;
    align-items: center;
}

.chat-top h1 {
    font-size: 1rem;
}

.chat-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    background: #fff;
}

.chat-input-container {
    display: flex;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
    padding: 15px;
    gap: 10px;
}

.chat-input {
    background-color: RGB(255, 255, 255);
    color: #333333;
    border: none;
    border-radius: 40px;
    padding: 15px;
    font-size: 14px;
    width: 100%;
    line-height: 20px;
    font-family: 'Roboto', sans-serif;
    outline: 1px solid RGB(200, 200, 200);
    box-sizing: border-box;
}

textarea::-webkit-scrollbar {
    display: none;
}

.send {
    border-radius: 50%;
    background: #b780ff;
    display: flex;
    width: 45px;
    height: 45px;
    max-height: 45px;
    max-width: 45px;
    min-width: 45px;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    border: none;
}

.send .icon {
    width: 30px;
    height: 30px;
    max-height: 25px;
    max-width: 25px;
    min-width: 25px;
    min-height: 25px;
    fill: #fff;
}

.message-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.admin-message {
    border-radius: 20px 5px 20px 20px;
    background: #d4b3ff;
    padding: 15px;
    align-self: flex-end;
    width: fit-content;
    max-width: 80%;
    box-shadow: 0px 1px 0px RGB(0,0,0,0.09);
}

.user-message {
    border-radius: 5px 20px 20px 20px;
    background: #f2f2f2;
    padding: 15px;
    align-self: flex-start;
    max-width: 80%;
    box-shadow: 0px 1px 0px RGB(0,0,0,0.09);
}

.trustIcon .icon {
    width: 20px;
    height: 20px;
    fill: RGB(0,0,0,0.5);
}

.trustIcon {
    width: 20px;
    height: 20px;
    align-self: flex-end;
    display: flex;
}

.error-message-support {
    padding: 20px;
    border: 2px solid rgba(255, 115, 105, 0.9);
    background: rgba(255, 115, 105, 0.1);
    width: 100%;
    border-radius: 10px;
    color: rgba(255, 115, 105, 0.9);
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.error-message-support .icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    min-width: 20px;
    min-height: 20px;
    fill: rgba(255, 115, 105, 0.9);
}

.message-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.message-profile img {
    width: 20px;
    height: 20px;
}

.trustIcon .icon {
    width: 20px;
    height: 20px;
    fill: RGB(0,0,0,0.5);
}

.trustIcon {
    width: 20px;
    height: 20px;
    align-self: flex-end;
    display: flex;
}

.warning-box {
  background-color: #fff3cd;
  color: #856404; 
  border: 2px solid #ffeeba;
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-family: Arial, sans-serif;
  max-width: 600px;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.warning-box i {
  margin-right: 12px;
  font-size: 24px;
}    

/* Estilos do botão */
.allow-notifications {
    padding: 12px 30px;
    background-color: #4CAF50;
    background-image: linear-gradient(to bottom right, #4CAF50, #3D9140);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    margin-right: 10px;
}

.allow-notifications .icon {
    fill: #fff;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.allow-notifications:hover {
    background-image: linear-gradient(to bottom right, #55c25a, #45A549);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

.allow-notifications:hover .icon {
    transform: scale(1.1);
}

.allow-notifications:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.allow-notifications:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.allow-notifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.7s ease;
}

.allow-notifications:hover::before {
    left: 100%;
}

.chat-control-button {
    background-color: #4fba3a;
    color: white;
    padding: 15px 32px;
    text-align: center;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    animation: pulse 1.5s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    gap: 5px;
    position: relative;
}

.chat-control-button .icon {
    fill: #fff;
    width: 20px;
    height: 20px;
}

.chat-control-button:hover {
    background-color: #45a049;
}

.case-solved {
    display: none;
}

.admin-control {
    padding: 15px;
}

.responsible-container {
    padding: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.responsible-container h1 {
    font-size: 1.3rem;
    text-align: center;
}

.responsible-container p {
    text-align: center;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 186, 58, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 186, 58, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 186, 58, 0);
    }
}




.box {
    width: 100%;
    padding: 30px;
    background-color: #f9f9f9;
    color: #333333;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.videos {
    height: 100%;
}

.no-videos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 40px;
    width: 300px;
    margin: 0 auto;
}

.no-videos img {
    width: 200px;
    height: auto;
}

.no-videos h2 {
    font-size: 1.2em;
}

.no-videos p {
    text-align: center;
}

.tab-title {
    font-size: 1.4rem;
}

.round-button {
    background: #000;
    color: #fff;
    border-radius: 20px;
    padding: 9px 13px;
    font-weight: 500;
    border: none;
    transition: background 200ms ease;
    margin-top: 10px;
}

.round-button:hover {
    background: #262626;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

.modal {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
}

.modal h2 {
    font-size: 1.2rem;
}
.tab-bar {
    position: relative;
    display: flex;
    justify-content: space-around;
    border-bottom: 2px solid #ccc;
    background: #fff;
}

.tab-bar a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.tab-bar a:hover {
    color: black;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: black;
    transition: all 0.3s ease;
    z-index: 0;
}

.drop-zone {
    border: 2px dashed #aaa;
    border-radius: 10px;
    padding: 40px;
    color: #666;
    transition: background-color 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.drop-zone p {
    text-align: center;
    font-weight: 600;
}

.drop-zone.dragover {
    background-color: #f0f0f0;
    border-color: #3498db;
    color: #3498db;
}

#fileInput {
    display: none;
}

#or {
    text-align: center;
    font-weight: 500;
}

#progressBar {
  width: 100%;
  height: 10px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 10px;
  overflow: hidden;
  background-color: #e0e0e0;
  border: none;
}

/* Estilo da barra preenchida no Chrome/Safari */
#progressBar::-webkit-progress-bar {
  background-color: #e0e0e0;
}

#progressBar::-webkit-progress-value {
  background-color: #b780ff;
  transition: width 0.3s ease;
}

/* Estilo da barra preenchida no Firefox */
#progressBar::-moz-progress-bar {
  background-color: #b780ff;
}

#percent {
  display: block;
  font-weight: bold;
  color: #333;
  font-family: sans-serif;
  margin-left: 10px;
}

.uploading {
    display: none;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.details {
    display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #ccc;
  border: 1.5px solid #b3b3b3;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.form-group:focus-within {
  border-color: black;
}

.label-inside {
  font-size: 1rem;
  font-weight: 600;
  color: #808080;
}

input,
textarea {
  color: #000;
  outline: none;
  resize: vertical;
  border: none;
}

input::placeholder,
textarea:placeholder {
  font-style: 'Raleway';
  color: #999999;
}

.details-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-modal {
    padding: 5px;
}

.video-tamplate {
    border-radius: 5px;
    background: #F9F9F9;
   overflow: hidden;
   width: 100%;
   margin-bottom: 15px;
}

.video-miniature {
    background: #E9E9E9;
    width: 100%;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-miniature h4 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tamplate-bottom {
    padding: 15px;
}
.tamplate-bottom h3 {
    font-size: 0.9rem;
    color: #A3A3A3;
    font-weight: 400;
}

#video {
    width: 100%;
    height: 100%;
    display: none;
}

#title-dashboard {
    margin-bottom: 20px;
    font-size: 1.7rem;
}
#nameUser {
    color: #b780ff;
}


.admin-control {
    background: #fff;
    width: 100%;
    border-top: 1px solid #ccc;
}