/* Área do cliente (cadastro, login, painel) — reaproveita as classes do tema
   (.form-contact, .contact-title, .contact-info, .btn_10, .section-tittle,
   .categories-area/.single-cat) e complementa apenas o que o tema não tem. */

/* Topo simplificado das páginas administrativas (sem hero/nav pública) */
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #eceff8;
    padding: 18px 0;
}
.admin-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-topbar .logo img {
    max-height: 40px;
}
.admin-topbar .admin-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #94817E;
}
.admin-topbar .admin-user strong {
    color: #000;
}
.admin-section {
    padding: 50px 0 100px;
    background: #F2F4F8;
    min-height: 70vh;
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.admin-stat {
    background: #fff;
    padding: 25px 20px;
    text-align: center;
    border-top: 3px solid #FF6B00;
}
.admin-stat .stat-number {
    font-size: 34px;
    font-weight: 600;
    color: #000;
    display: block;
}
.admin-stat .stat-label {
    font-size: 13px;
    color: #94817E;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.admin-card {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
}
.status-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.status-filter button {
    background: none;
    border: 1px solid #eceff8;
    padding: 8px 18px;
    font-size: 13px;
    cursor: pointer;
    color: #94817E;
}
.status-filter button.active {
    background: #FF6B00;
    border-color: #FF6B00;
    color: #fff;
}

.password-field {
    position: relative;
}
.password-field input {
    padding-right: 90px;
}
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #999999;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    font-size: 13px;
}
.password-requirements li {
    color: #999999;
    margin-bottom: 4px;
    transition: color .2s ease-out;
}
.password-requirements li::before {
    content: "○ ";
}
.password-requirements li.valid {
    color: #2fa84f;
}
.password-requirements li.valid::before {
    content: "✓ ";
}

.auth-alert {
    padding: 14px 20px;
    margin-bottom: 30px;
    font-size: 14px;
    border-left: 3px solid #b3261e;
    background: #fdecea;
    color: #b3261e;
    display: none;
}
.auth-alert.is-visible {
    display: block;
}
.auth-alert.success {
    border-left-color: #1e7e34;
    background: #eafaf0;
    color: #1e7e34;
}

.auth-switch {
    margin-top: 20px;
    font-size: 14px;
    color: #94817E;
}
.auth-switch a {
    color: #FF6B00;
    font-weight: 500;
}

/* Painel: cabeçalho de boas-vindas na barra superior do header */
#panelUserBar {
    display: none;
}
#panelUserBar.is-visible {
    display: block;
}

/* Meus chamados */
.panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.ticket-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.ticket-table th {
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #94817E;
    font-weight: 500;
    padding: 12px 10px;
    border-bottom: 2px solid #eceff8;
}
.ticket-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #eceff8;
    font-size: 15px;
    vertical-align: middle;
}
.ticket-table tbody tr {
    cursor: pointer;
}
.ticket-table tbody tr:hover td {
    background: #F2F4F8;
}
.ticket-table .ticket-subject {
    color: #000;
    font-weight: 500;
}
.ticket-table .ticket-meta {
    font-size: 13px;
    color: #94817E;
}
.tag-status, .tag-priority {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: 1px solid transparent;
}
.tag-status.aberto { color: #b3261e; border-color: #f5c6c2; background: #fdecea; }
.tag-status.em_andamento { color: #a86a00; border-color: #ffe1ad; background: #fff4e0; }
.tag-status.resolvido { color: #1e7e34; border-color: #c3e6cb; background: #eafaf0; }
.tag-priority.baixa, .tag-priority.normal { color: #415094; border-color: #dde2f7; background: #eef1fb; }
.tag-priority.alta { color: #b3261e; border-color: #f5c6c2; background: #fdecea; }

.empty-state {
    color: #94817E;
    font-size: 14px;
    padding: 20px 0;
}

/* Thread de mensagens do chamado */
.ticket-thread {
    margin: 20px 0;
}
.message-bubble {
    border-left: 3px solid #eceff8;
    padding: 10px 18px;
    margin-bottom: 16px;
    font-size: 14px;
}
.message-bubble.equipe {
    border-left-color: #FF6B00;
}
.message-bubble .message-meta {
    font-size: 12px;
    color: #94817E;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.message-bubble p {
    margin: 0;
    color: #000;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Modais (novo chamado / detalhe do chamado) — mesma linguagem visual do
   .form-contact, apresentados sobre um painel neutro */
.modal-backdrop-auth {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, .6);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    overflow-y: auto;
}
.modal-backdrop-auth.is-visible {
    display: flex;
}
.modal-box {
    background: #fff;
    padding: 40px;
    max-width: 620px;
    width: 100%;
}
.modal-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eceff8;
    padding-bottom: 20px;
}
.modal-box-header h3 {
    margin: 0;
    font-size: 22px;
}
.modal-close {
    background: none;
    border: 0;
    font-size: 26px;
    cursor: pointer;
    color: #94817E;
    line-height: 1;
}
