/* ===================================
   POWERPEC - ESTILOS GLOBAIS
   =================================== */

/* ===================================
   ANIMAÇÕES
   =================================== */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.dark .loading-spinner {
    border-color: #374151;
    border-top-color: #3b82f6;
}

/* ===================================
   EDIÇÃO INLINE
   =================================== */
.editable-name {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.editable-name:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.dark .editable-name:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

/* Estilos para o input de edição inline */
.editable-name input {
    width: 100% !important;
    min-width: 150px !important;
    max-width: 300px !important;
    height: 28px !important;
    padding: 4px 8px !important;
    border: 2px solid #487FFF !important;
    border-radius: 4px !important;
    font-size: 0.875rem !important;
    font-family: inherit !important;
    background: white !important;
    color: #374151 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(72, 127, 255, 0.25) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.editable-name input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}

.editable-name input.error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25) !important;
}

/* Garantir que a célula da tabela mantenha altura consistente */
#recordsTable td {
    vertical-align: middle !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 0.7rem 1rem !important;
}

/* Evitar que o input cause overflow na tabela */
#recordsTable .editable-name {
    display: inline-block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Garantir que o DataTable não tenha scroll interno durante edição */
.dataTable-wrapper {
    overflow: visible !important;
}

.dataTable-container {
    overflow: visible !important;
    max-height: none !important;
}

/* Ajustar altura fixa do DataTable para evitar mudanças */
.dataTable-wrapper .dataTable-container {
    min-height: 400px !important;
}

/* Prevenir scroll durante edição inline */
.dataTable-wrapper .dataTable-container table {
    table-layout: fixed !important;
}

/* Garantir que as células tenham altura consistente */
#recordsTable td:first-child {
    width: 30% !important;
    max-width: 300px !important;
}

/* Estilos específicos para o input de edição */
.editable-input {
    width: 100% !important;
    min-width: 150px !important;
    max-width: 300px !important;
    height: 28px !important;
    padding: 4px 8px !important;
    border: 2px solid #487FFF !important;
    border-radius: 4px !important;
    font-size: 0.875rem !important;
    font-family: inherit !important;
    background: white !important;
    color: #374151 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(72, 127, 255, 0.25) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

/* Dark mode para input de edição */
.dark .editable-input {
    background: #1F2937 !important;
    color: #D1D5DB !important;
    border: 2px solid #60A5FA !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25) !important;
}

.editable-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}

/* Dark mode para foco do input de edição */
.dark .editable-input:focus {
    border-color: #93C5FD !important;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25) !important;
}

/* Garantir que o container da tabela não tenha overflow */
.table-responsive {
    overflow: visible !important;
}

/* Ajustar o wrapper do DataTable */
.dataTable-wrapper {
    overflow: visible !important;
    max-height: none !important;
}

/* Garantir que o DataTable não force scroll */
.dataTable-container {
    overflow: visible !important;
    max-height: none !important;
}

/* ===================================
   CORES DA MARCA
   =================================== */
:root {
    --brand-primary: #487FFF;
    --brand-primary-dark: #486CEA;
    --brand-primary-light: #458EFF;
    --brand-primary-lighter: #519FFF;
    --brand-primary-lightest: #6BB1FF;
}

/* ===================================
   BOTÕES DA MARCA
   =================================== */
.btn-brand {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, #4759D6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 127, 255, 0.3);
}

.btn-brand:active {
    transform: translateY(0);
}

.btn-brand-outline {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    transition: all 0.3s ease;
}

.btn-brand-outline:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 127, 255, 0.3);
}

.btn-action-primary {
    background: var(--brand-primary);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-action-primary:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(72, 127, 255, 0.3);
}

