body {
    background-color: #0a0e27;
    background-image: url('/images/54tgfecr4y45t3frvh564.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
}


.statu-lido {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.statu-aberto {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.statu-respondido {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.statu-fechado {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.support-container {
    background: linear-gradient(135deg, #2a334e 0%, #1d2f5f 100%);
    border-radius: 16px;
    border: 2px solid rgba(202, 148, 0, 0.733);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 35px 25px;
    max-width: 1100px;
    margin: 80px auto;
}

.support-container h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 700;
}

.support-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.support-actions a {
    background: linear-gradient(135deg, #008bfd 0%, #00abc2 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 2px 2px 2px rgb(255, 255, 255);
}

.support-actions a:hover {
    background: linear-gradient(135deg, #5a6978 0%, #4a5260 100%);
    color: #fff;
    border-color: rgba(100, 150, 200, 0.4);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.conversation-view {
    display: flex;
    flex-direction: column;
    height: 600px;      /* aumenta a altura padrão */
    max-height: 80vh;   /* aumenta o limite máximo relativo à tela */
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(100, 150, 200, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-top: 24px;
}

.support-info-block {
    background: linear-gradient(135deg, #09383b 0%, #037579 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(0, 255, 238, 0.733);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    color: #ffffff;
}

.admin-name {
    color: #e5e7eb;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(135deg, #212122 0%, #222424 100%);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
    border-left: 4px solid #38c6d9;
    display: inline-block;
}

#mensagens-list {
    flex: 1 1 auto;
    overflow-y: auto;
    margin-bottom: 0;
    padding-left: 0;
    /* já tem max-height, pode remover se usar flex */
}

#mensagens-list li {
    display: flex;
    flex-direction: row;
    clear: both;
    margin-bottom: 14px;
    padding: 10px 8px 0 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a1f2e 0%, #16213e 100%);
    color: #d1d5db;
    position: relative;
    border-left: 4px solid #6495e2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 120px;      /* largura mínima do balão */
    max-width: 70%;        /* largura máxima do balão */
    width: fit-content;    /* acompanha o texto */
    word-break: break-word; /* quebra palavras longas */
    white-space: pre-line;  /* mantém quebras de linha do texto */
}

.container-list {
    overflow-x:auto;
    max-height:610px;
}

@media (max-height: 768px) {
    .container-list {
        max-height: 450px;
    }
}


#mensagens-list li.msg-user {
    border-top-right-radius: 0;
}

#mensagens-list li.msg-admin {
    border-top-left-radius: 0;
    align-self: flex-start;
    background: linear-gradient(135deg, #1a3a52 0%, #0f2540 100%);
    color: #b3d9ff;
    border-left-color: #4caf50;
    margin-right: auto;
    margin-left: 0;
}

#mensagens-list li.msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #1a1f2e 0%, #16213e 100%);
    color: #d1d5db;
    border-left-color: #6495e2;
    margin-left: auto;
    margin-right: 0;
}

#mensagens-list li b {
    color: #e5e7eb;
    font-weight: 700;
}

#mensagens-list li small {
    color: #b3a700;
    font-size: 12px;
    margin-top: 8px;
    display: block;
    text-align: right;
    direction: rtl;
}

.btn-enviar-print {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.btn-enviar-print:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

#mensagens-list img {
    max-width: 160px;
    max-height: 160px;
    border-radius: 8px;
    border: 1px solid rgba(100, 150, 200, 0.3);
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

#mensagens-list img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(100, 150, 200, 0.3);
    border-color: rgba(100, 150, 200, 0.5);
}

#send-message-form-conversa {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#send-message-form-conversa textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 200, 0.2);
    padding: 12px 16px;
    font-size: 14px;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    color: #e5e7eb;
    resize: none;
    min-height: 42px;
    min-width: 200px;
    max-height: 120px;
    max-width: 90%;
    font-family: inherit;
    transition: all 0.3s ease;
}

#send-message-form-conversa textarea:focus {
    outline: none;
    border-color: rgba(100, 150, 200, 0.5);
    box-shadow: 0 0 0 3px rgba(100, 150, 200, 0.1);
}

#send-message-form-conversa button[type="submit"] {
    background: linear-gradient(135deg, #6495e2 0%, #4a7ac0 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(100, 149, 226, 0.2);
    white-space: nowrap;
}

#send-message-form-conversa button[type="submit"]:hover {
    background: linear-gradient(135deg, #7aa5e8 0%, #5a8ad0 100%);
    box-shadow: 0 6px 20px rgba(100, 149, 226, 0.4);
    transform: translateY(-2px);
}

#send-message-form-conversa button[type="submit"]:active {
    transform: translateY(0);
}

.badge {
    background: linear-gradient(135deg, #2b2a2a 0%, #383737 100%);
    color: #fff;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 700;
    box-shadow: 0 0 8px rgb(238, 255, 0);
    border: 1px solid rgb(229, 255, 0);
}

#ticket-form textarea,
#send-message-form-conversa textarea {
    box-sizing: border-box;
    width: 100%;
}


#ticket-form {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 0 16px rgba(224, 202, 0, 0.932);
    margin-bottom: 24px;
}

