/* Este arquivo será movido para a subpasta css */

/* Estilos gerais */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Cards e seções */
.card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

/* Alertas e mensagens */
.alert {
    border-radius: 0.5rem;
}

/* Status indicators */
.status-badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
    font-weight: 500;
}

.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-processed {
    background-color: #198754;
    color: #fff;
}

.status-failed {
    background-color: #dc3545;
    color: #fff;
}

.status-active {
    background-color: #0d6efd;
    color: #fff;
}

.status-deleted {
    background-color: #6c757d;
    color: #fff;
}

.status-badge.checking {
    background-color: #ebebeb;
    color: var(--dark-color);
    animation: pulse 1.5s infinite;
}

.status-badge.online {
    background-color: rgba(28, 200, 138, 0.15);
    color: var(--success-color);
}

.status-badge.offline {
    background-color: rgba(231, 74, 59, 0.15);
    color: var(--danger-color);
}

.status-badge.warning {
    background-color: rgba(246, 194, 62, 0.15);
    color: var(--warning-color);
}

/* Tabela de registros */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Conteúdo de código */
pre {
    border-radius: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Botões e interações */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ícones */
.icon {
    margin-right: 0.25rem;
}

/* Listas */
.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Formulários */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsividade */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* DataBridge - Estilos principais */
:root {
    --primary-color: #4262ff;
    --primary-gradient: linear-gradient(135deg, #4262ff 0%, #6384ff 100%);
    --primary-dark: #2e45c6;
    --primary-light: #7e95ff;
    
    --secondary-color: #ff5a6e;
    --secondary-gradient: linear-gradient(135deg, #ff5a6e 0%, #ff8a98 100%);
    --secondary-dark: #ce3a4f;
    --secondary-light: #ff8a98;
    
    --success-color: #36d39a;
    --success-gradient: linear-gradient(135deg, #36d39a 0%, #5bebad 100%);
    
    --warning-color: #ffcc40;
    --warning-gradient: linear-gradient(135deg, #ffcc40 0%, #ffe27d 100%);
    
    --danger-color: #ff5a65;
    --danger-gradient: linear-gradient(135deg, #ff5a65 0%, #ff7f89 100%);
    
    --info-color: #4dc6ff;
    --info-gradient: linear-gradient(135deg, #4dc6ff 0%, #73d5ff 100%);
    
    --dark-color: #2a2d3e;
    --dark-gradient: linear-gradient(135deg, #2a2d3e 0%, #3a3f56 100%);
    
    --gray-50: #fafbff;
    --gray-100: #f3f4f9;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-circle: 50%;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Estilos Principais DataBridge Bank */

/* Reset e Configurações Gerais */
:root {
    --primary-color: #4262ff;
    --primary-dark: #2a49e0;
    --secondary-color: #ff5a6e;
    --dark-bg: #2a2d3e;
    --light-bg: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-dark: #2a2d3e;
    --text-light: #6c757d;
    --border-radius: 10px;
    --transition-speed: 0.3s;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Navbar */
.navbar {
    background: var(--primary-gradient);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.85rem 1rem;
    margin-bottom: 0;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff, #e0e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
}

.logo-text:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-text:after {
    transform: scaleX(1);
}

.nav-link {
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 2px;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Correção do menu hamburguer */
.navbar-collapse {
    z-index: 1050;
}

@media (max-width: 992px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-gradient);
        padding: 1rem;
        border-radius: 0 0 15px 15px;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        width: 100%;
        margin-top: 0.5rem !important;
        background-color: rgba(255, 255, 255, 0.95);
        transform: none !important;
    }
}

/* API Status Indicator */
.api-status {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.api-status:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.api-status i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.api-status.online i {
    color: var(--success-color);
    text-shadow: 0 0 8px rgba(54, 211, 154, 0.5);
}

.api-status.offline i {
    color: var(--danger-color);
    text-shadow: 0 0 8px rgba(255, 90, 101, 0.5);
}

.api-status.warning i {
    color: var(--warning-color);
    text-shadow: 0 0 8px rgba(255, 204, 64, 0.5);
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.main-container > .row {
    flex: 1;
    margin: 0;
}

/* Sidebar */
.sidebar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(222, 226, 230, 0.7);
    padding: 1.5rem 0;
    height: calc(100vh - 58px); /* Navbar height */
    position: sticky;
    top: 58px;
    overflow-y: auto;
    color: var(--gray-700);
}

.sidebar-header {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.sidebar-menu li a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0 30px 30px 0;
    margin: 4px 0;
    margin-right: 16px;
}

.sidebar-menu li a:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-menu li a.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(66, 98, 255, 0.3);
}

.sidebar-menu li a i {
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover i {
    transform: scale(1.2);
}

/* Content Area */
.content {
    padding: 2rem;
    flex: 1;
    transition: all 0.3s ease;
}

.page-title {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
}

.page-title:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--primary-gradient);
    bottom: -8px;
    left: 0;
    border-radius: 2px;
}

.page-title .badge {
    vertical-align: middle;
    margin-left: 8px;
    padding: 6px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* Stat Cards */
.stats-row {
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(222, 226, 230, 0.6);
    position: relative;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(66, 98, 255, 0.3);
}

.stat-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1.25rem;
    font-size: 1.5rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.stat-icon:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 100%);
    z-index: -1;
}

.bg-primary {
    background: var(--primary-gradient);
}

.bg-success {
    background: var(--success-gradient);
}

.bg-warning {
    background: var(--warning-gradient);
}

.bg-danger {
    background: var(--danger-gradient);
}

.bg-info {
    background: var(--info-gradient);
}

.stat-details {
    flex: 1;
    z-index: 2;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(to right, var(--dark-color), var(--gray-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0;
    font-weight: 500;
}

/* Cards */
.card {
    box-shadow: var(--shadow-sm);
    border: none;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(222, 226, 230, 0.7);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
}

.card-header h5 {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0;
    font-size: 1.05rem;
}

.card-header i {
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    border-bottom: 2px solid var(--gray-200);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--gray-700);
    padding: 0.75rem 1rem;
}

.table td {
    vertical-align: middle;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(66, 98, 255, 0.03);
}

.table-responsive {
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

/* Status Badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
    box-shadow: 0 2px 6px rgba(66, 98, 255, 0.3);
}

.badge.bg-success {
    background: var(--success-gradient) !important;
    box-shadow: 0 2px 6px rgba(54, 211, 154, 0.3);
}

.badge.bg-warning {
    background: var(--warning-gradient) !important;
    box-shadow: 0 2px 6px rgba(255, 204, 64, 0.3);
}

.badge.bg-danger {
    background: var(--danger-gradient) !important;
    box-shadow: 0 2px 6px rgba(255, 90, 101, 0.3);
}

.badge.bg-info {
    background: var(--info-gradient) !important;
    box-shadow: 0 2px 6px rgba(77, 198, 255, 0.3);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 10px rgba(66, 98, 255, 0.25);
}

.btn-success {
    background: var(--success-gradient);
    box-shadow: 0 4px 10px rgba(54, 211, 154, 0.25);
}

.btn-danger {
    background: var(--danger-gradient);
    box-shadow: 0 4px 10px rgba(255, 90, 101, 0.25);
}

.btn-warning {
    background: var(--warning-gradient);
    box-shadow: 0 4px 10px rgba(255, 204, 64, 0.25);
}

.btn-info {
    background: var(--info-gradient);
    box-shadow: 0 4px 10px rgba(77, 198, 255, 0.25);
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.btn i {
    margin-right: 0.4rem;
    font-size: 0.9em;
}

/* Button glow effect */
.btn-glow {
    position: relative;
}

.btn-glow:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: inherit;
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
    transition: all 0.3s ease;
}

.btn-glow:hover:before {
    opacity: 0.8;
    filter: blur(15px);
}

/* Seção de Saúde do Sistema Moderna */
.system-health-container {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 0;
}

.system-health-header {
    background: var(--primary-gradient);
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(66, 98, 255, 0.2);
}

.system-health-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.15rem;
}

.system-health-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.service-card {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
}

.service-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #f5f7ff 0%, #e8efff 100%);
}

.service-icon-container i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.service-info {
    flex: 1;
}

.service-name {
    font-weight: 700;
    margin: 0;
    margin-bottom: 0.35rem;
}

.service-status {
    display: flex;
    align-items: center;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
}

.status-indicator.online {
    background-color: var(--success-color);
}

.status-indicator.online:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background-color: var(--success-color);
    opacity: 0.4;
    animation: pulse 2s infinite;
}

.status-indicator.warning {
    background-color: var(--warning-color);
}

.status-indicator.warning:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background-color: var(--warning-color);
    opacity: 0.4;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background-color: var(--danger-color);
}

.status-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.status-text.online {
    color: var(--success-color);
}

.status-text.warning {
    color: var(--warning-color);
}

.status-text.offline {
    color: var(--danger-color);
}

.service-metrics {
    padding: 1.25rem;
}

.metric-item {
    margin-bottom: 1rem;
}

.metric-item:last-child {
    margin-bottom: 0;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.metric-name {
    font-size: 0.85rem;
    color: var(--gray-700);
}

.metric-value {
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-container {
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--primary-gradient);
    transition: width 0.6s ease-in-out;
}

.progress-bar.bg-success {
    background: var(--success-gradient);
}

.progress-bar.bg-warning {
    background: var(--warning-gradient);
}

.progress-bar.bg-danger {
    background: var(--danger-gradient);
}

.progress-bar.bg-info {
    background: var(--info-gradient);
}

.service-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    text-align: center;
}

.btn-service-details {
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Dashboard Chart Card */
.chart-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.chart-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.chart-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.chart-title {
    font-weight: 600;
    margin: 0;
    color: var(--gray-800);
}

.chart-container {
    padding: 1.25rem;
    height: 300px;
}

/* Animation para fade-in */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

.fade-in-delay-4 {
    animation-delay: 0.4s;
}

/* Animation para pulsar */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid rgba(222, 226, 230, 0.7);
    padding: 1.25rem 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
    text-align: center;
}

.footer-copyright, 
.footer-version {
    padding: 0.5rem;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        padding: 0 1rem;
        justify-content: center;
    }
    
    .footer-copyright, 
    .footer-version {
        width: 100%;
        text-align: center;
    }
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #1a1c2e 0%, #2d3047 100%);
    color: #e1e1e6;
}

.dark-mode .navbar {
    background: linear-gradient(90deg, var(--dark-color), #3a3f56);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .sidebar {
    background-color: rgba(42, 45, 62, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .sidebar-menu li a {
    color: var(--gray-400);
}

.dark-mode .sidebar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.dark-mode .card {
    background-color: rgba(42, 45, 62, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-mode .card-header {
    background-color: rgba(42, 45, 62, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .card-header h5 {
    color: #e1e1e6;
}

.dark-mode .stat-card {
    background-color: rgba(42, 45, 62, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .stat-value {
    background: linear-gradient(to right, #e1e1e6, #a1a1b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode .stat-label {
    color: var(--gray-400);
}

.dark-mode .table th {
    color: var(--gray-400);
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
}

.dark-mode .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.dark-mode .footer {
    background-color: rgba(42, 45, 62, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .footer-copyright {
    color: var(--gray-400);
}

.dark-mode .service-card {
    background-color: rgba(42, 45, 62, 0.8);
}

.dark-mode .service-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .service-icon-container {
    background: linear-gradient(135deg, #2d3047 0%, #3a3f56 100%);
}

.dark-mode .metric-name {
    color: var(--gray-400);
}

.dark-mode .progress-container {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .service-footer {
    background-color: rgba(42, 45, 62, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsividade */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -250px;
        width: 250px;
        z-index: 1030;
        transition: all 0.3s ease;
        height: 100vh;
        top: 58px;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .system-health-services {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .service-icon-container {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .system-health-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .system-health-header button {
        margin-top: 1rem;
    }
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Neumorphism effects */
.neumorph {
    border-radius: 16px;
    background: #f0f4fa;
    box-shadow: 
      12px 12px 24px rgba(166, 180, 200, 0.2),
      -12px -12px 24px rgba(255, 255, 255, 0.8);
}

.neumorph-inset {
    border-radius: 16px;
    background: #f0f4fa;
    box-shadow: 
      inset 5px 5px 10px rgba(166, 180, 200, 0.2), 
      inset -5px -5px 10px rgba(255, 255, 255, 0.8);
}

/* Estilos para a Seção de Saúde do Sistema */
#system-health-section .section-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.section-title {
    font-weight: 600;
    color: #333;
}

.health-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.health-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.health-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.health-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e1e1e1;
    transition: background 0.3s ease;
}

.health-card.online::before {
    background: #28a745;
}

.health-card.warning::before {
    background: #ffc107;
}

.health-card.error::before {
    background: #dc3545;
}

.health-card.offline::before {
    background: #6c757d;
}

.health-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.health-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1rem;
    color: #6c757d;
}

.health-title {
    flex: 1;
}

.health-title h6 {
    margin: 0;
    font-weight: 600;
}

.health-indicators {
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
}

.health-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6c757d;
    margin-right: 0.5rem;
    position: relative;
}

.health-pulse.online {
    background-color: #28a745;
}

.health-pulse.online::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 167, 69, 0.6);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.health-pulse.warning {
    background-color: #ffc107;
}

.health-pulse.warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 193, 7, 0.6);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.health-pulse.error {
    background-color: #dc3545;
}

.health-pulse.error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(220, 53, 69, 0.6);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.health-status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    background-color: #f8f9fa;
    color: #6c757d;
}

.health-status-badge.online {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.health-status-badge.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #d39e00;
}

.health-status-badge.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.health-details {
    flex: 1;
    margin-bottom: 1rem;
}

.health-metric {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #6c757d;
}

.health-metric span {
    width: 50%;
}

.health-metric .progress {
    width: 65%;
    margin: 0 0.5rem;
}

.health-metric-value {
    width: auto !important;
    font-weight: 600;
    color: #495057;
    margin-left: auto;
}

.health-action {
    text-align: right;
}

.health-details-btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

.service-stat-card {
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.service-stat-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.service-stat-label {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.service-stat-trend {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.service-stat-trend.up {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.service-stat-trend.down {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.service-events-list {
    max-height: 240px;
    overflow-y: auto;
}

.service-event {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-event:last-child {
    border-bottom: none;
}

.service-event-time {
    font-size: 0.8rem;
    color: #6c757d;
    width: 50px;
}

.service-event-badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.service-event-badge.success {
    background-color: #28a745;
}

.service-event-badge.warning {
    background-color: #ffc107;
}

.service-event-badge.error {
    background-color: #dc3545;
}

.service-event-badge.info {
    background-color: #17a2b8;
}

.service-event-content {
    flex: 1;
    font-size: 0.85rem;
}

.service-event-content p {
    margin: 0;
}

.service-detail-header {
    margin-bottom: 1.5rem;
}

.chart-container {
    position: relative;
}

@media (max-width: 768px) {
    .health-status-grid {
        grid-template-columns: 1fr;
    }
    
    .service-time-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Animações para os cards e elementos */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.health-card {
    animation: fadeIn 0.5s ease backwards;
}

.health-card:nth-child(1) { animation-delay: 0.1s; }
.health-card:nth-child(2) { animation-delay: 0.2s; }
.health-card:nth-child(3) { animation-delay: 0.3s; }
.health-card:nth-child(4) { animation-delay: 0.4s; }
.health-card:nth-child(5) { animation-delay: 0.5s; }

/* Estilos para seção de saúde do sistema */
#system-health .card-header {
    padding: 1rem;
}

.health-services-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.health-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 0.35rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.health-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(78, 115, 223, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.service-info {
    flex-grow: 1;
}

.service-info h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.status-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.response-time {
    font-size: 0.75rem;
    color: var(--dark-color);
}

.progress {
    height: 0.5rem;
    background-color: #eaecf4;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
    transition: width 0.6s ease;
}

/* Gráficos e métricas */
.metrics-container {
    height: 100%;
}

.gauge-chart, .donut-chart {
    height: 150px;
}

.area-chart {
    height: 200px;
}

/* Animações */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.rotate {
    animation: rotation 1.5s infinite linear;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

/* Media queries para responsividade */
@media (max-width: 767px) {
    #system-health .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* Estilos gerais */
.bg-gradient {
    background: linear-gradient(90deg, var(--primary-color), #224abe);
    color: white;
}

/* Barra lateral (Sidebar) */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 78px;
    background: var(--dark-bg);
    padding: 6px 14px;
    transition: all var(--transition-speed) ease;
    z-index: 99;
}

.sidebar.open {
    width: 250px;
}

.sidebar .logo-details {
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar .logo-details .icon {
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar .logo-details .logo_name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name {
    opacity: 1;
}

.sidebar .logo-details #btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 22px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
    color: #fff;
}

.sidebar.open .logo-details #btn {
    text-align: right;
}

.sidebar i {
    color: #fff;
    height: 60px;
    min-width: 50px;
    font-size: 18px;
    line-height: 60px;
    text-align: center;
}

.sidebar .nav-list {
    margin-top: 20px;
    padding: 0;
    height: calc(100% - 150px);
    overflow-y: auto;
}

.sidebar .nav-list::-webkit-scrollbar {
    display: none;
}

.sidebar li {
    position: relative;
    margin: 8px 0;
    list-style: none;
}

.sidebar li .tooltip {
    position: absolute;
    top: -20px;
    left: calc(100% + 15px);
    z-index: 3;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: 0s;
}

.sidebar li:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar.open li .tooltip {
    display: none;
}

.sidebar li a {
    display: flex;
    height: 50px;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.4s ease;
}

.sidebar li a:hover {
    background: var(--primary-color);
}

.sidebar li a.active {
    background: var(--primary-color);
}

.sidebar li a .links_name {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.sidebar.open li a .links_name {
    opacity: 1;
    pointer-events: auto;
}

.sidebar li a:hover .links_name,
.sidebar li a:hover i {
    transition: all 0.5s ease;
    color: #fff;
}

.sidebar li i {
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    border-radius: 12px;
}

.sidebar li.profile {
    position: fixed;
    height: 60px;
    width: 78px;
    left: 0;
    bottom: 0;
    padding: 10px 14px;
    background: var(--primary-dark);
    transition: all 0.5s ease;
    overflow: hidden;
}

.sidebar.open li.profile {
    width: 250px;
}

.sidebar li .profile-details {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.sidebar li img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
}

.sidebar li.profile .name,
.sidebar li.profile .job {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
}

.sidebar li.profile .job {
    font-size: 12px;
}

.sidebar .profile #log_out {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--primary-dark);
    width: 100%;
    height: 60px;
    line-height: 60px;
    border-radius: 0px;
    transition: all 0.5s ease;
}

.sidebar.open .profile #log_out {
    width: 50px;
    background: none;
}

.home-section {
    position: relative;
    background: var(--light-bg);
    min-height: 100vh;
    top: 0;
    left: 78px;
    width: calc(100% - 78px);
    transition: all 0.5s ease;
    z-index: 2;
}

.sidebar.open ~ .home-section {
    left: 250px;
    width: calc(100% - 250px);
}

.home-section .text {
    display: inline-block;
    color: var(--dark-bg);
    font-size: 25px;
    font-weight: 500;
    margin: 18px;
}

/* Cartões Dashboard */
.dashboard-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.dashboard-card .card-icon.primary {
    background-color: rgba(66, 98, 255, 0.1);
    color: var(--primary-color);
}

.dashboard-card .card-icon.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.dashboard-card .card-icon.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.dashboard-card .card-icon.danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.dashboard-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.dashboard-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Gráficos */
.chart-container {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

.chart-header .chart-actions {
    display: flex;
    gap: 10px;
}

.chart-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 5px;
}

/* Tabelas */
.table-container {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table th {
    background-color: rgba(66, 98, 255, 0.05);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-top: 1px solid #ebedf2;
    border-bottom: 1px solid #ebedf2;
}

.custom-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ebedf2;
    color: var(--text-light);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background-color: rgba(66, 98, 255, 0.02);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.status-badge.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.status-badge.danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.status-badge.primary {
    background-color: rgba(66, 98, 255, 0.1);
    color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 991px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar.open {
        width: 220px;
    }
    
    .sidebar .logo_name {
        opacity: 0;
    }
    
    .sidebar.open .logo_name {
        opacity: 1;
    }
    
    .home-section {
        left: 60px;
        width: calc(100% - 60px);
    }
    
    .sidebar.open ~ .home-section {
        left: 220px;
        width: calc(100% - 220px);
    }
}