/* frontend/assets/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700&display=swap');
/* Global variables */
:root {
 --bg: #f4f4f4;
 --header-bg: #b34774;
 /*--accent: #4CAF50;
 --accent-hover: #45a049;*/
 --accent: #b34774;
 --accent-hover: #b34774;
 --text: #ffffff;
 --muted: #6b7280;
 --card-bg: #ffffff;
 --shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
 --container-height-offset: 80px;
 --max-width: 1100px;
 --radius: 8px;

 --color-admin: #ff9800;
 --color-admin-hover: #e68a00;
 --color-danger: #dc3545;
 --color-danger-hover: #c82333;
}

/* Reset / base */
* {
 box-sizing: border-box;
}



/* ==========================================================================
   ESTILIZAÇÃO DA BARRA DE ROLAGEM (SCROLLBAR) - COM SETAS
   ========================================================================== */

/* 1. Apenas para o Firefox */
@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: #ca7e9e #f4f4f4;
        scrollbar-width: thin; 
        /* Nota: O Firefox gere as setas automaticamente com base no sistema operativo */
    }
}

/* 2. Para Chrome, Edge, Opera e Safari (Motores Chromium/Webkit) */
::-webkit-scrollbar {
    width: 11px;  /* Aumentado para 11px para que as setas sejam utilizáveis */
    height: 11px; /* Altura da barra horizontal */
}

::-webkit-scrollbar-track {
    background-color: #f4f4f4;
}

::-webkit-scrollbar-thumb {
    background-color: #ca7e9e;
    border-radius: 6px;
    border: 2px solid #f4f4f4; /* Margem interna para o manípulo respirar */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #F59E0B; /* O teu Âmbar no hover do manípulo */
}

/* 3. ATIVAR E ESTILIZAR AS SETAS (BOTÕES) */
::-webkit-scrollbar-button:single-button {
    background-color: #f4f4f4;
    display: block;
    background-size: 7px;
    background-repeat: no-repeat;
    background-position: center;
    height: 12px;
    width: 12px;
}

/* Seta para Cima */
::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23ca7e9e'><polygon points='50,20 10,80 90,80'/></svg>");
}
::-webkit-scrollbar-button:single-button:vertical:decrement:hover {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23F59E0B'><polygon points='50,20 10,80 90,80'/></svg>");
}

/* Seta para Baixo */
::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23ca7e9e'><polygon points='50,80 10,20 90,20'/></svg>");
}
::-webkit-scrollbar-button:single-button:vertical:increment:hover {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23F59E0B'><polygon points='50,80 10,20 90,20'/></svg>");
}

/* Seta para a Esquerda (Barra Horizontal) */
::-webkit-scrollbar-button:single-button:horizontal:decrement {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23ca7e9e'><polygon points='20,50 80,10 80,90'/></svg>");
}
::-webkit-scrollbar-button:single-button:horizontal:decrement:hover {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23F59E0B'><polygon points='20,50 80,10 80,90'/></svg>");
}

/* Seta para a Direita (Barra Horizontal) */
::-webkit-scrollbar-button:single-button:horizontal:increment {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23ca7e9e'><polygon points='80,50 20,10 20,90'/></svg>");
}
::-webkit-scrollbar-button:single-button:horizontal:increment:hover {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23F59E0B'><polygon points='80,50 20,10 20,90'/></svg>");
}
/* ========================================================================== */


/* Layout: sticky footer using Flexbox */
html,
body {
 height: 100%;
 margin: 0;
}
body {
 display: flex;
 flex-direction: column;
 min-height: 100vh;
 font-family:'Lato', Arial, Helvetica, sans-serif;
 background-color: var(--bg);
 color: #111827;
 line-height: 1.45;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
 overflow-x: hidden !important;
}

button, 
input, 
select, 
textarea, 
.button, 
.button-small {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
}

/* Ensure main content grows to push footer down and center short content */
.site-main {
 flex: 1 0 auto;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: stretch;
 min-height: 0;
}

/* Footer stays natural height */
.site-footer {
 flex-shrink: 0;
}

/* Header */
.header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 20px 40px;
 background-color: var(--header-bg);
 color: var(--text);
 width: 100%;
 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.header .title {
 font-size: 24px;
 font-weight: 700;
}

.header .title a {
 color: var(--text);
 text-decoration: none;
 font-size: 24px;
 font-weight: 700;
}

.header .title a:hover {
 text-decoration: underline;
}

.header .auth-links {
 display: flex;
 align-items: center;
 gap: 16px;
 font-size: 16px;
}

.header .auth-links a {
 color: var(--text);
 text-decoration: none;
 padding: 6px 8px;
 border-radius: 4px;
}

.header .auth-links a:hover {
 text-decoration: underline;
 background: rgba(255, 255, 255, 0.03);
}

/* container-wrapper to avoid accidental tall heights */
.container-wrapper {
 width: 100%;
 min-height: 0;
}

/* Main container used by index and pages */
.container {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 text-align: center;
 padding: 24px;
 max-width: var(--max-width);
 margin: 0 auto;
 min-height: 0;
 overflow-x: hidden;
}

h1 {
 margin: 0 0 20px 0;
 font-size: 22px;
 color: #1f2937;
}

