/* Mini Meeting - CSS Customizado */
/* Estilos complementares ao TailwindCSS */

/* Estilos para Tabs */
.tab-button {
    transition: all 0.2s ease-in-out;
}

.tab-button.active {
    border-bottom-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

/* Variáveis CSS para cores personalizadas */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --dark-color: #1f2937;
}

/* Estilos globais */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Nota: Estilos críticos de FOUC e preloader estão em critical.css */

/* Dropdown Menu do Perfil */
#user-profile-menu {
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Validação de Senha - Requisitos */
#senha-requirements li.text-green-600,
#senha-requirements li.text-green-400 {
    text-decoration: line-through;
}

#perfil-confirmar-senha.border-red-500,
#usuario-confirmar-senha.border-red-500 {
    border-color: #ef4444 !important;
}

/* Validação de Senha - Requisitos */
#senha-requirements-usuario li.text-green-600,
#senha-requirements-usuario li.text-green-400 {
    text-decoration: line-through;
}

/* Animações personalizadas */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Estilos para formulários - GLOBAL - APLICADO A TODOS OS INPUTS DO SISTEMA */
input.form-input,
textarea.form-input,
select.form-input,
input[type="text"].form-input,
input[type="email"].form-input,
input[type="password"].form-input,
input[type="number"].form-input,
input[type="tel"].form-input,
.form-input {
    border: 1px solid #9ca3af !important; /* Cinza mais escuro (gray-400) */
    border-radius: 10px !important; /* Um pouco mais arredondado */
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
}

.form-error {
    @apply text-red-600 text-sm mt-1;
}

.form-success {
    @apply text-green-600 text-sm mt-1;
}

/* Botões personalizados */
.btn-primary {
    background-color: #7f13ec;
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #6a0fc9;
}

.btn-secondary {
    @apply bg-gray-600 hover:bg-gray-700 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200;
}

.btn-success {
    @apply bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200;
}

.btn-warning {
    @apply bg-yellow-600 hover:bg-yellow-700 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200;
}

.btn-danger {
    @apply bg-red-600 hover:bg-red-700 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200;
}

/* Cards personalizados */
.card {
    @apply bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow duration-200;
}

.card-header {
    @apply border-b border-gray-200 pb-4 mb-4;
}

.card-title {
    @apply text-lg font-semibold text-gray-900;
}

/* Tabelas */
.table {
    @apply w-full border-collapse;
}

.table th {
    @apply bg-gray-50 px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider border-b border-gray-200;
}

.table td {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900 border-b border-gray-200;
}

.table-striped tbody tr:nth-child(even) {
    @apply bg-gray-50;
}

/* Alertas */
.alert {
    @apply p-4 rounded-md mb-4;
    position: relative;
    z-index: 9999 !important;
}

/* Alerts dentro de modais devem ficar acima de tudo */
#evento-alerts,
.modal-alerts {
    position: relative !important;
    z-index: 10000 !important;
}

#evento-alerts .alert,
.modal-alerts .alert {
    position: relative !important;
    z-index: 10000 !important;
}

/* Garantir que alerts dentro do modal de eventos fiquem acima */
#modal-editar-evento #evento-alerts {
    position: relative !important;
    z-index: 10000 !important;
}

#modal-editar-evento #evento-alerts .alert {
    position: relative !important;
    z-index: 10000 !important;
}

.alert-success {
    @apply bg-green-50 border border-green-200 text-green-800;
}

.alert-warning {
    @apply bg-yellow-50 border border-yellow-200 text-yellow-800;
}

.alert-error {
    @apply bg-red-50 border border-red-200 text-red-800;
}

.alert-info {
    @apply bg-blue-50 border border-blue-200 text-blue-800;
}

/* Loading spinner */
.spinner {
    @apply inline-block w-4 h-4 border-2 border-gray-300 border-t-blue-600 rounded-full animate-spin;
}

/* Modal - Usando TailwindCSS */