.btn-success-brand {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-success-brand:hover {
    background: linear-gradient(135deg, #15803D 0%, #166534 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-danger-brand {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-danger-brand:hover {
    background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-warning-brand {
    background: linear-gradient(135deg, #FF9F29 0%, #f39016 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-warning-brand:hover {
    background: linear-gradient(135deg, #f39016 0%, #e58209 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 159, 41, 0.3);
}

/* Efeitos de foco */
.btn-brand:focus,
.btn-brand-outline:focus,
.btn-action-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(72, 127, 255, 0.25);
}

/* Estados desabilitados */
.btn-brand:disabled,
.btn-brand-outline:disabled,
.btn-action-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===================================
   BOTÃO DE GRAVAÇÃO
   =================================== */
#btnGravar {
    background: linear-gradient(135deg, #487FFF 0%, #486CEA 100%) !important;
    border: none !important;
    color: white !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

#btnGravar:hover {
    background: linear-gradient(135deg, #486CEA 0%, #4759D6 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(72, 127, 255, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

#btnGravar:active {
    transform: translateY(0) scale(1.02) !important;
}

/* ===================================
   DATATABLE PERSONALIZADA
   =================================== */
#recordsTable {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    color: #374151;
    background: #fff;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 2px 12px 0 rgba(72, 127, 255, 0.06);
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    overflow: hidden;
}

.dark #recordsTable {
    background: #1F2937 !important;
    color: #D1D5DB !important;
    box-shadow: 0 2px 12px 0 rgba(72, 127, 255, 0.10) !important;
}

#recordsTable thead th {
    background: #F8FAFC;
    color: #487FFF;
    font-weight: 600;
    border-bottom: 1.5px solid #E5E7EB;
    padding: 0.85rem 1.2rem;
    letter-spacing: 0.01em;
    font-size: 1.05rem;
    text-align: left;
}

.dark #recordsTable thead th {
    background: #273142 !important;
    color: #6BB1FF !important;
    border-bottom: 1.5px solid #374151 !important;
}

#recordsTable tbody td {
    background: transparent;
    color: #374151;
    font-weight: 400;
    border-bottom: 1px solid #F1F5F9;
    padding: 0.8rem 1.2rem;
    vertical-align: middle;
    font-size: 1rem;
    transition: background 0.2s;
}

.dark #recordsTable tbody td {
    color: #D1D5DB !important;
    border-bottom: 1px solid #273142 !important;
}

#recordsTable tbody tr:last-child td {
    border-bottom: none;
}

#recordsTable tbody tr:hover {
    background: #E4F1FF;
}

.dark #recordsTable tbody tr:hover {
    background: #273142 !important;
}

#recordsTable th,
#recordsTable td {
    border: none;
}

#recordsTable .editable-name {
    color: #2563eb;
    font-weight: 500;
    background: none;
    border-radius: 4px;
    padding: 2px 4px;
    transition: background 0.2s;
}

#recordsTable .editable-name:hover {
    background: #E4F1FF;
}

.dark #recordsTable .editable-name {
    color: #6BB1FF !important;
}

.dark #recordsTable .editable-name:hover {
    background: #273142 !important;
}

/* Input de edição inline */
.editable-input {
    width: 100% !important;
    min-width: 150px !important;
    max-width: 300px !important;
    height: 32px !important;
    padding: 4px 10px !important;
    border: 2px solid #487FFF !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    background: #fff !important;
    color: #374151 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px #487FFF22 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    transition: border 0.2s, box-shadow 0.2s;
}

.dark .editable-input {
    background: #1F2937 !important;
    color: #D1D5DB !important;
    border: 2px solid #6BB1FF !important;
    box-shadow: 0 0 0 2px #6BB1FF22 !important;
}

.editable-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px #487FFF33 !important;
}

.dark .editable-input:focus {
    border-color: #6BB1FF !important;
    box-shadow: 0 0 0 3px #6BB1FF33 !important;
}

/* DataTable Wrapper e Container */
.dataTable-wrapper, .dataTable-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Input de busca */
.dataTable-input {
    border-radius: 6px;
    border: 1.5px solid #E5E7EB;
    background: #F8FAFC;
    color: #487FFF;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: none;
    outline: none;
}