/* Generic button */
.button,
a.button {
 display: inline-block;
 padding: 12px 26px;
 margin: 8px;
 background-color: var(--accent);
 color: var(--text);
 border: none;
 border-radius: 6px;
 cursor: pointer;
 text-decoration: none;
 font-size: 16px;
 transition: background-color 0.15s ease, transform 0.06s ease;
}

.button:hover,
a.button:hover {
 background-color: var(--accent-hover);
 transform: translateY(-1px);
}

/* NEW: Button Group for flex layout */
.button-group {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 16px;
 margin-top: 20px;
}

/* Auth card (login/register) */
.auth-card,
.container-card {
 width: 100%;
 max-width: 420px;
 margin: 40px auto;
 background: var(--card-bg);
 padding: 28px;
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 color: #111827;
}

.auth-card h2,
.container-card h2 {
 text-align: center;
 margin: 0 0 18px 0;
 font-size: 20px;
}

/* Form styles */
form label {
 display: block;
 margin-top: 12px;
 font-weight: 600;
 color: #111827;
 font-size: 14px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
 width: 100%;
 padding: 10px 12px;
 margin-top: 6px;
 border: 1px solid #d1d5db;
 border-radius: 6px;
 background: #fff;
 font-size: 14px;
 color: #111827;
}

form textarea {
 min-height: 110px;
 resize: vertical;
}

form input:focus,
form textarea:focus,
form select:focus {
 outline: none;
 border-color: var(--accent);
 box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.08);
}

/* Primary button (Full width - used for form submission) */
.btn-primary,
button.btn-primary {
 display: inline-block;
 width: 100%;
 padding: 12px;
 margin-top: 18px;
 background-color: var(--header-bg);
 color: var(--text);
 border: none;
 border-radius: 6px;
 font-size: 16px;
 cursor: pointer;
 transition: background-color 0.12s ease;
}

.btn-primary:hover {
 background-color: #1a252f;
}

/* Flash messages */
.success-message {
 color: #155724;
 background: #d4edda;
 border: 1px solid #1c7430;
 padding: 10px 12px;
 margin-bottom: 14px;
 border-radius: 6px;
 text-align: center;
 font-weight: 600;
}

.error-message {
 color: #7f1d1d;
 background: #fff1f2;
 border: 1px solid #fecaca;
 padding: 10px 12px;
 margin-bottom: 14px;
 border-radius: 6px;
 text-align: left;
 font-weight: 600;
}

.error-message ul {
 margin: 8px 0 0 18px;
 padding: 0;
}

/* Small helpers */
.text-muted {
 color: var(--muted);
 font-size: 13px;
}
.center {
 text-align: center;
}

/* ⚠️ ADDED: Crucial CSS for tab filtering to work */
.hidden {
 display: none !important;
}
/* End ADDED */

/* Footer spacing helper (kept for compatibility if used) */
.page-footer-space {
 height: 48px;
}

/* -------------------------------------------------------------------------- */
/* SEARCH & REQUEST SPECIFIC STYLES */
/* -------------------------------------------------------------------------- */