/* Sistema de Alertas Personalizado */
.custom-alert {
    min-width: 300px;
    max-width: 400px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.custom-alert.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-alert.success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.custom-alert.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.custom-alert.warning {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    color: #d97706;
}

.custom-alert.info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

.custom-alert .alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.custom-alert .alert-content {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.custom-alert .alert-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.custom-alert .alert-close:hover {
    opacity: 1;
}

/* Estilos para alertas dentro do modal */
.modal-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.modal-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.modal-alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    color: #d97706;
}

.modal-alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

/* Estilos genéricos para formulários */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

/* Estilos globais para todos os inputs do sistema */
input.form-input,
textarea.form-input,
select.form-input,
input[type="text"].form-input,
input[type="email"].form-input,
input[type="password"].form-input,
input[type="number"].form-input,
input[type="tel"].form-input,
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #9ca3af !important; /* Cinza mais escuro (gray-400) */
    border-radius: 10px !important; /* Um pouco mais arredondado */
    background-color: #f9fafb;
    font-size: 14px;
    color: #111827;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

input.form-input:focus,
textarea.form-input:focus,
select.form-input:focus,
.form-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    border: 1px solid #9ca3af !important; /* Cinza mais escuro */
    border-radius: 10px !important; /* Um pouco mais arredondado */
}

.form-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.space-y-4 > div {
    margin-bottom: 20px;
}

.space-y-4 > div:last-child {
    margin-bottom: 0;
}

/* Estilos genéricos para botões */
.btn-primary {
    background-color: #3b82f6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: white;
    color: #6b7280;
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    color: #374151;
}

/* Estilos genéricos para textos de ajuda */
small {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

/* Estilos genéricos para títulos de modal */
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Estilos genéricos para ações de formulário */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Responsividade adicional */
@media (max-width: 640px) {
    .container {
        @apply px-4;
    }
    
    .grid-cols-1 {
        @apply grid-cols-1;
    }
}

/* Dark mode support */
.dark-mode .form-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2); /* Cinza mais escuro no dark mode */
    color: white;
    border-radius: 10px; /* Consistência com o modo claro */
}

.dark-mode .form-input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #7f13ec;
}

.dark-mode .form-label {
    color: white;
}

.dark-mode .btn-primary {
    background-color: #7f13ec;
}

.dark-mode .btn-primary:hover {
    background-color: #6a0fc9;
}

.dark-mode .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.dark-mode select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Estilos para modo escuro do layout admin */
.dark .bg-white {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark .border-gray-200 {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .text-gray-900 {
    color: white;
}

.dark .text-gray-600 {
    color: rgba(255, 255, 255, 0.7);
}

.dark .text-gray-500 {
    color: rgba(255, 255, 255, 0.5);
}

.dark .bg-gray-50 {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Modal em modo escuro */
.dark #modal-usuario .bg-white {
    background-color: #191022;
}

.dark #modal-usuario .dark\:bg-background-dark {
    background-color: #191022;
}

.dark #modal-usuario .text-gray-400 {
    color: rgba(255, 255, 255, 0.6);
}

.dark #modal-usuario .form-input,
.dark .form-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2); /* Cinza mais escuro no dark mode */
    color: white;
    border-radius: 10px; /* Consistência com o modo claro */
}

.dark #modal-usuario .form-input:focus,
.dark .form-input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #7f13ec;
}

/* DataTable em modo escuro */
.dark .dataTables_wrapper table thead th {
    background-color: rgba(255, 255, 255, 0.08) !important; /* Cinza bem claro no dark mode */
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    text-align: left !important; /* Alinhar à esquerda */
    padding: 12px 20px !important;
}

.dark .dataTables_wrapper table tbody td {
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .dataTables_wrapper table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark .dataTables_length select,
.dark .dataTables_filter input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2) !important; /* Cinza mais escuro no dark mode */
    color: white;
    border-radius: 10px !important; /* Consistência com outros inputs */
}

.dark .dataTables_paginate .paginate_button {
    color: rgba(255, 255, 255, 0.7);
}

.dark .dataTables_paginate .paginate_button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dark .dataTables_paginate .paginate_button.current {
    background-color: rgba(127, 19, 236, 0.2);
    color: #7f13ec;
    border-color: #7f13ec;
}

/* Utilitários */
.text-truncate {
    @apply truncate;
}

.shadow-hover {
    @apply hover:shadow-lg transition-shadow duration-200;
}

.border-hover {
    @apply hover:border-blue-500 transition-colors duration-200;
}

/* Animações de hover */
.hover-lift {
    @apply hover:-translate-y-1 transition-transform duration-200;
}

.hover-scale {
    @apply hover:scale-105 transition-transform duration-200;
}