#ticket-form h3 {
    color: #e5e7eb;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

#ticket-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#ticket-form label {
    color: #d1d5db;
    font-weight: 600;
    font-size: 14px;
}

#ticket-form select,
#ticket-form textarea {
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 200, 0.2);
    background: linear-gradient(135deg, #16213e 0%, #0f1419 100%);
    color: #e5e7eb;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

#ticket-form select:focus,
#ticket-form textarea:focus {
    outline: none;
    border-color: rgba(100, 150, 200, 0.5);
    box-shadow: 0 0 0 3px rgba(100, 150, 200, 0.1);
}

#ticket-form select option {
    background: #1a1f2e;
    color: #e5e7eb;
}


#ticket-form button {
    background: linear-gradient(135deg, #6495e2 0%, #4a7ac0 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(100, 149, 226, 0.2);
}

#ticket-form button:hover {
    background: linear-gradient(135deg, #7aa5e8 0%, #5a8ad0 100%);
    box-shadow: 0 6px 20px rgba(100, 149, 226, 0.4);
    transform: translateY(-2px);
}

.table-support {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgb(255, 255, 255);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.table-support thead tr {
    background: linear-gradient(135deg, #1a2f4a 0%, #0f1a2e 100%);
}

.table-support th {
    color: #e5e7eb;
    padding: 16px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid rgba(100, 150, 200, 0.2);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.table-support td {
    color: #d1d5db;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(100, 150, 200, 0.1);
}

.table-support tbody tr {
    transition: all 0.3s ease;
}

.table-support tbody tr:hover {
    background: rgba(100, 150, 200, 0.05);
}

.table-support a {
    color: #6495e2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.table-support a:hover {
    color: #7aa5e8;
    text-decoration: underline;
}

.alert {
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid;
    font-weight: 500;
    margin-top: 20px;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.13);
    color: #fbbf24;
    border: 2px solid rgba(245, 158, 11, 0.45);
    border-radius: 12px;
    text-align: center;
    margin: 18px 0;
    padding: 18px 28px;
    font-size: 1.08rem;
    font-weight: 600;
    box-shadow: 0 4px 18px 0 rgba(245, 158, 11, 0.18), 0 1.5px 4px 0 rgba(0,0,0,0.10);
    transition: box-shadow 0.2s;
    letter-spacing: 0.01em;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #4b5563 0%, #3a4351 100%);
    color: #d1d5db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 150, 200, 0.2);
}

.pagination a:hover {
    background: linear-gradient(135deg, #6495e2 0%, #4a7ac0 100%);
    color: #fff;
    border-color: rgba(100, 150, 200, 0.4);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #38c6d9 0%, #4f8cff 100%);
  border-radius: 10px;
  border: 1px solid #00ffff;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #4f8cff 0%, #38c6d9 100%);
}

.assunto {
    background: linear-gradient(135deg, #048f78 0%, #027c7c 100%);
    color: #ffffff!important;
    padding: 4px 12px;
    border-radius: 6px;
    border-bottom: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 1px 1px 2px rgb(238, 255, 0);
    text-decoration: none !important;
}

a.assunto {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Espaço entre texto e ícone */
    white-space: nowrap; /* Evita quebra entre texto e ícone */
}

a.assunto i.fa {
    font-size: 1em; /* Igual ao texto */
    vertical-align: middle;
    margin: 0;
    color: inherit;
    line-height: 1;
}

.login-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    margin: 0 10px 5px 10px;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid #ffffff!important;
    border-right: 3px solid #ffffff!important;
    box-shadow: 1px 1px 2px rgb(255, 255, 255);
}


@media (max-width: 700px) {
  .conversation-view {
    height: 60vh;
    width: auto;
    max-height: 75vh;
    padding: 12px;
  }
  .support-container {
    padding: 12px 5px 12px 5px;
    margin: 65px 4px;
    height: auto;
  }

  #send-message-form-conversa textarea {
    font-size: 15px;
    padding: 10px 12px;
  }
  #send-message-form-conversa button[type="submit"] {
    padding: 10px 12px;
    font-size: 13px;
  }

  #mensagens-list li.msg-admin {
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left;
  }
  #mensagens-list li.msg-user {
    align-self: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right;
  }
  #ticket-form {
    padding: 12px;
  }
}


@media (max-height: 750px) {
  .conversation-view {
    height: 60vh;
    width: auto;
    max-height: 75vh;
    padding: 12px;
  }
}