/* NOVO: Estilos para campos de seleção condicionais (movidos de copy_request.php) */
.conditional-select-field {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.conditional-select-field.visible {
  display: block;
  opacity: 1;
}

/* CSS for conditional display (original style) */
.conditional-container {
 display: none;
 margin-top: 15px;
 padding: 10px;
 border: 1px solid #ddd;
 border-radius: 4px;
}
.conditional-container.visible {
 display: block;
}
.radio-group {
 margin-bottom: 15px;
}
.radio-group label {
 display: inline-block;
 margin-right: 15px;
 font-weight: normal;
}
/* Styles for the new type-ahead functionality */
.autocomplete-container {
 position: relative;
}
.autocomplete-list {
 position: absolute;
 z-index: 10;
 border: 1px solid #ddd;
 max-height: 200px;
 overflow-y: auto;
 background-color: white;
 width: 100%;
 list-style: none;
 padding: 0;
 margin: 0;
}
.autocomplete-list li {
 padding: 8px 10px;
 cursor: pointer;
 border-bottom: 1px solid #eee;
}
.autocomplete-list li:hover {
 background-color: #f1f1f1;
}

/* Responsive adjustments */
@media (max-width: 720px) {
 .header {
  padding: 14px 18px;
 }
 .header .title {
  font-size: 18px;
 }
 .auth-card {
  margin: 24px 16px;
  padding: 18px;
 }
 .container {
  height: auto;
  padding-top: 36px;
  padding: 36px;
 }
 h1 {
  font-size: 18px;
 }
 .button {
  padding: 10px 18px;
  font-size: 15px;
 }
}

/* Accessibility / focus visible */
:focus {
 outline: none;
}
:focus-visible {
 outline: 3px solid rgba(76, 175, 80, 0.18);
 outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* list_search_requests.php SPECIFIC STYLES */
/* -------------------------------------------------------------------------- */
/* Estilos básicos para a tabela */
.request-table {
 width: 100%;
 border-collapse: collapse;
 margin-top: 20px;
}
.request-table th,
.request-table td {
 border: 1px solid #ddd;
 padding: 10px;
 text-align: left;
 font-size: 0.9em;
 vertical-align: top;
}
.request-table th {
 background-color: #f2f2f2;
}
/* Corrigido: Assegura que o container da tabela gere o overflow */
.table-container {
 overflow-x: auto;
 max-width: 100%;
 width: 100%;
}

.request-table td:nth-child(5),
.request-table td:nth-child(6) {
 max-width: 250px;
}

/* --- ESTILO PARA A COLUNA DE DATA --- */
.request-table .column-date {
 white-space: nowrap;
 min-width: 140px;
}
/* --- ESTILOS DE STATUS ANTIGOS --- */
.status-open {
 color: #007bff;
 font-weight: bold;
} /* Este estilo será sobreposto pelos novos no admin */
.status-closed {
 color: #28a745;
}
.status-timed {
 color: #ffc107;
}
.no-requests {
 padding: 20px;
 text-align: center;
 background-color: #f9f9f9;
 border: 1px solid #eee;
 border-radius: var(--radius);
 margin-top: 20px;
}

/* -------------------------------------------------------------------------- */
/* TAB NAVIGATION STYLES (NOVO) */
/* -------------------------------------------------------------------------- */

.tab-navigation {
 display: flex;
 border-bottom: 2px solid #e0e0e0;
 margin-bottom: 20px;
 margin-top: 20px;
 overflow-x: auto; /* Scroll horizontally if needed on small screens */
}

.tab-button {
 background: none;
 border: none;
 border-bottom: 2px solid transparent;
 padding: 10px 15px;
 cursor: pointer;
 font-size: 1rem;
 color: #6c757d;
 transition: color 0.2s, border-color 0.2s;
 font-weight: 500;
 white-space: nowrap; /* Prevents wrapping text */
}

.tab-button:hover:not(.active) {
 color: #333;
 border-bottom-color: #ddd;
}

.tab-button.active {
 color: var(--header-bg); /* Cor principal do seu site */
 border-bottom-color: var(--header-bg);
 font-weight: 600;
}

/* Conteúdo da aba */
.tab-content {
 animation: fadeInContent 0.3s ease-out;
}
.tab-content.hidden {
 display: none;
}
.tab-note {
 font-size: 0.9em;
 color: var(--muted);
 margin-bottom: 10px;
 margin-top: 0;
}

@keyframes fadeInContent {
 from {
  opacity: 0;
  transform: translateY(10px);
 }
 to {
  opacity: 1;
  transform: translateY(0);
 }
}

/* -------------------------------------------------------------------------- */
/* NOVOS ESTILOS ESPECÍFICOS DA TABELA DE ADMINISTRAÇÃO (list_all_search_requests.php) */
/* -------------------------------------------------------------------------- */

/* Estilos para os botões de Ação Rápida (Quick Action) */
.quick-action-btn {
 background: none;
 border: 1px solid #ccc;
 padding: 5px 8px;
 cursor: pointer;
 border-radius: 4px;
 margin: 0 2px; /* Ajuste para o layout na célula */
 font-size: 16px;
 line-height: 1;
 transition: background-color 0.15s ease;
 /* ✅ CORREÇÃO ADICIONADA: Remove o sublinhado dos links/botões de ação */
 text-decoration: none;
}
.quick-action-btn:hover:enabled {
 background-color: #eee;
}
.quick-action-btn:disabled {
 cursor: not-allowed;
 opacity: 0.5;
}
.action-cell-quick {
 min-width: 100px; /* Garante espaço para dois botões de ação rápida */
 text-align: center;
 white-space: nowrap;
}

/* Estilo para ocultar linhas finais */
.status-final-row.hidden-by-filter {
 display: none;
}

/* --- ESTILOS DE STATUS ADMIN (Cores Específicas) --- */

.status-pending {
 color: var(--text);
 background-color: #007bff; /* Azul para Pendente (Status 1) */
 padding: 2px 5px;
 border-radius: 3px;
 font-weight: bold;
}
.status-timed {
 background-color: #ffc107;
 color: #343a40;
 padding: 2px 5px;
 border-radius: 3px;
} /* Amarelo/Laranja para EmProcessamento (Status 2) */
.status-closed {
 background-color: #28a745;
 color: var(--text);
 padding: 2px 5px;
 border-radius: 3px;
} /* Verde para Concluído (Status 3) */
.status-denied {
 color: var(--text);
 background-color: var(--color-danger); /* Vermelho para Negado (Status 4) */
 padding: 2px 5px;
 border-radius: 3px;
 font-weight: bold;
}

/* --- FIM ESTILOS DE STATUS ADMIN --- */

/* --- AÇÕES DE TABELA E BOTÕES DE MODAL (Continuação) --- */
.action-cell {
 white-space: nowrap;
 text-align: center;
 min-width: 170px !important;
 width: auto;
}

/* Botão de Ação Genérico (usado na tabela) */
.btn-action {
 padding: 8px 14px;
 font-size: 0.9em;
 border-radius: var(--radius);
 text-decoration: none;
 display: inline-block;
 transition: background-color 0.2s;
 cursor: pointer;
 border: none;
 min-width: 100px;
}

/* Botão de Conclusão (usa cor de Admin - Laranja) */
.btn-conclude {
 background-color: var(--color-admin);
 color: var(--text);
}
.btn-conclude:hover {
 background-color: var(--color-admin-hover);
}

/* Botão de Cancelar/Secundário (usa cores claras para contraste) */
.btn-cancel {
 background-color: #e5e7eb;
 color: #1f2937;
 padding: 8px 15px;
 border: 1px solid #d1d5db;
 border-radius: var(--radius);
 cursor: pointer;
 transition: background-color 0.2s;
 margin-right: 10px;
}
.btn-cancel:hover {
 background-color: #d1d5db;
}

/* --- ESTILOS DO MODAL --- */
.modal {
 display: none;
 position: fixed;
 z-index: 1000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 overflow: auto;
 background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
 background-color: #fefefe;
 margin: 10% auto;
 padding: 20px;
 border: 1px solid #888;
 width: 80%;
 max-width: 600px;
 border-radius: 5px;
 box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.close-btn {
 color: #aaa;
 float: right;
 font-size: 28px;
 font-weight: bold;
}
.close-btn:hover,
.close-btn:focus {
 color: #000;
 text-decoration: none;
 cursor: pointer;
}
.modal-body-content {
 white-space: pre-wrap;
 word-wrap: break-word;
 max-height: 400px;
 overflow-y: auto;
 border: 1px dashed #ccc;
 padding: 10px;
 margin-top: 10px;
 background-color: #f9f9f9;
}

/* --- ESTILOS DO MODAL (Adições para layout de botão corrigido) --- */

/* Container Flex para alinhamento Cancelar/Confirmar */
.modal-footer-actions {
 display: flex;
 justify-content: flex-end;
 gap: 10px;
 margin-top: 20px;
}

/* Estilo para o botão de 'Sim, Concluir Pedido' dentro do modal */
.btn-conclude-modal-confirm {
 padding: 10px 18px;
 font-size: 16px;
 border-radius: var(--radius);
 text-decoration: none;
 display: inline-block;
 transition: background-color 0.2s;
 cursor: pointer;
 border: none;

 background-color: var(--accent);
 color: var(--text);
 flex-grow: 0 !important;
}

.btn-conclude-modal-confirm:hover {
 background-color: var(--accent-hover);
}

/* Ajuste no botão Cancelar que usa a classe .btn-cancel */
.btn-cancel {
 padding: 10px 18px;
 font-size: 16px;
 flex-grow: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* ADMIN/HELPER STYLES (Corrigido: Laranja) */
/* -------------------------------------------------------------------------- */

/* Estilos para o botão de administrador (Laranja) */
a.button.button-admin {
 background-color: var(--color-admin);
 border: 1px solid var(--color-admin);
 color: var(--text) !important;

 transition: background-color 0.15s ease, transform 0.06s ease;
}

a.button.button-admin:hover {
 background-color: var(--color-admin-hover);
 transform: translateY(-1px);
}

/* Opcional: Adicionar uma classe auxiliar para outros botões vermelhos, se necessário */
.button-danger {
 background-color: var(--color-danger);
 border: 1px solid var(--color-danger);
 color: var(--text) !important;
}

.button-danger:hover {
 background-color: var(--color-danger-hover);
}

/* -------------------------------------------------------------------------- */
/* manage_users.php SPECIFIC STYLES */
/* -------------------------------------------------------------------------- */

/* Estilos básicos para a tabela para garantir legibilidade */
.user-table-container {
 overflow-x: auto;
 margin-top: 1.5rem;
}
.user-table {
 width: 100%;
 border-collapse: collapse;
 font-size: 0.9em;
}
.user-table th,
.user-table td {
 padding: 12px 15px;
 text-align: left;
 border-bottom: 1px solid #ddd;
}
.user-table th {
 background-color: #f4f4f4;
 color: #333;
 font-weight: 600;
}
.user-table tbody tr:hover {
 background-color: #f9f9f9;
}
.status-active {
 color: #10b981;
 font-weight: bold;
} /* Verde esmeralda */
.status-inactive {
 color: #ef4444;
 font-weight: bold;
} /* Vermelho */
.button-small {
 padding: 5px 10px;
 font-size: 0.8em;
 margin-right: 5px;
 text-decoration: none;
 border-radius: 4px;
 transition: background-color 0.2s;
}
.btn-edit {
 background-color: #3b82f6;
 color: white;
 border: none;
} /* Azul */
.btn-toggle-active {
 background-color: #10b981;
 color: white;
 border: none;
} /* Verde */
.btn-toggle-inactive {
 background-color: #f97316;
 color: white;
 border: none;
} /* Laranja */
.admin-row td {
 background-color: #ffc; /* Cor de destaque para admins */
 font-weight: 600;
}

/* --- DASHBOARD STYLES --- */

.dashboard-header {
 margin-bottom: 40px;
 text-align: center;
}

.dashboard-header h1 {
 font-size: 2.5rem;
 color: #2c3e50;
 margin-bottom: 10px;
}

.dashboard-header .subtitle {
 font-size: 1.1rem;
 color: var(--muted);
}

/* Admin Banner */
.admin-banner {
 background-color: #fff3cd;
 border: 1px solid #ffeeba;
 border-left: 5px solid var(--color-admin);
 padding: 20px;
 border-radius: var(--radius);
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 40px;
 text-align: left;
 flex-wrap: wrap;
 gap: 15px;
}

.admin-content {
 display: flex;
 align-items: center;
 gap: 15px;
}

.admin-content .icon {
 font-size: 2rem;
}

.admin-content h3 {
 margin: 0;
 font-size: 1.1rem;
 color: #856404;
}

.admin-content p {
 margin: 5px 0 0 0;
 font-size: 0.9rem;
 color: #856404;
}

/* Grid Layout */
.dashboard-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 25px;
 width: 100%;
}

/* Card Styles */
.card {
 background: var(--card-bg);
 padding: 30px;
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 text-decoration: none;
 color: inherit;
 transition: transform 0.2s, box-shadow 0.2s;
 display: flex;
 flex-direction: column;
 align-items: center; /* Center content */
 text-align: center;
 border: 1px solid transparent;
}

.card:hover {
 transform: translateY(-5px);
 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
 /*border-color: var(--accent);*/
 border-color: #b34774;
}

.card-icon {
 font-size: 3rem;
 margin-bottom: 20px;
 background: #f0f9ff;
 width: 80px;
 height: 80px;
 display: flex;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
}

.card h3 {
 margin: 0 0 10px 0;
 font-size: 1.25rem;
 color: #2c3e50;
}

.card p {
 font-size: 0.95rem;
 color: var(--muted);
 margin-bottom: 20px;
 flex-grow: 1; /* Pushes the link to the bottom */
}

.fake-link {
 /*color: var(--accent);*/
 color: #b34774;
 font-weight: bold;
 font-size: 0.9rem;
}

.card:hover .fake-link {
 /*color: var(--accent-hover);*/
 color: #ca7e9e;
 text-decoration: underline;
}

/* Adjust for mobile */
@media (max-width: 768px) {
 .admin-banner {
  flex-direction: column;
  text-align: center;
 }
 .admin-content {
  flex-direction: column;
 }
}

/* --- MODERN HEADER STYLES --- */

.site-header {
 background-color: var(--header-bg);
 color: #fff;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
 position: relative;
 z-index: 100;
}

.header-container {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 0 24px;
 height: 70px;
 max-width: var(--max-width);
 margin: 0 auto;
}

/* Brand Area */
.brand-link {
 display: flex;
 align-items: center;
 gap: 10px;
 text-decoration: none;
 color: #fff;
 font-weight: 700;
 font-size: 1.2rem;
 letter-spacing: 0.5px;
}

.brand-icon {
 width: 28px;
 height: 28px;
 color: var(--accent);
}

/* Guest Actions */
.guest-actions {
 display: flex;
 align-items: center;
 gap: 16px;
}

.nav-link {
 color: rgba(255, 255, 255, 0.9);
 text-decoration: none;
 font-size: 0.95rem;
 transition: color 0.2s;
}
.nav-link:hover {
 color: #fff;
 text-decoration: underline;
}

.nav-button {
 background-color: #ca7e9e;
 color: #fff;
 padding: 8px 16px;
 border-radius: 4px;
 text-decoration: none;
 font-size: 0.9rem;
 font-weight: 600;
 transition: background-color 0.2s;
}
.nav-button:hover {
 background-color: #ca7e9e;
}

/* User Dropdown Trigger */
.user-dropdown {
 position: relative;
}

.user-trigger {
 display: flex;
 align-items: center;
 gap: 10px;
 background: transparent;
 border: none;
 cursor: pointer;
 color: #fff;
 padding: 4px 8px;
 border-radius: 6px;
 transition: background-color 0.2s;
}

.user-trigger:hover,
.user-dropdown.active .user-trigger {
 background-color: rgba(255, 255, 255, 0.1);
}

.user-name {
 font-size: 0.95rem;
 font-weight: 500;
 display: block;
}

.user-avatar {
 width: 36px;
 height: 36px;
 background-color: var(--accent);
 color: #fff;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 0.9rem;
 font-weight: 700;
 border: 2px solid rgba(255, 255, 255, 0.2);
}

.chevron-icon {
 width: 16px;
 height: 16px;
 opacity: 0.7;
 transition: transform 0.2s;
}

.user-dropdown.active .chevron-icon {
 transform: rotate(180deg);
}

/* Dropdown Menu Body */
.dropdown-content {
 position: absolute;
 top: 120%;
 right: 0;
 width: 220px;
 background-color: #fff;
 border-radius: 8px;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
 padding: 8px 0;
 display: none; /* Hidden by default */
 flex-direction: column;
 color: #333;
 border: 1px solid rgba(0, 0, 0, 0.05);
 z-index: 1000;
}

.user-dropdown.active .dropdown-content {
 display: flex;
 animation: fadeIn 0.15s ease-out;
}

/* Dropdown Internals */
.dropdown-header {
 padding: 12px 16px;
 background-color: #f9fafb;
 border-bottom: 1px solid #eee;
}

.dropdown-name {
 font-weight: 700;
 font-size: 1rem;
 color: #111827;
 margin-bottom: 4px;
}

.role-badge {
 font-size: 0.75rem;
 padding: 2px 6px;
 border-radius: 4px;
 text-transform: uppercase;
 font-weight: 700;
}

.role-badge.admin {
 background-color: #fff3cd;
 color: #856404;
}
.role-badge.user {
 background-color: #e5e7eb;
 color: #374151;
}

.dropdown-divider {
 border: 0;
 border-top: 1px solid #eee;
 margin: 4px 0;
}

.dropdown-item {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 10px 16px;
 text-decoration: none;
 color: #374151;
 font-size: 0.9rem;
 transition: background-color 0.1s;
}

.dropdown-item:hover {
 background-color: #f3f4f6;
}

.dropdown-item.text-danger {
 color: #dc3545;
}
.dropdown-item.text-danger:hover {
 background-color: #fff5f5;
}

.item-icon {
 width: 18px;
 height: 18px;
 opacity: 0.6;
}

/* Mobile adjustments */
@media (max-width: 600px) {
 .user-name {
  display: none;
 } /* Hide text name on mobile, keep avatar */
 .header-container {
  padding: 0 16px;
 }
}

@keyframes fadeIn {
 from {
  opacity: 0;
  transform: translateY(-8px);
 }
 to {
  opacity: 1;
  transform: translateY(0);
 }
}

/* --- FOOTER STYLES --- */

.site-footer {
 background-color: #b34774;
 border-top: 1px solid #b34774;
 padding: 40px 0;
 margin-top: auto; /* Pushes footer to bottom if flex column is used on body */
 color: #ffffff;
}

.footer-container {
 max-width: var(--max-width);
 margin: 0 auto;
 padding: 0 24px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 20px;
}

/* Footer Brand Area */
.footer-brand {
 display: flex;
 flex-direction: column;
 gap: 4px;
}

.footer-logo {
 font-weight: 700;
 font-size: 1.1rem;
 color: #ffffff;
}

.footer-tagline {
 font-size: 0.9rem;
 color: #ffffff;
 margin: 0;
}

.footer-copyright {
 font-size: 0.85rem;
 color: #ffffff;
 margin-top: 8px;
}

/* Footer Nav */
.footer-links {
 list-style: none;
 padding: 0;
 margin: 0;
 display: flex;
 gap: 24px;
}

.footer-links a {
 text-decoration: underline;
 color: #ffffff;
 font-size: 0.95rem;
 transition: color 0.2s;
}

.footer-links a:hover {
 color: #ffffff;
 text-decoration: underline;
}

/* --- FLASH MESSAGES (Modern Alert Styles) --- */
.flash-container {
 max-width: var(--max-width);
 margin: 20px auto 0;
 padding: 0 24px;
}

.flash-message {
 display: flex;
 align-items: flex-start;
 gap: 12px;
 padding: 16px;
 border-radius: 6px;
 margin-bottom: 16px;
 font-size: 0.95rem;
 line-height: 1.5;
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.flash-icon {
 width: 20px;
 height: 20px;
 flex-shrink: 0;
 margin-top: 2px;
}

/* Success Variant */
.flash-message.success {
 background-color: #ecfdf5; /* Light Green */
 border: 1px solid #a7f3d0;
 color: #065f46;
}

/* Error Variant */
.flash-message.error {
 background-color: #fef2f2; /* Light Red */
 border: 1px solid #fecaca;
 color: #991b1b;
}

.flash-message ul {
 margin: 0;
 padding-left: 0;
 list-style: none;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
 .footer-container {
  flex-direction: column;
  text-align: center;
  align-items: center;
 }

 .footer-links {
  flex-direction: column;
  gap: 12px;
 }
}

/* --- UX ENHANCEMENTS (ADDED) --- */

/* Form Sections */
.form-section {
 margin-bottom: 25px;
 padding-bottom: 15px;
 border-bottom: 1px solid #eee;
}
.form-section:last-child {
 border-bottom: none;
}
.form-section h3 {
 font-size: 1.1rem;
 color: #2c3e50;
 margin-bottom: 15px;
}

/* Input Errors - Padrão */
.input-error {
 border-color: #dc3545 !important;
 background-color: #fff8f8;
}

/* Input Errors - Sobrescrita mais agressiva de copy_request.php */
/* Usado para erro de validação (borda grossa) */
.input-error.validation-border {
  border: 2px solid #e74c3c !important;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

/* Validation Alerts (Client-side) */
.validation-alert {
 display: none;
 color: #dc3545;
 background-color: #f8d7da;
 border: 1px solid #f5c6cb;
 padding: 10px;
 border-radius: 4px;
 margin-bottom: 15px;
 font-size: 0.9em;
}

/* Loading Spinner */
.loading-spinner {
 display: inline-block;
 width: 12px;
 height: 12px;
 border: 2px solid rgba(0,0,0,0.1);
 border-radius: 50%;
 border-top-color: #3498db;
 animation: spin 1s ease-in-out infinite;
 margin-left: 10px;
 display: none; /* Hidden by default */
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Helper Text */
.helper-text {
 display: block;
 font-size: 0.85em;
 color: #666;
 margin-top: 4px;
}

/* Required field indicator */
.required {
 color: var(--color-danger);
 font-size: 1em;
}

/* --- Estilos para Notificação de Atualização de Pedidos --- */

/* Highlight the row background slightly */
.row-updated-highlight {
    background-color: #fff8e1 !important; /* Light yellow background */
    border-left: 4px solid #ff9800; /* Orange left border indicator */
}

/* Style for the 'New Update' badge */
.badge-new-update {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: bold;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.status-final-row {
    /* Define o estilo base das linhas a serem filtradas */
}

/* -------------------------------------------------------------------------- */
/* NEW: MOBILE RESPONSIVE OPTIMIZATIONS (APPENDED) */
/* -------------------------------------------------------------------------- */

/* --- Mobile Friendly User Table (Card View) --- */
@media screen and (max-width: 900px) {
    /* Hide the table headers on small screens */
    .user-table thead {
        display: none;
    }

    /* Turn rows into cards */
    .user-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    /* Make cells display as block/flex lines */
    .user-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
        padding: 12px 15px;
        text-align: right;
        min-height: 45px;
    }

    /* Remove border from last item */
    .user-table td:last-child {
        border-bottom: 0;
        justify-content: center; /* Center buttons */
        padding-top: 15px;
    }

    /* The Magic: Add labels using CSS and data attributes */
    .user-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.85rem;
        color: #555;
        text-align: left;
        margin-right: 15px;
    }
    
    /* Improve button spacing on mobile cards */
    .user-table td .button-small {
        margin: 0 5px;
        padding: 8px 12px;
    }
}

/* --- Mobile Friendly Form Actions --- */
@media screen and (max-width: 600px) {
    /* Stack form buttons vertically */
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .button,
    .form-actions button {
        width: 100%;
        margin: 0;
        text-align: center;
    }
}

.brand-logo {
    height: 40px; /* Ajusta este valor para o logótipo ficar do tamanho que preferires */
    width: auto;  /* Mantém a proporção correta da imagem */
    display: block;
}

/* Contentor para centrar o logótipo horizontalmente e verticalmente */
.logo-welcome-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    margin-bottom: 25px; /* Espaçamento em relação ao formulário ou conteúdo inferior */
}

/* Definições para tornar o logótipo maior e responsivo */
.logo-large {
    width: 100%;
    max-width: 500px; /* Ajuste este valor (ex: 300px ou 320px) para definir o tamanho ideal */
    height: auto;
    display: block;
}

/* -------------------------------------------------------------------------- */
/* MIGRATED FROM INDEX.PHP - NOTIFICATION BADGES & INLINE LOGINS */
/* -------------------------------------------------------------------------- */

/* Estilos do Badge de Contagem (AUMENTADO) */
.badge-notification-count {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: #ff3b30;
  color: white;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 5px 8px;
  border-radius: 50%;
  min-width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
}

/* Estilos de Pulsação do Cartão (REDEFINIDO) */
.card-history {
  position: relative;
  overflow: hidden;
}

.card-pulse-highlight:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ff9800; /* Cor Âmbar */
  opacity: 0.2;
  z-index: 0;
  animation: background-pulse 2s infinite ease-in-out;
}

.card-history > div,
.card-history > h3,
.card-history > p,
.card-history > span {
  position: relative;
  z-index: 1;
}

@keyframes background-pulse {
  0% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.1;
    transform: scale(1);
  }
}

/* Link de login contextualizado com a cor identitária */
.login-inline-link {
  color: var(--header-bg);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.login-inline-link:hover {
  color: #ca7e9e; 
  border-color: var(--header-bg);
}

/* -------------------------------------------------------------------------- */
/* MIGRATED FROM FOOTER.PHP - GLOBAL SITE FOOTER STYLES */
/* -------------------------------------------------------------------------- */

footer.site-footer {
  background-color: #B34774; 
  color: #ffffff;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 15px 0 1px 0; 
  width: 100%;
  margin-top: 25px;
}

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

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

.footer-inner {
  padding: 0 100px; 
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.border-wrapper {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-top {
  display: flex;
  justify-content: space-between; 
  align-items: flex-end; 
  padding-bottom: 20px;
  margin-top: 20px;
}

footer.site-footer .cca-logo img { 
  width: 320px !important; 
  height: auto; 
  display: block;
  margin-bottom: 0;
}

.footer-contacts { 
  display: flex; 
  gap: 60px; 
  align-items: flex-end; 
}

.contact-col h4 { 
  margin: 0 0 10px 0; 
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: bold; 
}

.contact-item { 
  font-family: 'Lato', sans-serif;
  font-size: .875rem;
  line-height: 1.2;
  margin-bottom: 8px;
  white-space: nowrap; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.contact-item-indented {
  padding-left: 32px;
}

.contact-col .contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  height: 20px; 
  width: auto;
  filter: brightness(0) invert(1);
}

.email-at {
  display: inline-block;
  width: 20px; 
  text-align: center;
  font-weight: bold;
  font-size: 18px;
}

.footer-nav {
  display: flex;
  justify-content: flex-end; 
  gap: 40px;
  padding: 15px 0;
  font-size: 13px;
  text-transform: uppercase;
}

.footer-nav a {
  text-decoration: underline !important;
}

.logos-row {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 20px 0;
}

.logo-atom {
  height: 35px;
}

.logo-prr {
  height: 35px;
}

.footer-bottom {
  display: flex;
  justify-content: center; 
  align-items: center;
  padding: 20px 0;
}

.institutional-text {
  display: flex;
  align-items: center;
  gap: 15px;
  line-height: 1.4;
  text-align: left;
  font-family: 'Lato', sans-serif;
  font-size: .875rem;
}

.institutional-text strong {
  text-decoration: underline;
}

.institutional-text img { 
  height: 40px !important; 
  width: auto;
}

@media (max-width: 992px) {
  .footer-top, .footer-contacts, .footer-nav, .logos-row, .footer-bottom { 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
  }
  .footer-nav { 
    justify-content: center; 
    gap: 15px; 
  }
  .footer-contacts { 
    gap: 20px; 
  }
  .logo-atom { 
    margin-bottom: 15px; 
  }
}

@media (max-width: 608px) {
  .footer-inner { 
    padding: 0 20px; 
  }
}

/* ==========================================================================
   Estilos específicos da página de Pedidos (my_requests.php)
   ========================================================================== */

/* Estilos do Badge (Contador Inline) */
.badge-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff3b30; /* Vermelho */
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 5px; 
    border-radius: 999px; /* Totalmente redondo */
    min-width: 18px; 
    height: 18px;
    line-height: 1;
    margin-left: 8px; /* Espaçamento à esquerda para separar do texto */
    z-index: 1; 
}

/* Estilos de Pulsação da Aba */
.tab-button {
    position: relative; 
    overflow: hidden; 
    transition: all 0.3s ease;
    padding: 10px 18px; 
}

.tab-pulse-highlight {
    box-shadow: 0 0 5px rgba(255, 152, 0, 0.5); 
}

/* O efeito de pulsação no fundo da aba */
.tab-pulse-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ff9800; /* Cor Âmbar */
    opacity: 0.05; 
    z-index: 0;
    animation: tab-background-pulse 2s infinite ease-in-out;
}

/* Garantir que o texto e o contador estão sobre a pulsação */
.tab-button > span:not(.badge-tab-count), 
.tab-button > .badge-tab-count {
    position: relative;
    z-index: 1;
}

/* Ajuste na animação para ser suave e não mover o botão */
@keyframes tab-background-pulse {
    0% {
        opacity: 0.05;
    }
    50% {
        opacity: 0.2; 
    }
    100% {
        opacity: 0.05;
    }
}
/* Botão personalizado de retorno (Cor temática #F59E0B) */
.btn-amber {
    display: inline-block;
    background-color: #F59E0B;
    color: #ffffff !important;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    font-family: inherit;
    text-decoration: none !important;
    border-radius: var(--radius, 8px);
    transition: background-color 0.2s ease;
    border: none;
    text-align: center;
}

.btn-amber:hover {
    background-color: #D97706; /* Tom ligeiramente mais escuro para o efeito hover */
    color: #ffffff !important;
}

/* ==========================================================================
   Gestão de Utilizadores / Painel de Administração
   ========================================================================== */

.admin-wrapper {
    max-width: 1250px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.admin-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2.25rem;
    margin-bottom: 2rem;
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
}

.admin-title {
    font-size: 1.75rem;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-count-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-weight: 600;
}

/* Alertas / Mensagens Flash */
.alert-flash {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.75rem;
    font-weight: 500;
    font-size: 0.95rem;
}
.alert-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Tabela Estruturada e Responsiva */
.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.925rem;
}

.modern-table th {
    background-color: #B34774;
    color: #ffffff;
    font-weight: 600;
    padding: 1.1rem 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.modern-table td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tr:hover {
    background-color: #f8fafc;
}

/* Badges de Identificação e Estados */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background-color: #dcfce7;
    color: #166534;
}

.badge-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-admin {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-regular {
    background-color: #f1f5f9;
    color: #475569;
}

.badge-deleted {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px dashed #cbd5e1;
}

/* Ações e Botões Parametrizados */
.actions-cell {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-edit {
    background-color: #f59e0b;
    color: #ffffff;
}
.btn-edit:hover {
    background-color: #d97706;
}

.btn-deactivate {
    background-color: #ef4444;
    color: #ffffff;
}
.btn-deactivate:hover {
    background-color: #dc2626;
}

.btn-activate {
    background-color: #10b981;
    color: #ffffff;
}
.btn-activate:hover {
    background-color: #059669;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    background-color: #475569;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.btn-back:hover {
    background-color: #334155;
}

.text-muted {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.875rem;
}

/* ==========================================================================
   Consola Administrativa de Pedidos - Tabelas Dinâmicas
   ========================================================================== */

.tabs-container .tab-btn {
    padding: 0.75rem 1.25rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease-in-out;
}

.tabs-container .tab-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.tabs-container .tab-btn.active {
    background: #B34774;
    color: #ffffff;
    border-color: #B34774;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Sobrecarga da Tabela Moderna para compatibilidade com Pedidos */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    background: #ffffff;
}

.modern-table th {
    background-color: #B34774 !important;
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1.1rem 1rem;
}

/* Badges Semânticos para Estados dos Pedidos */
.badge.status-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.badge.status-processing {
    background-color: #dbeafe;
    color: #2563eb;
}

.badge.status-completed {
    background-color: #dcfce7;
    color: #166534;
}

.badge.status-denied {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Truncagem utilitária de texto longo */
.truncate-text {
    display: inline-block;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}