/* Estilos para DataTables - CSS Tradicional */
.dataTables_wrapper {
    width: 100%;
    font-size: 14px; /* Tamanho base unificado */
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_length select,
.dataTables_filter input {
    font-size: 14px; /* Unificado */
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
}

.dataTables_length label,
.dataTables_filter label {
    font-size: 14px; /* Unificado */
    font-weight: 500;
    color: #374151;
    margin-right: 8px;
}

.dataTables_info {
    margin-top: 1rem;
    font-size: 12px; /* Menor apenas no rodapé */
    color: #6b7280;
}

.dataTables_paginate {
    margin-top: 1rem;
    font-size: 12px; /* Menor apenas no rodapé */
}

.dataTables_paginate .paginate_button {
    padding: 4px 8px;
    margin: 0 4px;
    border-radius: 4px;
    font-size: 12px; /* Menor apenas no rodapé */
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.dataTables_paginate .paginate_button.current {
    background-color: #e5e7eb;
    color: #374151;
}

.dataTables_paginate .paginate_button.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

/* Estilos para tabela */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px; /* Unificado */
}

.table th {
    background-color: #f9fafb;
    padding: 20px 20px;
    text-align: left;
    font-size: 14px; /* Unificado */
    font-weight: 500;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.table td {
    padding: 20px 20px;
    white-space: nowrap;
    font-size: 14px; /* Unificado */
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

.table-striped tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Estilos genéricos para todos os DataTables */
.dataTables_wrapper table {
    font-size: 14px; /* Unificado */
}

.dataTables_wrapper table thead th {
    font-size: 14px; /* Unificado */
    font-weight: 500;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f3f4f6 !important; /* Cinza bem claro */
    text-align: left !important; /* Alinhar à esquerda */
    padding: 12px 20px !important;
}

.dataTables_wrapper table tbody td {
    font-size: 14px; /* Unificado */
    color: #111827;
}

/* Ajustes para controles do DataTable */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    font-size: 14px; /* Unificado */
}

.dataTables_wrapper .dataTables_info {
    font-size: 12px; /* Menor apenas no rodapé */
    color: #6b7280;
}

.dataTables_wrapper .dataTables_paginate {
    font-size: 12px; /* Menor apenas no rodapé */
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-size: 12px; /* Menor apenas no rodapé */
    color: #6b7280;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #374151;
}

/* Estilos adicionais para melhorar a aparência */
.dataTables_wrapper .dataTables_length select {
    font-size: 14px; /* Unificado */
    padding: 4px 8px;
    border: 1px solid #9ca3af !important; /* Cinza mais escuro */
    border-radius: 10px !important; /* Um pouco mais arredondado */
}

.dataTables_wrapper .dataTables_filter input {
    font-size: 14px; /* Unificado */
    padding: 4px 8px;
    margin: 5px;
    border: 1px solid #9ca3af !important; /* Cinza mais escuro */
    border-radius: 10px !important; /* Um pouco mais arredondado */
}

/* Melhorar espaçamento dos controles */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-size: 14px; /* Unificado */
    font-weight: 500;
    color: #4b5563;
    margin-right: 8px;
}

/* Forçar padding nas células de todos os DataTables */
.dataTables_wrapper table th,
.dataTables_wrapper table td {
    padding: 20px !important;
}

/* Override do DataTable padrão */
table.dataTable thead th,
table.dataTable tbody td {
    padding: 20px !important;
}

/* Sobrescrever classes TailwindCSS de todos os DataTables */
.dataTables_wrapper table th[class*="px-"],
.dataTables_wrapper table td[class*="px-"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.dataTables_wrapper table th[class*="py-"],
.dataTables_wrapper table td[class*="py-"] {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Indicador de processamento do DataTable */
.dataTables_processing {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 20px 30px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    z-index: 1000 !important;
}

.dataTables_processing:before {
    content: '' !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #e5e7eb !important;
    border-top: 2px solid #3b82f6 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   LAYOUT E RESPONSIVIDADE DO DATATABLE
   ======================================== */

/* Garantir que o DataTable ocupe toda a largura */
.dataTables_wrapper {
    width: 100% !important;
}

.dataTables_wrapper table {
    width: 100% !important;
    table-layout: auto !important;
}

/* Layout responsivo dos controles */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    margin-right: 8px !important;
    font-weight: 500 !important;
}

.dataTables_wrapper .dataTables_length select {
    margin-left: 8px !important;
    padding: 4px 2rem 4px 8px !important; /* Mais padding à direita para a seta */
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    min-width: 80px;
    width: auto;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
}

.dark .dataTables_wrapper .dataTables_length select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 8px !important;
    padding: 4px 8px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
}

/* Botões de ação compactos */
.dataTables_wrapper table td:last-child {
    padding: 8px 12px !important;
    white-space: nowrap !important;
}

.dataTables_wrapper table td:last-child .flex {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
}

/* Layout responsivo da paginação */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    display: flex !important;
    align-items: center !important;
    margin-top: 1rem !important;
}

.dataTables_wrapper .dataTables_info {
    font-size: 14px !important;
    color: #6b7280 !important;
}

.dataTables_wrapper .dataTables_paginate {
    justify-content: flex-end !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 12px !important;
    margin: 0 2px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    background: white !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #e5e7eb !important;
    color: #374151 !important;
    border-color: #9ca3af !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    background: #f9fafb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

/* Modo escuro para botões de paginação */
.dark .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.dark .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.dark .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #7f13ec !important;
    color: white !important;
    border-color: #7f13ec !important;
}

.dark .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
}