.dataTable-input:focus {
    border: 1.5px solid #487FFF;
    background: #fff;
    color: #2563eb;
    box-shadow: 0 0 0 2px #487FFF22;
}

.dataTable-input::placeholder {
    color: #A5B4FC;
    opacity: 1;
}

.dark .dataTable-input {
    border: 1.5px solid #374151 !important;
    background: #273142 !important;
    color: #6BB1FF !important;
}

.dark .dataTable-input:focus {
    border: 1.5px solid #6BB1FF !important;
    background: #1F2937 !important;
    color: #6BB1FF !important;
    box-shadow: 0 0 0 2px #6BB1FF33 !important;
}

.dark .dataTable-input::placeholder {
    color: #6B7280 !important;
}

/* Paginação */
.dataTable-pagination {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.dataTable-pagination .active a {
    background: #487FFF;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px 0 #487FFF22;
    border: none;
}
.dark .dataTable-pagination .active a {
    background: #6BB1FF !important;
    color: #1F2937 !important;
    box-shadow: 0 2px 8px 0 #6BB1FF33 !important;
}
.dataTable-pagination a {
    color: #487FFF;
    border-radius: 6px;
    padding: 0.35rem 0.9rem;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    border: none;
    background: transparent;
    font-weight: 500;
}
.dark .dataTable-pagination a {
    color: #6BB1FF !important;
}
.dataTable-pagination a:hover {
    background: #E4F1FF;
    color: #2563eb;
}
.dark .dataTable-pagination a:hover {
    background: #273142 !important;
    color: #6BB1FF !important;
}
.dataTable-pagination .ellipsis {
    color: #A5B4FC;
}
.dark .dataTable-pagination .ellipsis {
    color: #6B7280 !important;
}

/* Botões do DataTable */
.dataTable-top .dataTable-button,
.dataTable-bottom .dataTable-button {
    background: linear-gradient(135deg, #487FFF 0%, #486CEA 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0.2rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px 0 #487FFF22;
}
.dataTable-top .dataTable-button:hover,
.dataTable-bottom .dataTable-button:hover {
    background: linear-gradient(135deg, #486CEA 0%, #4759D6 100%);
    color: #fff;
}
.dark .dataTable-top .dataTable-button,
.dark .dataTable-bottom .dataTable-button {
    background: linear-gradient(135deg, #6BB1FF 0%, #487FFF 100%) !important;
    color: #1F2937 !important;
    box-shadow: 0 2px 8px 0 #6BB1FF33 !important;
}
.dark .dataTable-top .dataTable-button:hover,
.dark .dataTable-bottom .dataTable-button:hover {
    background: linear-gradient(135deg, #487FFF 0%, #2563EB 100%) !important;
    color: #fff !important;
}

/* Centralização e largura máxima */
.table-responsive, .dataTable-wrapper, .card {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Scroll horizontal responsivo */
.table-responsive {
    overflow-x: auto !important;
}

/* Ícones de status e ação */
#recordsTable td iconify-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 1.25rem !important;
    min-width: 24px !important;
    min-height: 24px !important;
}
#recordsTable td a iconify-icon {
    width: 18px !important;
    height: 18px !important;
    font-size: 1.1rem !important;
    min-width: 18px !important;
    min-height: 18px !important;
}

/* Status de sucesso */
#recordsTable td iconify-icon[icon="heroicons:check-circle"] {
    color: #16A34A !important;
}
/* Status de erro */
#recordsTable td iconify-icon[icon="heroicons:exclamation-triangle"] {
    color: #DC2626 !important;
}
/* Status de aviso */
#recordsTable td iconify-icon[icon="heroicons:clock"] {
    color: #FF9F29 !important;
}
/* Spinner de carregamento na tabela */
#recordsTable td .loading-spinner {
    width: 20px !important;
    height: 20px !important;
    margin: 0 auto !important;
}
#recordsTable td:nth-child(4) {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Responsividade para telas menores */
@media (max-width: 1280px) {
    #recordsTable, .table-responsive, .dataTable-wrapper, .card {
        max-width: 100% !important;
    }
    #recordsTable thead th, #recordsTable tbody td {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
}
@media (max-width: 768px) {
    #recordsTable thead th, #recordsTable tbody td {
        font-size: 0.95rem;
        padding: 0.5rem 0.5rem;
    }
}

