.perfil {
    background-color: #5C22AD;
    color: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #5C22AD;
    font-weight: middle;
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    font-family: var(--fonte-principal);
}

.container-professor {
  max-width: 50vw;
}

.titulo-container-professor {
  font-size: 32px;
  margin-bottom: 20px;
}

.nome-professor{
    font-size: 24px;
}

.container-imagem-professor {
  float: left;              /* faz a imagem flutuar */
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 20px 20px 0;    /* espaço entre imagem e texto */
  shape-outside: circle();  /* define área circular */
  clip-path: circle();      /* recorta visualmente */
}

.imagem-professor {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container-descricao-professor {
  text-align: justify;
}

.quantidade-matriculas {
    font-size: 18px;
    color: #2e2e2e;
    margin-top: 5px;
}

.container-editar-perfil{
  width: 100%;
  height: 600px;
  display: flex;
}

.editar-perfil {
  margin-left: 10%;
  margin-top: 5vh;
  height: 100%;
  width: 80%;
  background-color: white;
  align-self: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;           
  flex-direction: row;     
}

.titulo-editar-perfil{
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: middle;
}

.container-editar-dados{
  width: 70%;
  height: 100%;
  padding: 20px;
  background-color: rgb(255, 255, 255);
}

.input-editar-perfil{
  width: 80%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  display: block;
}

.botao-salvar{
  background-color: #38BC8E;
  margin-top: 10%;
  margin-left: 70%;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.botao-salvar:hover {
  background-color: #32a876;
}

.foto-perfil {
  width: 80px;             
  height: 80px;             
  aspect-ratio: 1 / 1;      
  display: inline-flex;     
  align-items: center;
  justify-content: center;
  border-radius: 50%;       
  overflow: hidden;         
  padding: 0;               
  border: 0;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;   
  margin-right: 20px;
}
.foto-perfil:hover{
    color: rgb(0, 0, 0);
    text-decoration: none;
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}

.imagem-foto-perfil {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;        
  object-position: center;  
  border-radius: 0;
}

.acesso-perfil {
    height: 60vh;
    width: auto;
    border-radius: 0 0 0 10px;
}

.linha-sombra {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #6c5ce7, #ffffff);
    margin-bottom: 20px;
}
.linha-roxa {
    width: 4px;
    height: 78.5%;
    background-color: #6c5ce791;
    margin-bottom: 20px;
    position: absolute;
    left: 55px;
    top: 122px;
}
.linha-design {
    width: 100%;
    height: 80px;
    display: flex;
    bottom: 0;
    background-color: transparent;
    left: 0;
    gap: 20px;
    margin-top: 10vh;
}

.tamanho-icone-livro {
    font-size: 200px;
    color: #00000041;
}


.design-roxo-1 {
    width: 8%;
    height: 120px;
    background-color: #6c5ce791;
    position: absolute;
    bottom: 0;
    left: 5px;
}

.design-roxo-2 {
    width: 8%;
    height: 70px;
    background-color: #38bc8e80;
    position: absolute;
    bottom: 0;
    left: 59px;
}

.design-roxo-3 {
    width: 8%;
    height: 100px;
    background-color: #6c5ce791;
    position: absolute;
    bottom: 0;
    left: 100px;
}

.design-roxo-4 {
    width: 8%;
    height: 60px;
    background-color: #38bc8e80;
    position: absolute;
    bottom: 0;
    left: 145px;
}

.design-roxo-5 {
    width: 8%;
    height: 90px;
    background-color: #6c5ce791;
    position: absolute;
    bottom: 0;
    left: 190px;
}

.design-roxo-6 {
    width: 8%;
    height: 115px;
    background-color: #38bc8e80;
    position: absolute;
    bottom: 0;
    left: 235px;
}

.design-roxo-7 {
    width: 8%;
    height: 80px;
    background-color: #6c5ce791;
    position: absolute;
    bottom: 0;
    left: 280px;
}

.design-roxo-8 {
    width: 8%;
    height: 110px;
    background-color: #38bc8e80 ;
    position: absolute;
    bottom: 0;
    left: 325px;
}

.design-roxo-9 {
    width: 8%;
    height: 120px;
    background-color: #6c5ce791;
    position: absolute;
    bottom: 0;
    left: 370px;
}

.corpo-acesso-perfil{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.linha-triangulo {
  display: flex;
  align-items: center; 
  gap: 10px;  
  margin-bottom: 40px;         
}


.triangulo-roxo {
  width: 0;
  height: 0;
  border-top: 10px solid #6c5ce7;
  border-bottom: 10px solid #6c5ce7;
  border-left: 10px solid #6c5ce7;
  border-right: 10px solid #6c5ce7;
  border-radius: 50% solid #6c5ce7;
  flex-direction: row;
}


.linha-triangulo:hover .texto-triangulo {
  color: #6c5ce7;
  transition: 0.2s;
}

.linha-triangulo:hover .triangulo-roxo {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left:20px solid #6c5ce7;
  border-right: 10px solid transparent;
  transition: 0.2s;
}

.texto-triangulo {
  margin-left: 10px;
  font-size: 25px;
  color: #2e2e2e;
  flex-direction: row;
}



a {
  color: inherit;
  text-decoration: none;
}

.tornar-se-ofertante a {
    font-size: 16px;
    color: #522197;
    text-decoration: none;
    font-family: var(--fonte-principal);
    margin-right: 30px;
    border: solid 1px #522197;
    padding: 10px;
}
.tornar-se-ofertante a:hover {
    background-color: #522197;
    color: white;
    transition: 0.3s;
}

.input-descricao {
    width: 80%;
    min-height: 120px; 
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc; 
    border-radius: 4px;
    font-size: 16px;
    display: block;
    resize: vertical;    
}

.imagem-cadastro-professor{
  height: 100%;
  width: 100%;
}

.carde-cursos-cliente {
    width: 18rem;
    min-height: 16rem;
    background-color: #ffffff;
    color: rgb(53, 52, 52);
    border-radius: 5px;
    border: 1px solid #cac9ca;
    display: inline-block;
    padding: 0;
    font-family: var(--fonte-principal);
}

.sem-modulos {
    font-size: 18px;
    color: #2e2e2e;
    margin-top: 20px;
    font-family: var(--fonte-principal);
}

#foto-atual, #preview-foto { 
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #dee2e6;
}

.container-editar-imagem{
  width: 30%;
  height: 100%;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 25%;
}

.carrinho {
    font-size: 30px;
    color: #000000;
    margin-right: 30px;
}

/* ====== Carrinho (específico e com prioridade) ====== */
article.carrinho-article { width: 100%; }
.carrinho-container {
  max-width: 1200px;
  margin: 80px auto 60px; /* distância do header */
  padding: 0 24px;
  box-sizing: border-box;
  font-family: var(--fonte-principal);
}

/* header */
.carrinho-header h1 {
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1f1f1f;
}
.carrinho-header .subtitulo {
  color: #666;
  margin: 0 0 20px;
}

/* layout principal */
.carrinho-conteudo {
  display: flex !important;
  gap: 40px;
  align-items: flex-start;
}

/* cursos lista */
.carrinho-cursos {
  flex: 2 1 0%;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* cada item: grid com colunas fixas */
.carrinho-item {
  display: grid !important;
  grid-template-columns: 150px 1fr 140px 110px;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #e6e6e6;
}

/* thumb */
.curso-thumb {
  width: 150px;
  height: 95px;
  object-fit: cover;
  border-radius: 6px;
}

/* info */
.carrinho-info h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: #222;
}
.carrinho-info .autor {
  margin: 0 0 8px;
  font-size: 14px;
  color: #666;
}
.carrinho-info .avaliacao {
  margin: 0 0 8px;
  font-size: 14px;
}
.carrinho-info .nota { font-weight: 600; margin-right: 6px; }
.carrinho-info .estrelas { color: #e59819; margin-right: 6px; }
.carrinho-info .detalhes { font-size: 13px; color: #666; margin: 6px 0; }

/* tags */
.tags { display:flex; gap:8px; margin-top:6px; }
.tag-roxa { background: var(--cor-roxo-claro); color:#fff; padding:4px 8px; border-radius:6px; font-size:12px; }
.tag-verde { background: var(--cor-verde); color:#fff; padding:4px 8px; border-radius:6px; font-size:12px; }

/* ações (links) */
.carrinho-acoes { display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.carrinho-acoes a { color: var(--cor-roxo-claro); text-decoration:none; font-size:14px; }
.carrinho-acoes a:hover { text-decoration:underline; }

/* preço */
.carrinho-preco { text-align:right; font-weight:700; color:#222; }

/* resumo lateral */
.carrinho-resumo {
  flex: 0 0 320px;
  border: 1px solid #e6e6e6;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  background: #fff;
}
.carrinho-resumo .total-label { margin:0; font-size:14px; color:#666; }
.carrinho-resumo .total-valor { margin:6px 0 18px; font-size:30px; font-weight:800; color:#111; }
.btn-checkout {
  display:block;
  width:100%;
  background: var(--cor-roxo-claro);
  color:#fff;
  border:none;
  padding:12px 14px;
  border-radius:8px;
  font-weight:700;
  cursor:pointer;
  margin-bottom:10px;
}
.btn-checkout:hover { background:#3a1572; }
.carrinho-resumo .nota { color:#666; font-size:13px; margin:8px 0 12px; }
.btn-cupom {
  width:100%;
  background:transparent;
  border:1px solid var(--cor-roxo-claro);
  padding:10px;
  border-radius:8px;
  color:var(--cor-roxo-claro);
  font-weight:700;
}

/* Responsivo: empilha em telas pequenas */
@media (max-width: 900px) {
  .carrinho-conteudo { flex-direction: column; }
  .carrinho-resumo { width: 100%; order: 2; margin-top: 20px; }
  .carrinho-item { grid-template-columns: 120px 1fr; grid-template-rows: auto auto; }
  .carrinho-acoes { order: 3; margin-top: 8px; flex-direction:row; gap:8px; }
  .carrinho-preco { grid-column: 2 / 3; text-align: left; margin-top: 6px; }
}

.icone-carrinho {
  position: relative;
  display: inline-block;
  color: #333;
  font-size: 22px;
}

.carrinho-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--cor-roxo-claro);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 20px;
  text-align: center;
}

/*Estilo do card para excluir perfil*/
.excluir-perfil-card {
    margin: 20px auto;          
    max-width: 400px;           
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    background-color: aliceblue;
    padding: 20px;
    border-radius: 6px;
}

.offcanvas-perfil-moderno {
    width: 380px !important;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

/* Header do Offcanvas */
.offcanvas-header-moderno {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 25px 20px;
    background: linear-gradient(135deg, #6c5ce7 0%, #5c4ac7 100%);
    color: white;
    position: relative;
}

.perfil-info-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.foto-perfil-offcanvas {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.imagem-foto-perfil-offcanvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.usuario-info {
    flex: 1;
}

.nome-usuario-offcanvas {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px;
    color: white;
    line-height: 1.2;
}

.tipo-usuario-offcanvas {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.btn-close-moderno {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-close-moderno:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Linha Gradiente */
.linha-gradiente-offcanvas {
    height: 4px;
    background: linear-gradient(to right, #6c5ce7 0%, #38bc8e 50%, #6c5ce7 100%);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

/* Body do Offcanvas */
.offcanvas-body-moderno {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100% - 120px);
    position: relative;
}

/* Menu de Navegação */
.menu-offcanvas {
    padding: 20px 0;
    flex: 1;
}

.item-menu-offcanvas {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: #2e2e2e;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    gap: 15px;
    border-left: 4px solid transparent;
}

.item-menu-offcanvas::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.item-menu-offcanvas:hover::before {
    width: 100%;
}

.item-menu-offcanvas:hover {
    background: rgba(108, 92, 231, 0.05);
    border-left-color: #6c5ce7;
}

.icone-container-offcanvas {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6c5ce7 0%, #5c4ac7 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.item-menu-offcanvas:hover .icone-container-offcanvas {
    transform: translateX(5px) scale(1.1);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.texto-menu-offcanvas {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #2e2e2e;
}

.seta-offcanvas {
    color: #6c5ce7;
    font-size: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.item-menu-offcanvas:hover .seta-offcanvas {
    opacity: 1;
    transform: translateX(0);
}

/* Item de Logout especial */
.item-logout {
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.item-logout .icone-container-offcanvas {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.item-logout:hover {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

/* Design Decorativo no Rodapé */
.design-decorativo-offcanvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0 15px;
    background: linear-gradient(to top, rgba(108, 92, 231, 0.03) 0%, transparent 100%);
}

.barra-decorativa {
    flex: 1;
    background: linear-gradient(to top, #6c5ce7 0%, #8b7ce9 100%);
    border-radius: 4px 4px 0 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.barra-1 { height: 50px; animation-delay: 0s; }
.barra-2 { height: 30px; background: linear-gradient(to top, #38bc8e 0%, #4ecda4 100%); animation-delay: 0.1s; }
.barra-3 { height: 45px; animation-delay: 0.2s; }
.barra-4 { height: 25px; background: linear-gradient(to top, #38bc8e 0%, #4ecda4 100%); animation-delay: 0.3s; }
.barra-5 { height: 40px; animation-delay: 0.4s; }
.barra-6 { height: 55px; background: linear-gradient(to top, #38bc8e 0%, #4ecda4 100%); animation-delay: 0.5s; }
.barra-7 { height: 35px; animation-delay: 0.6s; }
.barra-8 { height: 50px; background: linear-gradient(to top, #38bc8e 0%, #4ecda4 100%); animation-delay: 0.7s; }
.barra-9 { height: 60px; animation-delay: 0.8s; }

/* Animação sutil nas barras */
@keyframes pulse-bar {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.1); opacity: 0.8; }
}

.offcanvas-perfil-moderno.show .barra-decorativa {
    animation: pulse-bar 2s ease-in-out infinite;
}

/* Responsividade */
@media (max-width: 576px) {
    .offcanvas-perfil-moderno {
        width: 100% !important;
        max-width: 380px;
    }
    
    .offcanvas-header-moderno {
        padding: 25px 20px 15px;
    }
    
    .foto-perfil-offcanvas {
        width: 60px;
        height: 60px;
    }
    
    .nome-usuario-offcanvas {
        font-size: 18px;
    }
    
    .item-menu-offcanvas {
        padding: 16px 20px;
    }
    
    .icone-container-offcanvas {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .texto-menu-offcanvas {
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .design-decorativo-offcanvas {
        height: 80px;
    }
    
    .barra-decorativa {
        gap: 5px;
    }
}

/* Transições suaves ao abrir */
.offcanvas-perfil-moderno.show .item-menu-offcanvas {
    animation: slideInRight 0.4s ease-out forwards;
}

.offcanvas-perfil-moderno.show .item-menu-offcanvas:nth-child(1) {
    animation-delay: 0.1s;
}

.offcanvas-perfil-moderno.show .item-menu-offcanvas:nth-child(2) {
    animation-delay: 0.2s;
}

.offcanvas-perfil-moderno.show .item-menu-offcanvas:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}