/* ========================================
   SETAS DE ORDENAÇÃO DO DATATABLE
   ======================================== */

/* Cabeçalhos ordenáveis - garantir espaço para as setas */
.dataTables_wrapper table thead th.sorting,
.dataTables_wrapper table thead th.sorting_asc,
.dataTables_wrapper table thead th.sorting_desc {
    position: relative;
    cursor: pointer;
    user-select: none;
    padding-right: 30px !important; /* Espaço para a seta */
}

/* Garantir que as setas do DataTables sejam visíveis */
.dataTables_wrapper table thead th.sorting:before,
.dataTables_wrapper table thead th.sorting:after {
    display: block !important;
    opacity: 0.3;
}

.dataTables_wrapper table thead th.sorting_asc:before,
.dataTables_wrapper table thead th.sorting_asc:after {
    display: block !important;
}

.dataTables_wrapper table thead th.sorting_desc:before,
.dataTables_wrapper table thead th.sorting_desc:after {
    display: block !important;
}

/* Estilizar setas do DataTables */
.dataTables_wrapper table thead th.sorting:before {
    content: '▲';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #9ca3af;
    opacity: 0.3;
}

.dataTables_wrapper table thead th.sorting:after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) translateY(2px);
    font-size: 10px;
    color: #9ca3af;
    opacity: 0.3;
}

/* Setas quando ordenado ASC */
.dataTables_wrapper table thead th.sorting_asc:before {
    content: '▲';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #7f13ec;
    opacity: 1;
    font-weight: bold;
}

.dataTables_wrapper table thead th.sorting_asc:after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) translateY(2px);
    font-size: 10px;
    color: #9ca3af;
    opacity: 0.3;
}

/* Setas quando ordenado DESC */
.dataTables_wrapper table thead th.sorting_desc:before {
    content: '▲';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #9ca3af;
    opacity: 0.3;
}

.dataTables_wrapper table thead th.sorting_desc:after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) translateY(2px);
    font-size: 10px;
    color: #7f13ec;
    opacity: 1;
    font-weight: bold;
}

/* Hover nos cabeçalhos ordenáveis */
.dataTables_wrapper table thead th.sorting:hover {
    background-color: #f9fafb;
}

.dataTables_wrapper table thead th.sorting:hover:before,
.dataTables_wrapper table thead th.sorting:hover:after {
    opacity: 0.6;
}

/* Modo escuro */
.dark .dataTables_wrapper table thead th.sorting:before,
.dark .dataTables_wrapper table thead th.sorting:after {
    color: rgba(255, 255, 255, 0.5);
}

.dark .dataTables_wrapper table thead th.sorting_asc:before {
    color: #7f13ec;
}

.dark .dataTables_wrapper table thead th.sorting_desc:after {
    color: #7f13ec;
}

/* Cabeçalhos não ordenáveis */
.dataTables_wrapper table thead th.sorting_disabled {
    cursor: default;
    padding-right: 20px !important;
}

.dataTables_wrapper table thead th.sorting_disabled:before,
.dataTables_wrapper table thead th.sorting_disabled:after {
    display: none !important;
}

/* ========================================
   MATERIAL SYMBOLS ICONS
   ======================================== */

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

/* ========================================
   SIDEBAR MOBILE
   ======================================== */

@media (max-width: 1023px) {
    .sidebar-mobile-hidden {
        transform: translateX(-100%);
    }
    
    .sidebar-mobile-show {
        transform: translateX(0);
    }
}

/* ========================================
   LAYOUT ADMINISTRATIVO - SCROLL FIXO
   ======================================== */

/* Garantir que body não tenha scroll */
body {
    overflow: hidden;
    height: 100vh;
}

/* Sidebar sempre fixo */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 50;
    transition: width 0.3s ease-in-out;
}