/* ===================================
   LAYOUT CENTRALIZADO
   =================================== */
.dashboard-main {
    margin-left: 0 !important;
    width: 100% !important;
    padding-bottom: 80px !important; /* Espaço para o footer fixo */
}

.dashboard-main-body {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 2rem;
}

/* ===================================
   NAVBAR PERSONALIZADA
   =================================== */
.navbar-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    background: white !important;
    border-bottom: 1px solid #E5E7EB !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    z-index: 20 !important;
    height: 4.5rem !important;
}

.dark .navbar-header {
    background: #273142 !important;
    border-bottom: 1px solid #4B5563 !important;
}

/* Container interno da navbar para alinhar com o conteúdo */
.navbar-header .container-navbar {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Logo no navbar */
.navbar-header .sidebar-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    height: 40px !important;
}

.navbar-header .sidebar-logo img {
    height: 40px !important;
    width: auto !important;
    max-width: 200px !important;
}

/* Estilos para a logo no navbar */
.navbar-header .sidebar-logo .light-logo {
    display: block;
}

.navbar-header .sidebar-logo .dark-logo {
    display: none;
}

.dark .navbar-header .sidebar-logo .light-logo {
    display: none;
}

.dark .navbar-header .sidebar-logo .dark-logo {
    display: block;
}

.navbar-header .sidebar-logo .logo-icon {
    display: none;
}

/* Remover funcionalidades do sidebar */
.sidebar-toggle,
.sidebar-mobile-toggle {
    display: none !important;
}

/* ===================================
   RESPONSIVIDADE
   =================================== */
@media (max-width: 1280px) {
    .dashboard-main-body {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .navbar-header {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .navbar-header .container-navbar {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-main-body {
        padding: 1rem;
    }
    
    .navbar-header {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .navbar-header .container-navbar {
        max-width: 100%;
    }
}

/* ===================================
   ÍCONES DE STATUS
   =================================== */
/* Estilos para ícones de status na tabela */
#recordsTable td iconify-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 1.25rem !important;
    min-width: 24px !important;
    min-height: 24px !important;
}

/* Status de sucesso */
#recordsTable td iconify-icon.text-success-600 {
    color: #16A34A !important;
}

/* Status de erro */
#recordsTable td iconify-icon.text-danger-600 {
    color: #DC2626 !important;
}

/* Status de aviso */
#recordsTable td iconify-icon.text-warning-600 {
    color: #FF9F29 !important;
}

/* Spinner de carregamento na tabela */
#recordsTable td .loading-spinner {
    width: 20px !important;
    height: 20px !important;
    margin: 0 auto !important;
}

/* Garantir que os ícones sejam centralizados na célula */
#recordsTable td:nth-child(4) {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Fallback para ícones caso o Iconify não carregue */
#recordsTable td iconify-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 1.25rem !important;
    min-width: 24px !important;
    min-height: 24px !important;
}

/* Garantir que os ícones dos botões sejam exibidos */
#recordsTable td a iconify-icon {
    width: 16px !important;
    height: 16px !important;
    font-size: 1rem !important;
    min-width: 16px !important;
    min-height: 16px !important;
}

/* Estilos específicos para cada tipo de ícone */
#recordsTable td iconify-icon[icon="heroicons:check-circle"] {
    color: #16A34A !important;
}

#recordsTable td iconify-icon[icon="heroicons:exclamation-triangle"] {
    color: #DC2626 !important;
}

#recordsTable td iconify-icon[icon="heroicons:clock"] {
    color: #FF9F29 !important;
}

