body {
    background-color: #fff; /* Branco base para toda a página */
    font-family: Arial, Helvetica, sans-serif;
    color: #050505; /* Texto principal escuro */
}

.ticket-container {
    width: 100%;
    margin: 0;
    background: #e8e4e1; /* Fundo secundário claro */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid #f96b0e; /* Borda sutil com cor principal */
}

.ticket-header {
    border-bottom: 2px solid #f96b0e; /* Linha de destaque com cor principal */
    margin-bottom: 30px;
    padding-bottom: 20px;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #050505;
}

.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #f96b0e;
}

.form-control:focus,
.form-select:focus {
    border-color: #f96b0e;
    box-shadow: 0 0 0 0.2rem rgba(249, 107, 14, 0.25);
}

textarea {
    resize: none;
}

.char-counter {
    font-size: 13px;
    color: #050505;
    text-align: right;
}

.btn-submit {
    background-color: #f96b0e;
    color: #fff;
    padding: 12px 40px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading {
    display: none;
    color: #f96b0e;
    font-weight: 500;
}

.info-sidebar {
    background: #fff; /* Branco puro para contraste */
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #f96b0e;
}

.status-online {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

.status-offline {
    background-color: #fff3cd;
    color: #856404;
    font-weight: bold;
}

.file-preview {
    font-size: 0.9rem;
    margin-top: 8px;
    color: #050505;
}

.file-item {
    background: #f96b0e1a; /* Fundo muito claro com cor principal */
    padding: 6px 10px;
    border-radius: 4px;
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border: 1px solid #f96b0e;
}

/* Novos estilos para chat e respostas */
.chat-messages {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-height: 450px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #f96b0e;
}

.msg {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
}

.msg.utilizador {
    background: #f96b0e;
    margin-left: auto;
}

.msg.admin {
    background: #050505;
    color: #fff;
    margin-right: auto;
}

.msg-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    color: #050505;
}

.anexos-section {
    margin-top: 15px;
    padding: 12px;
    background: #e8e4e1;
    border-radius: 6px;
    border: 1px solid #f96b0e;
}

.anexo-item {
    padding: 8px 0;
    border-bottom: 1px solid #f96b0e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #050505;
}

.anexo-item:last-child {
    border-bottom: none;
}
/* Menu flutuante laranja */
.floating-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #f96b0e;
    color: #fff;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* permite quebrar linha se necessário */
}

.floating-menu .logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
}

.floating-menu .logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
    margin-right: 12px;
}

/* Estilo do botão do menu (hamburger) */
.menu-toggle {
    display: none; /* escondido por padrão */
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 32px;
    height: 32px;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Links do menu */
.menu-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.floating-menu .menu-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
}

.floating-menu .menu-links a:hover {
    color: #050505;
    transform: translateY(-2px);
}

/* Espaçamento para o conteúdo não ficar escondido pelo menu fixo */
.ticket-container {
    margin-top: 90px;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .menu-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f96b0e;
        flex-direction: column;
        padding: 16px;
        gap: 16px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        display: none; /* escondido inicialmente */
        z-index: 999;
    }

    .menu-links.active {
        display: flex;
    }

    .floating-menu {
        padding: 10px 15px;
    }

    .floating-menu .logo {
        font-size: 1.2rem;
    }

    .ticket-container {
        margin-top: 80px;
    }

    /* Animação do botão ao abrir (opcional) */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Estilos gerais do rodapé */
    .footer {
      background-color: #f96b0e!important; /* Azul escuro similar ao do site */
      color: #050505!important;
      padding: 20px 0;
      font-family: Arial, sans-serif;
      font-size: 14px;
      line-height: 1.5;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 30px;
    }

    .footer-section {
      flex: 1;
      min-width: 200px;
    }

    .footer h3 {
      font-size: 16px;
      margin-bottom: 10px;
      text-transform: uppercase;
    }

    .footer ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer ul li {
      margin-bottom: 5px;
    }

    .footer a {
      color: #ffffff;
      text-decoration: none;
    }

    .footer a:hover {
      text-decoration: underline;
    }

    .footer .contact-info p {
      margin: 5px 0;
    }

    .footer-bottom {
      text-align: center;
      margin-top: 20px;
      padding-top: 15px;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      font-size: 12px;
    }

    @media (max-width: 768px) {
      .footer-content {
        flex-direction: column;
        text-align: center;
      }
    }

    /* Efeito de sublinhado sutil nos links do footer */
footer .text-white.hover-underline:hover {
  text-decoration: underline;
}

/* Garante que o ícone do Bootstrap Icons fique alinhado */
footer address i {
  width: 1.2em;
  display: inline-block;
  text-align: center;
}

/* Botão de seta arredondado no mobile */
.btn-outline-primary {
  --bs-btn-border-color: #f96b0e;
  --bs-btn-color: #f96b0e;
}
.btn-outline-primary:hover {
  background-color: #f96b0e;
  color: white;
}

/* Garantir que o offcanvas não fique muito largo em telas pequenas */
@media (max-width: 576px) {
  .offcanvas-start {
    width: 100% !important;
  }
}

/* Corrige alinhamento geral no desktop */
@media (min-width: 992px) {
    .container-fluid > .row {
        align-items: flex-start;
    }

    .info-sidebar {
        margin-top: 0;
    }
}

/* Botão mobile para abrir o offcanvas */
.mobile-open-btn {
    width: 100%;
    height: 56px;
    background-color: #f96b0e;
    color: #fff;
    border: none;
    border-radius: 12px 12px 0 0;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
}

.mobile-open-btn i {
    font-size: 1.4rem;
}

/* Remove transparência e hover estranho */
.mobile-open-btn:hover,
.mobile-open-btn:focus {
    background-color: #e67e22;
    color: #fff;
}