/* Estado collapsed da sidebar (desktop) - apenas ícones */
@media (min-width: 1024px) {
    #sidebar.sidebar-collapsed {
        width: 5rem; /* w-20 - apenas espaço para ícones */
    }
    
    /* Textos ocultos quando collapsed */
    #sidebar.sidebar-collapsed .sidebar-text {
        opacity: 0;
        max-width: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: opacity 0.2s ease-in-out 0.1s, max-width 0.3s ease-in-out;
    }
    
    #sidebar.sidebar-collapsed .sidebar-logo-text {
        opacity: 0;
        max-width: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: opacity 0.2s ease-in-out 0.1s, max-width 0.3s ease-in-out;
    }
    
    /* Submenu oculto quando collapsed */
    #sidebar.sidebar-collapsed .submenu-container {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.2s ease-in-out, max-height 0.3s ease-in-out;
    }
    
    /* Chevron oculto quando collapsed */
    #sidebar.sidebar-collapsed .menu-item-toggle .material-symbols-outlined:last-child {
        opacity: 0;
        width: 0;
        overflow: hidden;
        transition: opacity 0.2s ease-in-out, width 0.3s ease-in-out;
    }
    
    /* Estado expanded - hover */
    #sidebar.sidebar-collapsed:hover {
        width: 16rem; /* w-64 - largura completa */
    }
    
    #sidebar.sidebar-collapsed:hover .sidebar-text {
        opacity: 1;
        max-width: 200px;
    }
    
    #sidebar.sidebar-collapsed:hover .sidebar-logo-text {
        opacity: 1;
        max-width: 200px;
    }
    
    #sidebar.sidebar-collapsed:hover .submenu-container {
        opacity: 1;
        max-height: 1000px;
    }
    
    #sidebar.sidebar-collapsed:hover .menu-item-toggle .material-symbols-outlined:last-child {
        opacity: 1;
        width: auto;
    }
    
    /* Garantir que submenu expandido permaneça visível */
    #sidebar.sidebar-collapsed .submenu-container.block {
        opacity: 1;
        max-height: 1000px;
    }
    
    /* Centralizar ícones quando collapsed - remover padding e centralizar */
    #sidebar.sidebar-collapsed nav a,
    #sidebar.sidebar-collapsed nav button,
    #sidebar.sidebar-collapsed nav .menu-item-toggle {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
        position: relative;
    }
    
    /* Remover padding-left inline quando collapsed - usar seletor mais específico */
    #sidebar.sidebar-collapsed nav a[style*="padding-left"],
    #sidebar.sidebar-collapsed nav button[style*="padding-left"],
    #sidebar.sidebar-collapsed nav .menu-item-toggle[style*="padding-left"] {
        padding-left: 0 !important;
    }
    
    /* Centralizar todos os ícones - garantir alinhamento perfeito */
    #sidebar.sidebar-collapsed nav a .material-symbols-outlined:first-of-type,
    #sidebar.sidebar-collapsed nav button .material-symbols-outlined:first-of-type,
    #sidebar.sidebar-collapsed nav .menu-item-toggle .material-symbols-outlined:first-of-type {
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
    }
    
    /* Garantir que textos e outros elementos fiquem ocultos quando collapsed */
    #sidebar.sidebar-collapsed nav .sidebar-text {
        display: none !important;
    }
    
    #sidebar.sidebar-collapsed:hover nav .sidebar-text {
        display: block !important;
    }
    
    #sidebar.sidebar-collapsed:hover nav a .sidebar-text,
    #sidebar.sidebar-collapsed:hover nav button .sidebar-text {
        display: inline-block !important;
    }
    
    /* Quando expandido, restaurar comportamento normal */
    #sidebar.sidebar-collapsed:hover nav a .material-symbols-outlined:first-of-type,
    #sidebar.sidebar-collapsed:hover nav button .material-symbols-outlined:first-of-type,
    #sidebar.sidebar-collapsed:hover nav .menu-item-toggle .material-symbols-outlined:first-of-type {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Quando expandido, voltar ao comportamento normal */
    #sidebar.sidebar-collapsed:hover nav a,
    #sidebar.sidebar-collapsed:hover nav button,
    #sidebar.sidebar-collapsed:hover nav .menu-item-toggle {
        justify-content: flex-start !important;
    }
    
    #sidebar.sidebar-collapsed:hover nav a[style*="padding-left"],
    #sidebar.sidebar-collapsed:hover nav button[style*="padding-left"] {
        padding-left: inherit !important;
    }
    
    /* Logo centralizado quando collapsed */
    #sidebar.sidebar-collapsed .flex.items-center.gap-2 {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    
    #sidebar.sidebar-collapsed:hover .flex.items-center.gap-2 {
        justify-content: flex-start;
    }
    
    /* Centralizar ícone do logo quando collapsed */
    #sidebar.sidebar-collapsed .sidebar-icon-collapsed,
    #sidebar.sidebar-collapsed .sidebar-icon-default {
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Centralizar botão de logout quando collapsed */
    #sidebar.sidebar-collapsed .flex.flex-col.gap-2 a {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    #sidebar.sidebar-collapsed:hover .flex.flex-col.gap-2 a {
        justify-content: flex-start !important;
    }
    
    /* Logo: quando collapsed, ocultar imagem e mostrar apenas ícone */
    #sidebar.sidebar-collapsed .sidebar-logo-img {
        display: none;
    }
    
    #sidebar.sidebar-collapsed:hover .sidebar-logo-img {
        display: block;
    }
    
    /* Ícone sempre visível quando collapsed (quando tem logo) */
    #sidebar.sidebar-collapsed .sidebar-icon-collapsed {
        display: block;
    }
    
    #sidebar.sidebar-collapsed:hover .sidebar-icon-collapsed {
        display: none;
    }
    
    /* Quando não collapsed, ocultar ícone collapsed */
    #sidebar:not(.sidebar-collapsed) .sidebar-icon-collapsed {
        display: none;
    }
    
    /* Ícone padrão (sem logo) - sempre visível quando collapsed */
    #sidebar.sidebar-collapsed .sidebar-icon-default {
        display: block;
    }
    
    #sidebar:not(.sidebar-collapsed) .sidebar-icon-default {
        display: block;
    }
}

