/* Estilos personalizados */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    padding: 1rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.03);
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer {
    border-top: 1px solid #e9ecef;
}

/* Estilos para os cards estatísticos */
.bg-primary, .bg-success, .bg-danger, .bg-warning, .bg-info {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Tabelas */
.table {
    font-size: 0.9rem;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    border-top: none;
    background-color: rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Gráficos */
canvas {
    max-width: 100%;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card, .table {
    animation: fadeIn 0.5s ease;
}

/* Badge personalizado */
.badge {
    padding: 0.4em 0.7em;
    font-weight: 500;
}

/* Modal */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding: 1.25rem 1.25rem 0.5rem;
}

.modal-footer {
    border-top: none;
    padding: 0.5rem 1.25rem 1.25rem;
}

/* Caixa de código para detalhes de erro */
pre {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 1rem;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

/* Estilos para a página de instâncias */
.instance-card {
    transition: all 0.3s ease;
    border-left: 4px solid #6c757d;
}

.instance-card.connected {
    border-left: 4px solid #28a745;
}

.instance-card.connecting {
    border-left: 4px solid #ffc107;
}

.instance-card.qrcode {
    border-left: 4px solid #17a2b8;
}

.instance-card.error {
    border-left: 4px solid #dc3545;
}

/* Efeito de pulsar para QR Code */
@keyframes pulse {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(0.95); }
}

.qrcode-pulse {
    animation: pulse 2s infinite;
}

/* Status indicator */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.connected {
    background-color: #28a745;
}

.status-indicator.connecting {
    background-color: #ffc107;
}

.status-indicator.disconnected {
    background-color: #6c757d;
}

.status-indicator.qrcode {
    background-color: #17a2b8;
}

.status-indicator.error {
    background-color: #dc3545;
}