/* ===================================
   FOOTER POWERPEC - SIMPLES
   =================================== */
.powerpec-footer-simple {
    background: #fff;
    border-top: 1px solid #E5E7EB;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.1);
}

.dark .powerpec-footer-simple {
    background: #1F2937;
    border-top: 1px solid #374151;
    box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.3);
}

.footer-simple-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    z-index: 40;
    padding: 0.75rem 0;
}

.footer-simple-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.footer-brand-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-simple {
    height: 1.5rem;
    width: auto;
}

.footer-brand-text {
    font-weight: 600;
    color: #487FFF;
}

.footer-copyright-simple {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-version-simple {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Dark mode para footer simples */
.dark .footer-simple-container {
    background: #1f2937;
    border-top-color: #374151;
}

.dark .footer-simple-content {
    color: #9ca3af;
}

.dark .footer-brand-text {
    color: #60A5FA;
}

.dark .footer-version-simple {
    background: #374151;
    color: #9ca3af;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-simple-container {
        padding: 0 1rem;
    }
    
    .footer-simple-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-brand-text {
        font-size: 1rem;
    }
    
    .footer-copyright-simple p {
        font-size: 0.85rem;
    }
    
    .footer-version span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .powerpec-footer-simple {
        padding: 0.75rem 0;
    }
    
    .footer-logo-simple {
        height: 24px;
    }
    
    .footer-brand-text {
        font-size: 0.95rem;
    }
}

/* ===================================
   BOTÕES DE AÇÃO E MODAL DE REPORT
   =================================== */

/* Botões de ação na tabela */
.action-button {
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-button:hover {
    transform: scale(1.1);
}

/* Modal de report */
.report-modal-content {
    max-width: 1200px;
    width: 90%;
    overflow-y: auto;
}

.report-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.report-info-card {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.report-content-area {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 20rem;
    overflow-y: auto;
    color: #374151;
}

/* Modal de report melhorado */
.report-modal {
    backdrop-filter: blur(4px);
}

.report-modal .modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    animation: modalSlideIn 0.3s ease-out;
    transform-origin: center;
}

/* Animação do modal */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
}

/* Animação de fade para o backdrop */
.report-modal {
    animation: backdropFadeIn 0.2s ease-out;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes backdropFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Transições suaves para elementos internos */
.report-info-section,
.report-actions-section,
.report-content-section {
    animation: contentSlideUp 0.4s ease-out 0.1s both;
}

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

.report-content-display {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre-wrap;
    height: 32rem;
    overflow-y: auto;
    color: #374151;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: none;
}

/* Loading state para o report content */
.report-content-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    color: #6b7280;
}

.dark .report-content-loading {
    color: #9ca3af;
}

/* Fade in suave para o conteúdo */
.report-content-fade-in {
    animation: contentFadeIn 0.3s ease-in;
}

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

/* Melhorar scroll da área de conteúdo */
.report-content-display::-webkit-scrollbar {
    width: 6px;
}

.report-content-display::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.report-content-display::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.report-content-display::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark .report-content-display::-webkit-scrollbar-track {
    background: #374151;
}

.dark .report-content-display::-webkit-scrollbar-thumb {
    background: #6b7280;
}

.dark .report-content-display::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Cards de informação individuais */
.info-card-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.info-card-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

/* Dark mode para modal de report */
.dark .report-info-card {
    background: #374151;
    border-color: #4b5563;
}

.dark .report-content-area {
    background: #1f2937;
    border-color: #4b5563;
    color: #d1d5db;
}

.dark .report-info-section,
.dark .report-actions-section,
.dark .report-content-section {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-color: #4b5563;
}

.dark .report-content-display {
    background: #1f2937;
    border-color: #4b5563;
    color: #d1d5db;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark .info-card-item {
    background: #1f2937;
    border-color: #4b5563;
    color: #d1d5db;
}

.dark .info-card-item:hover {
    border-color: #6b7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Botões do modal */
.btn-brand-outline {
    background: transparent;
    border: 2px solid #487FFF;
    color: #487FFF;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-brand-outline:hover {
    background: #487FFF;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.3);
}

.dark .btn-brand-outline {
    border-color: #60A5FA;
    color: #60A5FA;
}

.dark .btn-brand-outline:hover {
    background: #60A5FA;
    color: white;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

/* Botões de ícone no modal */
.modal-action-button {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    max-width: 2.5rem;
    max-height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    padding: 0;
}

.modal-action-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-action-button.btn-brand-outline {
    background: transparent;
    color: #487FFF;
}

.modal-action-button.btn-brand-outline:hover {
    background: #487FFF;
    color: white;
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.3);
}

.modal-action-button.btn-action-primary {
    background: linear-gradient(135deg, #487FFF 0%, #486CEA 100%);
    color: white;
}

.modal-action-button.btn-action-primary:hover {
    background: linear-gradient(135deg, #486CEA 0%, #4759D6 100%);
    box-shadow: 0 4px 12px rgba(72, 127, 255, 0.3);
}

/* Dark mode para botões de ícone */
.dark .modal-action-button.btn-brand-outline {
    color: #60A5FA;
}

.dark .modal-action-button.btn-brand-outline:hover {
    background: #60A5FA;
    color: white;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.dark .modal-action-button.btn-action-primary {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
   
}

.dark .modal-action-button.btn-action-primary:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

/* Responsividade para modal */
@media (max-width: 1280px) {
    .report-modal .modal-content {
        width: 95%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .report-modal .modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .report-info-section,
    .report-actions-section,
    .report-content-section {
        padding: 1rem;
    }
    
    .report-content-display {
        height: 24rem;
    }
}

@media (max-width: 640px) {
    .report-modal .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }
    
    .report-modal .modal-content > div:first-child {
        border-radius: 0;
    }
}

/* ===================================
   NOTIFICAÇÕES
   =================================== */

.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    transform: translateX(100%);
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #10b981;
    color: white;
}

.notification-error {
    background: #ef4444;
    color: white;
}

.notification-info {
    background: #3b82f6;
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-close {
    margin-left: 0.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* ===================================
   RESPONSIVIDADE PARA MODAL DE REPORT
   =================================== */

@media (max-width: 768px) {
    .report-info-grid {
        grid-template-columns: 1fr;
    }
    
    .report-modal-content {
        max-height: calc(90vh - 80px);
    }
    
    .report-content-area {
        max-height: 16rem;
    }
}

@media (max-width: 640px) {
    .notification {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
}

/* Modal de deleção personalizado */
.delete-modal {
    backdrop-filter: blur(4px);
}

.delete-modal .modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

.delete-modal-icon {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
}

.delete-modal-icon .iconify-icon {
    filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.2));
}

.delete-modal-button {
    transition: all 0.2s ease;
    font-weight: 500;
}

.delete-modal-button:hover {
    transform: translateY(-1px);
}

.delete-modal-button.delete {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.delete-modal-button.delete:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

/* Dark mode para modal de deleção */
.dark .delete-modal-icon {
    background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
    border-color: #dc2626;
}

.dark .delete-modal-button.delete {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.dark .delete-modal-button.delete:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

/* Animação do modal */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsividade para modal de deleção */
@media (max-width: 640px) {
    .delete-modal .modal-content {
        width: 95%;
        margin: 0 auto;
    }
}

/* ===================================
   LOGO THEME SWITCHING
   =================================== */
.logo-light {
    display: block !important;
}

.logo-dark {
    display: none !important;
}

/* Dark theme - mostrar logo-light.png, esconder logo.png */
html.dark .logo-light {
    display: none !important;
}

html.dark .logo-dark {
    display: block !important;
}

/* Alternativa usando document.documentElement */
.dark .logo-light {
    display: none !important;
}

.dark .logo-dark {
    display: block !important;
}

/* ===================================
   FIM DOS ESTILOS
   =================================== */ 