/* Em mobile, sidebar pode ter scroll se necessário */
@media (max-width: 1023px) {
    #sidebar {
        z-index: 50;
    }
    
    /* Em mobile, não aplicar collapsed - sempre largura completa */
    #sidebar.sidebar-collapsed {
        width: 16rem !important; /* w-64 */
    }
    
    #sidebar.sidebar-collapsed .sidebar-text,
    #sidebar.sidebar-collapsed .sidebar-logo-text {
        opacity: 1 !important;
        max-width: none !important;
    }
    
    #sidebar.sidebar-collapsed .submenu-container {
        opacity: 1 !important;
        max-height: none !important;
    }
    
    #sidebar.sidebar-collapsed .menu-item-toggle .material-symbols-outlined:last-child {
        opacity: 1 !important;
        width: auto !important;
    }
    
    /* Em mobile, margin sempre zero */
    .admin-main-container {
        margin-left: 0 !important;
    }
}

/* Em desktop, ajustar margin do container principal */
@media (min-width: 1024px) {
    .admin-main-container {
        margin-left: 5rem; /* w-20 - largura collapsed (80px) */
        transition: margin-left 0.3s ease-in-out;
        width: calc(100% - 5rem); /* Usar todo o espaço disponível quando collapsed */
        max-width: none;
    }
    
    /* Quando sidebar expandida (hover), ajustar margin via JavaScript */
    .admin-main-container.sidebar-expanded {
        margin-left: 16rem; /* w-64 - largura expanded (256px) */
        width: calc(100% - 16rem); /* Ajustar largura quando expandida */
    }
    
    /* Garantir que o container principal use todo o espaço disponível */
    .admin-main-container > * {
        max-width: 100%;
    }
    
    /* Quando collapsed, permitir que o conteúdo use mais espaço */
    .admin-main-container:not(.sidebar-expanded) main .max-w-7xl {
        max-width: calc(100% - 2rem); /* Usar quase todo o espaço disponível */
        transition: max-width 0.3s ease-in-out;
    }
    
    /* Quando expanded, ajustar max-width */
    .admin-main-container.sidebar-expanded main .max-w-7xl {
        max-width: calc(100% - 2rem); /* Manter mesmo cálculo, o margin-left já ajusta */
    }
    
    /* Garantir que o main use todo o espaço disponível */
    .admin-main-container main {
        width: 100%;
        max-width: 100%;
    }
}

/* Header fixo no topo */
.admin-main-container header {
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: white;
}

.dark .admin-main-container header {
    background-color: #191022;
}

/* Main com scroll apenas no conteúdo */
main {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Customizar scrollbar do main */
main::-webkit-scrollbar {
    width: 8px;
}

main::-webkit-scrollbar-track {
    background: transparent;
}

main::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

main::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Scrollbar em modo escuro */
.dark main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.dark main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sidebar scrollbar customizada */
#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.dark #sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.dark #sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   DATATABLE RESPONSIVE
   ======================================== */

/* Estilos para tabela responsiva */
.dataTables_wrapper .dtr-details {
    width: 100%;
}

.dataTables_wrapper .dtr-details li {
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
}

.dataTables_wrapper .dtr-details li:last-child {
    border-bottom: none;
}

.dataTables_wrapper .dtr-details .dtr-title {
    font-weight: 600;
    color: #374151;
    margin-right: 8px;
    display: inline-block;
    min-width: 100px;
}

.dataTables_wrapper .dtr-details .dtr-data {
    color: #6b7280;
}

/* Modo escuro para detalhes responsivos */
.dark .dataTables_wrapper .dtr-details li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark .dataTables_wrapper .dtr-details .dtr-title {
    color: rgba(255, 255, 255, 0.9);
}

.dark .dataTables_wrapper .dtr-details .dtr-data {
    color: rgba(255, 255, 255, 0.7);
}

/* Botão de controle responsivo */
.dataTables_wrapper table tbody td.control {
    cursor: pointer;
    text-align: center;
    position: relative;
}

.dataTables_wrapper table tbody td.control:before {
    content: '+';
    font-size: 20px;
    font-weight: bold;
    color: #6b7280;
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #f9fafb;
}

.dataTables_wrapper table tbody tr.dtr-expanded td.control:before {
    content: '-';
    background-color: #e5e7eb;
}

.dark .dataTables_wrapper table tbody td.control:before {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
}

.dark .dataTables_wrapper table tbody tr.dtr-expanded td.control:before {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .dataTables_wrapper .dataTables_length select {
        min-width: 80px;
        width: auto;
        padding-right: 32px !important; /* Espaço para a seta */
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.5rem center;
        background-size: 12px;
    }
    
    .dark .dataTables_wrapper .dataTables_length select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    }
    
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        max-width: 100%;
    }
    
    /* Ocultar texto "resultados por página" no mobile */
    .dataTables_wrapper .dataTables_length label .mobile-hide-text {
        display: none !important;
    }
    
    /* Simplificar label - mostrar apenas número e select */
    .dataTables_wrapper .dataTables_length label {
        font-size: 14px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* Ocultar texto "resultados por página" usando CSS */
    .dataTables_wrapper .dataTables_length label {
        position: relative;
    }
    
    /* Ocultar texto após o select */
    .dataTables_wrapper .dataTables_length label select {
        margin-right: 0;
    }
    
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Paginação simplificada para mobile */
    .dataTables_wrapper .dataTables_paginate.mobile-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        flex-wrap: nowrap;
        padding: 8px 0;
        flex-direction: row; /* Garantir linha horizontal */
    }
    
    /* Garantir que todos os botões fiquem na mesma linha */
    .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button {
        flex-shrink: 0;
    }
    
    .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        margin: 0 2px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        border: 1px solid #d1d5db;
        background-color: white;
        color: #374151;
        transition: all 0.2s;
        white-space: nowrap;
    }
    
    /* Garantir que Anterior e Próximo fiquem na mesma linha */
    .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button.previous,
    .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button.next {
        display: inline-flex !important;
        vertical-align: middle;
    }
    
    .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button:hover:not(.disabled):not(.current) {
        background-color: #f3f4f6;
        border-color: #9ca3af;
    }
    
    .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button.current {
        background-color: #7f13ec;
        color: white;
        border-color: #7f13ec;
    }
    
    .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    /* Ocultar botões Primeiro/Último no mobile */
    .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button.first,
    .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button.last {
        display: none !important;
    }
    
    /* Modo escuro para paginação mobile */
    .dark .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button {
        background-color: rgba(255, 255, 255, 0.05) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .dark .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button:hover:not(.disabled):not(.current) {
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
    }
    
    .dark .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button.current {
        background-color: #7f13ec !important;
        color: white !important;
        border-color: #7f13ec !important;
    }
    
    .dark .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button.disabled {
        background-color: rgba(255, 255, 255, 0.05) !important;
        color: rgba(255, 255, 255, 0.3) !important;
    }
    
    /* Ocultar colunas não essenciais em mobile */
    .dataTables_wrapper table th.none,
    .dataTables_wrapper table td.none {
        display: none !important;
    }
    
    /* Garantir que Nome e Ações sejam sempre visíveis */
    .dataTables_wrapper table th.all,
    .dataTables_wrapper table td.all {
        display: table-cell !important;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    .dataTables_wrapper .dtr-details {
        padding: 12px;
        background-color: #f9fafb;
        border-radius: 8px;
        margin-top: 8px;
    }
    
    .dark .dataTables_wrapper .dtr-details {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    /* Paginação ainda mais compacta */
    .dataTables_wrapper .dataTables_paginate.mobile-pagination .paginate_button {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 12px;
    }
    
    /* Ocultar completamente o texto "resultados por página" */
    .dataTables_wrapper .dataTables_length label {
        font-size: 12px;
    }
    
    .dataTables_wrapper .dataTables_length label span:contains('resultados'),
    .dataTables_wrapper .dataTables_length label span:contains('por'),
    .dataTables_wrapper .dataTables_length label span:contains('página') {
        display: none;
    }
}

/* Ocultar coluna de controle se existir */
.dataTables_wrapper table tbody td.control,
.dataTables_wrapper table thead th.control {
    display: none !important;
}

/* Desktop - mostrar todas as colunas */
@media (min-width: 769px) {
    .dataTables_wrapper table thead th,
    .dataTables_wrapper table tbody td {
        display: table-cell !important;
    }
}

/* Responsivo mobile - mostrar apenas Nome e Ações */
@media (max-width: 768px) {
    .dataTables_wrapper {
        overflow-x: visible;
    }
    
    .dataTables_wrapper table {
        width: 100% !important;
    }
    
    /* Ocultar todas as colunas por padrão */
    .dataTables_wrapper table thead th,
    .dataTables_wrapper table tbody td {
        display: none !important;
    }
    
    /* Mostrar apenas colunas com classe 'all' (Nome e Ações) */
    .dataTables_wrapper table thead th.all,
    .dataTables_wrapper table tbody td.all {
        display: table-cell !important;
    }
    
    /* Garantir que a segunda coluna (Nome) seja visível */
    .dataTables_wrapper table thead th:nth-child(2),
    .dataTables_wrapper table tbody td:nth-child(2) {
        display: table-cell !important;
    }
    
    /* Garantir que a última coluna (Ações) seja visível */
    .dataTables_wrapper table thead th:last-child,
    .dataTables_wrapper table tbody td:last-child {
        display: table-cell !important;
    }
}

/* Melhorar visualização dos detalhes responsivos */
.dataTables_wrapper .dtr-details {
    list-style: none;
    padding: 12px;
    margin: 8px 0 0 0;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.dark .dataTables_wrapper .dtr-details {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dataTables_wrapper .dtr-details > li {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.dataTables_wrapper .dtr-details > li:last-child {
    border-bottom: none;
}

.dark .dataTables_wrapper .dtr-details > li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dataTables_wrapper .dtr-details .dtr-title {
    flex: 0 0 120px;
    font-weight: 600;
    margin-right: 12px;
    color: #374151;
}

.dark .dataTables_wrapper .dtr-details .dtr-title {
    color: rgba(255, 255, 255, 0.9);
}

.dataTables_wrapper .dtr-details .dtr-data {
    flex: 1 1 auto;
    word-break: break-word;
    color: #6b7280;
}

.dark .dataTables_wrapper .dtr-details .dtr-data {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   RESPONSIVIDADE - TELA DE EVENTOS
   ======================================== */

/* Container de tabs com scroll horizontal */
.evento-tabs-container {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.evento-tabs-container::-webkit-scrollbar {
    height: 6px;
}

.evento-tabs-container::-webkit-scrollbar-track {
    background: transparent;
}

.evento-tabs-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.evento-tabs-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.dark .evento-tabs-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.dark .evento-tabs-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Garantir que botões de tab não quebrem e mantenham tamanho mínimo */
.evento-tab-button-gestao {
    flex-shrink: 0;
    min-width: fit-content;
}

/* Ajustes para cabeçalho de eventos em mobile */
@media (max-width: 640px) {
    /* Garantir que o container de eventos use toda a largura */
    #eventos-gestao-view {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Ajustar padding do card principal em mobile */
    #eventos-gestao-view .bg-white {
        padding: 1rem;
    }
    
    /* Garantir que conteúdo das tabs não tenha overflow horizontal */
    .evento-tab-content-gestao {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Ajustar grid de informações em mobile */
    #eventos-gestao-view .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

/* Ajustes para tablets */
@media (min-width: 641px) and (max-width: 1023px) {
    #eventos-gestao-view .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
